ack/mach/ns/libem/exg.s

24 lines
274 B
ArmAsm
Raw Normal View History

1985-07-26 11:56:24 +00:00
.define .exg
1987-01-16 16:49:46 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1985-07-26 11:56:24 +00:00
1987-01-16 16:49:46 +00:00
.sect .text
1985-07-26 11:56:24 +00:00
.exg:
save [r2,r3]
addr 8(sp), r3
movd r3, r2
addd r0, r3
1:
movd 0(r2), r1
movd 0(r3), 0(r2)
movd r1, 0(r3)
addr 4(r2), r2
addr 4(r3), r3
acbd -4, r0, 1b
restore[r2,r3]
ret 0