1985-02-07 22:06:32 +00:00
|
|
|
.define .inn
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
|
|
|
! d0 : set size in bytes
|
|
|
|
! d1 : bitnumber
|
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
.inn:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l (sp)+,a1
|
1985-02-07 22:06:32 +00:00
|
|
|
move.l (sp)+,d1
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l d0,-(sp)
|
1985-02-07 22:06:32 +00:00
|
|
|
move.l sp,a0
|
1986-07-22 13:37:16 +00:00
|
|
|
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:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l (sp)+,d1
|
|
|
|
add.l d1,sp
|
1986-07-25 14:17:23 +00:00
|
|
|
jmp (a1)
|