ack/mach/pdp/libem/set.s

27 lines
365 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 set~
.extern save~,retu~,trp~
1994-06-24 14:02:31 +00:00
! $Id$
1984-07-19 12:51:00 +00:00
ESET = 2
set~:
jsr pc,save~
mov r0,r2
asr r0
1: clr -(sp)
sob r0,1b
1987-05-15 09:11:10 +00:00
div $010,r0
1984-07-19 12:51:00 +00:00
cmp r0,r2
blo 2f
mov $ESET,-(sp)
jsr pc,trp~
jmp retu~
2: add sp,r0
bisb bits(r1),(r0)
jmp retu~
1987-05-15 09:11:10 +00:00
.sect .data
bits: .data1 1,2,4,010,020,040,0100,0200