-unsigned portLONG *pxLocal;\r
-\r
-/* \r
- * The 78K0R/Kx3 automatically pushes the PSW then PC onto the stack before \r
- * executing an ISR. We want the stack to look just as if this has happened\r
- * so place a pointer to the start of the task on the stack first - followed\r
- * by the flags we want the task to use when it starts up. \r
- */\r
-#if configMEMORY_MODE == 1\r
- pxTopOfStack--;\r
- pxLocal = (unsigned portLONG*) pxTopOfStack;\r
- *pxLocal = (unsigned portLONG) pvParameters;\r
- pxTopOfStack--; \r
-\r
- /* dummy are on the stack cause there normaly the return adress of the funtion \r
- * is written. Can be a dummy cause the function will never end but only be\r
- * yielded an reentered \r
- */ \r
- *pxTopOfStack = ( portSTACK_TYPE ) 0xcdcd;\r
- pxTopOfStack--;\r
- *pxTopOfStack = ( portSTACK_TYPE ) 0xcdcd;\r
- pxTopOfStack--; \r
- pxTopOfStack--;\r
-\r
- /* task function start address */\r
- pxLocal = (unsigned portLONG*) pxTopOfStack;\r
- *pxLocal = (unsigned portLONG) pxCode;\r
- pxTopOfStack--;\r
-\r
- /* write initial value of the PSW */\r
- *pxTopOfStack = portPSW;\r
- pxTopOfStack--;\r
-\r
- /* Next general purpose register AX */\r
- *pxTopOfStack = ( portSTACK_TYPE ) 0x1111; \r
- pxTopOfStack--;\r
-\r
-#else \r
-\r
- pxTopOfStack--;\r
-\r
- /* task function start address */\r
- pxLocal = (unsigned portLONG*) pxTopOfStack;\r
- *pxLocal = (unsigned portLONG) pxCode;\r
- pxTopOfStack--;\r
-\r
- /* write initial value of the PSW */\r
- *pxTopOfStack = portPSW;\r
- pxTopOfStack--;\r
-\r
- /* Next general purpose registers AX with the task function parameter start address */\r
- *pxTopOfStack = ( portSTACK_TYPE ) pvParameters;\r
- pxTopOfStack--;\r
-\r
-#endif \r
-\r
+unsigned long *pulLocal;\r
+\r
+ #if configMEMORY_MODE == 1\r
+ {\r
+ /* Parameters are passed in on the stack. */\r
+ pxTopOfStack--;\r
+ pulLocal = ( unsigned long * ) pxTopOfStack;\r
+ *pulLocal = ( unsigned long ) pvParameters;\r
+ pxTopOfStack--; \r
+\r
+ /* Dummy values on the stack because there normaly the return address \r
+ of the funtion is written. */ \r
+ *pxTopOfStack = ( portSTACK_TYPE ) 0xcdcd;\r
+ pxTopOfStack--;\r
+ *pxTopOfStack = ( portSTACK_TYPE ) 0xcdcd;\r
+ pxTopOfStack--; \r
+ pxTopOfStack--;\r
+\r
+ /* Task function start address. */\r
+ pulLocal = ( unsigned long * ) pxTopOfStack;\r
+ *pulLocal = ( unsigned long ) pxCode;\r
+ pxTopOfStack--;\r
+\r
+ /* Initial PSW value. */\r
+ *pxTopOfStack = portPSW;\r
+ pxTopOfStack--;\r
+\r
+ /* Next general purpose register AX. */\r
+ *pxTopOfStack = ( portSTACK_TYPE ) 0x1111; \r
+ pxTopOfStack--;\r
+ }\r
+ #else \r
+ {\r
+ pxTopOfStack--;\r
+\r
+ /* Task function start address. */\r
+ pulLocal = (unsigned long*) pxTopOfStack;\r
+ *pulLocal = (unsigned long) pxCode;\r
+ pxTopOfStack--;\r
+\r
+ /* Initial PSW value. */\r
+ *pxTopOfStack = portPSW;\r
+ pxTopOfStack--;\r
+\r
+ /* The parameter is passed in AX. */\r
+ *pxTopOfStack = ( portSTACK_TYPE ) pvParameters;\r
+ pxTopOfStack--;\r
+ }\r
+ #endif \r
+\r
+ /* HL. */\r