1985-02-07 22:06:32 +00:00
|
|
|
.define .cms
|
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 contains set size
|
|
|
|
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
.cms:
|
|
|
|
move.l (sp)+,a2 ! return address
|
|
|
|
move.l sp,a0
|
|
|
|
move.l sp,a1
|
|
|
|
add d0,a1
|
|
|
|
move.w d0,d1
|
|
|
|
asr #1,d0
|
|
|
|
1:
|
|
|
|
cmp (a0)+,(a1)+
|
|
|
|
bne 2f
|
1985-03-04 15:25:33 +00:00
|
|
|
sub.l #1,d0
|
|
|
|
bne 1b
|
1985-02-07 22:06:32 +00:00
|
|
|
2:
|
|
|
|
asl #1,d1
|
|
|
|
add d1,sp
|
|
|
|
move.l d0,-(sp)
|
|
|
|
jmp (a2)
|