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~:
|
1984-07-20 16:20:28 +00:00
|
|
|
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
|
1984-07-20 16:20:28 +00:00
|
|
|
4: jmp (r3)
|