ack/mach/pdp/libem/set.s
1987-05-15 09:11:10 +00:00

27 lines
369 B
ArmAsm

.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
.sect .text
.define set~
.extern save~,retu~,trp~
! $Header$
ESET = 2
set~:
jsr pc,save~
mov r0,r2
asr r0
1: clr -(sp)
sob r0,1b
div $010,r0
cmp r0,r2
blo 2f
mov $ESET,-(sp)
jsr pc,trp~
jmp retu~
2: add sp,r0
bisb bits(r1),(r0)
jmp retu~
.sect .data
bits: .data1 1,2,4,010,020,040,0100,0200