1985-02-07 22:06:32 +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
|
|
|
|
|
|
|
! d0 : setsize in bytes
|
|
|
|
! d1 : bitnumber
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
.set:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l (sp)+,a0
|
1985-02-07 22:06:32 +00:00
|
|
|
move.l (sp)+,d1
|
|
|
|
move.l d0,d2
|
|
|
|
asr.l #2,d2
|
|
|
|
1:
|
|
|
|
clr.l -(sp) !create empty set
|
|
|
|
sub.l #1,d2
|
|
|
|
bgt 1b
|
|
|
|
move.l sp,a1 ! set base
|
|
|
|
move.l d1,d2
|
|
|
|
asr.l #4,d2
|
|
|
|
!bchg #0,d2
|
|
|
|
cmp.l d0,d2
|
|
|
|
bcs 1f
|
|
|
|
move.w #ESET,-(sp)
|
1986-07-22 13:37:16 +00:00
|
|
|
jsr .trp
|
1985-02-07 22:06:32 +00:00
|
|
|
1:
|
|
|
|
add.l d2,a1
|
|
|
|
move.l (a1),d2
|
|
|
|
bset d1,d2
|
|
|
|
move.l d2,(a1)
|
1986-07-22 13:37:16 +00:00
|
|
|
jmp (a0)
|