1987-03-27 09:55:28 +00:00
|
|
|
.define .exg
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
1987-03-27 09:55:28 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
! d0 : exchange size in bytes
|
|
|
|
.exg:
|
1987-03-27 09:55:28 +00:00
|
|
|
lea 4(sp, d0), a0 ! address of bottom block
|
|
|
|
lea 4(sp), a1 ! address of top block
|
|
|
|
asr.l #2, d0
|
|
|
|
sub.l #1, d0
|
1985-02-07 22:06:32 +00:00
|
|
|
1:
|
1987-03-27 09:55:28 +00:00
|
|
|
move.l (a1), d1
|
|
|
|
move.l (a0), (a1)+
|
|
|
|
move.l d1, (a0)+
|
|
|
|
dbf d0, 1b
|
1985-02-07 22:06:32 +00:00
|
|
|
rts
|
1987-03-27 09:55:28 +00:00
|
|
|
.align 2
|