ack/mach/pdp/libem/ror.s

21 lines
280 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 ror~
.extern save~,retu~
1994-06-24 14:02:31 +00:00
! $Id$
1984-07-19 12:51:00 +00:00
ror~:
asr r0
jsr pc,save~
mov (sp)+,r3
3: mov sp,r1
mov r0,-(sp)
clc
1: ror (r1)+
sob r0,1b
bcc 2f
bis $0100000,02(sp)
2: mov (sp)+,r0
sob r3,3b
jmp retu~