ack/mach/pdp/libem/sri.s

28 lines
368 B
ArmAsm
Raw Permalink Normal View History

1987-05-15 09:11:10 +00:00
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.sect .text
.define sri~
.extern unknown~
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
sri~:
mov (sp)+,r3~
1984-07-19 12:51:00 +00:00
cmp r0,$02
bgt 1f
mov (sp)+,r1
mov (sp)+,r0
neg r1
ash r1,r0
mov r0,-(sp)
jmp (r3)
1984-07-19 12:51:00 +00:00
1: cmp r0,$04
bgt 2f
mov 02(sp),r0
mov 04(sp),r1
neg (sp)
ashc (sp)+,r0
mov r0,(sp)
mov r1,02(sp)
jmp (r3)
1984-07-19 12:51:00 +00:00
2: jmp unknown~