1987-05-15 09:11:10 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
|
|
|
.sect .text
|
|
|
|
.define sru~
|
|
|
|
.extern unknown~
|
1994-06-24 14:02:31 +00:00
|
|
|
! $Id$
|
1984-07-19 12:51:00 +00:00
|
|
|
|
|
|
|
sru~:
|
|
|
|
neg 2(sp)
|
1984-07-20 16:20:28 +00:00
|
|
|
mov (sp)+,r3
|
1984-07-19 12:51:00 +00:00
|
|
|
cmp r0,$02
|
|
|
|
bgt 1f
|
|
|
|
mov 2(sp),r1
|
|
|
|
clr r0
|
|
|
|
ashc (sp)+,r0
|
1984-12-20 15:17:05 +00:00
|
|
|
mov r1,(sp)
|
1984-07-20 16:20:28 +00:00
|
|
|
jmp (r3)
|
1984-07-19 12:51:00 +00:00
|
|
|
1: cmp r0,$04
|
|
|
|
bgt 3f
|
|
|
|
mov 02(sp),r0
|
|
|
|
mov 04(sp),r1
|
|
|
|
tst (sp)
|
|
|
|
beq 4f
|
|
|
|
ashc $-1,r0
|
|
|
|
bic $0100000,r0
|
|
|
|
inc (sp)
|
1984-12-20 15:17:05 +00:00
|
|
|
4: ashc (sp)+,r0
|
|
|
|
mov r0,(sp)
|
1984-07-19 12:51:00 +00:00
|
|
|
mov r1,02(sp)
|
1984-07-20 16:20:28 +00:00
|
|
|
jmp (r3)
|
1984-07-19 12:51:00 +00:00
|
|
|
3: jmp unknown~
|