ack/mach/vax4/libem/exg.s

21 lines
283 B
ArmAsm
Raw Normal View History

1990-01-12 10:29:26 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.define .exg
1985-01-18 14:30:03 +00:00
1994-06-24 14:02:31 +00:00
! $Id$
1990-01-12 10:29:26 +00:00
! bytes in r0
1985-01-18 14:30:03 +00:00
.exg:
movl (sp)+,r3
addl3 sp,r0,r2
addl2 r0,r2
ashl $-2,r0,r1
1990-01-12 10:29:26 +00:00
I1:
1985-01-18 14:30:03 +00:00
movl -(r2),-(sp)
1990-01-12 10:29:26 +00:00
sobgtr r1,I1
1985-01-18 14:30:03 +00:00
addl3 r0,r2,r1
1990-01-12 10:29:26 +00:00
I2:
1985-01-18 14:30:03 +00:00
movw -(r2),-(r1)
1990-01-12 10:29:26 +00:00
sobgtr r0,I2
1985-01-18 14:30:03 +00:00
movl r1,sp
jmp (r3)