ack/mach/ns/libem/exg.s
1985-07-26 11:56:24 +00:00

19 lines
210 B
ArmAsm

.define .exg
.text
.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