ack/mach/m68k4/libem/inn.s
1986-07-25 14:17:23 +00:00

32 lines
361 B
ArmAsm

.define .inn
.sect .text
.sect .rom
.sect .data
.sect .bss
! d0 : set size in bytes
! d1 : bitnumber
.sect .text
.inn:
move.l (sp)+,a1
move.l (sp)+,d1
move.l d0,-(sp)
move.l sp,a0
add.l #4,a0
move.l d1,d2
asr.l #3,d2
cmp.l d0,d2
bcc 1f
add.l d2,a0
btst d1,(a0)
beq 1f
move.l #1,d0
bra 2f
1:
clr.l d0
2:
move.l (sp)+,d1
add.l d1,sp
jmp (a1)