1987-03-27 09:33:02 +00:00
|
|
|
.define .set
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
1987-03-27 09:33:02 +00:00
|
|
|
.sect .text
|
|
|
|
.set: ! d0 bitnumber
|
|
|
|
! d1 setsize in bytes
|
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l (sp)+,a0
|
1987-03-27 09:33:02 +00:00
|
|
|
move.l d1, d2
|
|
|
|
asr.l #2, d2
|
|
|
|
sub.l #1, d2
|
1985-02-07 22:06:32 +00:00
|
|
|
1:
|
1987-03-27 09:33:02 +00:00
|
|
|
clr.l -(sp)
|
|
|
|
dbf d2, 1b
|
|
|
|
|
|
|
|
move.l d0, d2
|
|
|
|
asr.l #3, d2 ! offset .sect from sp in bytes
|
|
|
|
eor.l #3, d2 ! longs are stored in high-to-low order
|
|
|
|
cmp.l d1, d2
|
|
|
|
blt 2f
|
|
|
|
move.l a0, -(sp)
|
|
|
|
move.l #ESET, -(sp) ! bitnumber too large
|
|
|
|
jmp .trp
|
|
|
|
2:
|
|
|
|
bset d0, 0(sp, d2.l)
|
1986-07-22 13:37:16 +00:00
|
|
|
jmp (a0)
|
1987-03-27 09:33:02 +00:00
|
|
|
.align 2
|