// __fourbyteints__ = false
; 102: ERROR TaskManCreateTask( const char * const pszName, pTaskFunction *pFunctList, TASKPRIORITY Taskpriority )
; 103: {
; 104: TCB *pNewTask;
; 105: ERROR retValue;
; 106:
; 107: int i = sizeof(TCB*); // just checking
;
0x00000000 _TaskManCreateTask:
; TaskManCreateTask:
0x00000000 0x4FEFFFDC lea -36(a7),a7
0x00000004 0x48EF58C00010 movem.l d6-d7/a3-a4/a6,16(a7)
;
; 108: pNewTask = (TCB*)malloc(sizeof(TCB));
; 109:
;
0x0000000A 0x7E60 moveq #96,d7
0x0000000C 0x266F0028 movea.l 40(a7),a3
0x00000010 0x286F002C movea.l 44(a7),a4
0x00000014 0x1C2F0030 move.b 48(a7),d6
0x00000018 0x2E87 move.l d7,(a7)
0x0000001A 0x4EB900000000 jsr _malloc
0x00000020 0x48C0 ext.l d0
0x00000022 0x2C40 movea.l d0,a6
;
; 110: pNewTask->lCount = i;
;
0x00000024 0x7004 moveq #4,d0
0x00000026 0x2D40003C move.l d0,60(a6)
// __fourbyteints__ = true:
; 102: ERROR TaskManCreateTask( const char * const pszName, pTaskFunction *pFunctList, TASKPRIORITY Taskpriority )
; 103: {
; 104: TCB *pNewTask;
; 105: ERROR retValue;
; 106:
; 107: int i = sizeof(TCB*); // just checking
;
0x00000000 _TaskManCreateTask:
; TaskManCreateTask:
0x00000000 0x4FEFFFD8 lea -40(a7),a7
0x00000004 0x48EF58E00010 movem.l d5-d7/a3-a4/a6,16(a7)
;
; 108: pNewTask = (TCB*)malloc(sizeof(TCB));
; 109:
; 110: pNewTask->lCount = i;
;
0x0000000A 0x7C60 moveq #96,d6
0x0000000C 0x2E86 move.l d6,(a7)
0x0000000E 0x266F002C movea.l 44(a7),a3
0x00000012 0x286F0030 movea.l 48(a7),a4
0x00000016 0x1A2F0034 move.b 52(a7),d5
0x0000001A 0x4EB900000000 jsr _malloc
0x00000020 0x2F460008 move.l d6,8(a7)
0x00000024 0x2C40 movea.l d0,a6
0x00000026 0x7C00 moveq #0,d6
0x00000028 0x7004 moveq #4,d0
0x0000002A 0x2F460004 move.l d6,4(a7)
0x0000002E 0x2D40003C move.l d0,60(a6)