ack/mach/pdp/libem/ret.s

29 lines
383 B
ArmAsm
Raw Normal View History

1987-05-15 09:11:10 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.sect .text
.define ret~,lfr~
.extern unknown~, retar
1994-06-24 14:02:31 +00:00
! $Id$
1984-07-19 12:51:00 +00:00
1987-05-15 09:11:10 +00:00
! Size in r0
1984-07-19 12:51:00 +00:00
ret~:
mov r0,r1
beq 1f
asr r1
add $retar,r0
cmp r0,$retend
bhi 9f
3: mov (sp)+,-(r0)
sob r1,3b
1: mov r5,sp
mov (sp)+,r5
rts pc
9: jmp unknown~
lfr~:
mov (sp)+,r3
1984-07-19 12:51:00 +00:00
asr r0
beq 4f
mov $retar,r1
5: mov (r1)+,-(sp)
sob r0,5b
4: jmp (r3)