--pstk = (INT16U)0x6666;

return ((OS_STK *)pstk); (5)
}
L6-2(1) The HEW compiler passes the first argument to a function in R0. If you use a different compiler that passes p_arg on the stack then the port code will also work since we did that as well.
L6-2(2) This stack entry contains the value of the CCR register of the H8/300L. Since the CCR is 8-bit wide and each stack entry MUST be 16 bits, the H8/300L assumes that the CCR is duplicated on the stack. Note also that bit #7 of the CCR is set to 0 meaning that each task will have interrupts enabled when it starts.











OSTaskCreate(MatchZoneTask, /* Create EtherTask */
(void *)0,
&MatchZoneTaskStack[MatchZONE_TASK_STK_SIZE - 1],
9);