.xdef _ti92plus .xdef _main .include "kernel.h" _main: movea.l (%sp),%a0 jmp (%a0)
Ca plante pas, niveau optimisation c'est génial. Merci PpHd

_main: jsr pexeclib__0000 |exec main part, pushing &data .long pedrom__printf,kernel__Exec |system calls
pexeclib__0000: movea.l (%sp)+,%a0 |&Data movea.l (%sp)+,%a1 |return adress of pexec move.w (%sp)+,%d3 |get ARGC movea.l (%sp),%a2 |get ARGV lea.l -STACK_FRAME_SIZE(%sp),%sp |create stack frame movea.l %sp,%fp |set frame pointer
movem.l d3-d5/a2-a3,-(sp) ... ;----------------------------------------------------------------------- ; 20 bytes have been pushed on the stack ; - 8 bytes are popped with addq ; - 12 bytes are popped by trashing d0-d2 ;----------------------------------------------------------------------- addq.l #8,sp movem.l (sp)+,d0-d5/a2-a3 rtsEt voilà comment popper plus de 8 octets de pile en deux octets.
Folco (./11) :
Petit trick du moment :movem.l d3-d5/a2-a3,-(sp) ... ;----------------------------------------------------------------------- ; 20 bytes have been pushed on the stack ; - 8 bytes are popped with addq ; - 12 bytes are popped by trashing d0-d2 ;----------------------------------------------------------------------- addq.l #8,sp movem.l (sp)+,d0-d5/a2-a3 rtsEt voilà comment popper plus de 8 octets de pile en deux octets.
movem.l d3-d5/a2-a3,-(sp)
...
;-----------------------------------------------------------------------
; 20 bytes have been pushed on the stack
; - 8 bytes are popped with addq
; - 12 bytes are popped by trashing d0-d2
;-----------------------------------------------------------------------
movem.l d0-d2,-(sp)
movem.l (sp)+,d0-d5/a2-a3
rts
func: push lr (bidouille) pop pcmignon aussi