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
|
|
|
|
1987-03-27 09:55:28 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
! d0 contains set size
|
1987-03-27 09:55:28 +00:00
|
|
|
! on exit d0 is zero for equal, non-zero for not equal
|
1985-02-07 22:06:32 +00:00
|
|
|
.cms:
|
1987-03-27 09:55:28 +00:00
|
|
|
move.l (sp)+, d2 ! return address
|
|
|
|
move.l sp, a0 ! address of top block
|
|
|
|
lea 0(sp, d0.l), a1 ! address of lower block
|
|
|
|
move.l d0, d1
|
|
|
|
asr.l #2, d0
|
1985-02-07 22:06:32 +00:00
|
|
|
1:
|
1987-03-27 09:55:28 +00:00
|
|
|
cmp.l (a0)+, (a1)+
|
1985-02-07 22:06:32 +00:00
|
|
|
bne 2f
|
1987-03-27 09:55:28 +00:00
|
|
|
sub.l #1, d0
|
1985-03-04 15:25:33 +00:00
|
|
|
bne 1b
|
1985-02-07 22:06:32 +00:00
|
|
|
2:
|
1987-03-27 09:55:28 +00:00
|
|
|
asl.l #1, d1
|
|
|
|
add.l d1, sp ! two blocks popped
|
|
|
|
move.l d2, -(sp)
|
|
|
|
rts
|
|
|
|
.align 2
|