ack/mach/m68k4/libem/inn.s

32 lines
361 B
ArmAsm
Raw Normal View History

1985-02-07 22:06:32 +00:00
.define .inn
.sect .text
.sect .rom
.sect .data
.sect .bss
1985-02-07 22:06:32 +00:00
! d0 : set size in bytes
! d1 : bitnumber
.sect .text
1985-02-07 22:06:32 +00:00
.inn:
move.l (sp)+,a1
1985-02-07 22:06:32 +00:00
move.l (sp)+,d1
move.l d0,-(sp)
1985-02-07 22:06:32 +00:00
move.l sp,a0
add.l #4,a0
1985-02-07 22:06:32 +00:00
move.l d1,d2
1986-07-25 14:17:23 +00:00
asr.l #3,d2
1985-02-07 22:06:32 +00:00
cmp.l d0,d2
bcc 1f
add.l d2,a0
1986-07-25 14:17:23 +00:00
btst d1,(a0)
1985-02-07 22:06:32 +00:00
beq 1f
move.l #1,d0
bra 2f
1:
clr.l d0
2:
move.l (sp)+,d1
add.l d1,sp
1986-07-25 14:17:23 +00:00
jmp (a1)