ack/mach/pdp/libem/sru.s
sater 18dbfc024e Routine was wrong, leaving things on the stack in the one bit case,
the inclusion of slu in this routine was bogus.
It is never called anyway, so slu is taken out.
1984-12-20 15:17:05 +00:00

30 lines
338 B
ArmAsm

/ $Header$
.text
.globl sru~
.globl unknown~
sru~:
neg 2(sp)
mov (sp)+,r3
cmp r0,$02
bgt 1f
mov 2(sp),r1
clr r0
ashc (sp)+,r0
mov r1,(sp)
jmp (r3)
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)
4: ashc (sp)+,r0
mov r0,(sp)
mov r1,02(sp)
jmp (r3)
3: jmp unknown~