14Fermer16
GodzilLe 17/11/2016 à 19:35
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
	rts
Et voilà comment popper plus de 8 octets de pile en deux octets. smile

Je propose:
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 trigic