1985-02-07 22:06:32 +00:00
|
|
|
.define .cmi, .cmi_
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
|
|
|
.sect .rom
|
|
|
|
.sect .data
|
|
|
|
.sect .bss
|
1985-02-07 22:06:32 +00:00
|
|
|
|
|
|
|
! NUM == 4
|
|
|
|
! result in d1
|
1986-07-22 13:37:16 +00:00
|
|
|
.sect .text
|
1985-02-07 22:06:32 +00:00
|
|
|
.cmi:
|
|
|
|
.cmi_:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l (sp)+,d2
|
1985-02-07 22:06:32 +00:00
|
|
|
move.l #1,d1
|
|
|
|
move.l (sp)+,d0
|
|
|
|
cmp.l (sp)+,d0
|
|
|
|
bne 1f
|
|
|
|
clr.l d1
|
|
|
|
1:
|
|
|
|
ble 2f
|
|
|
|
neg.l d1
|
|
|
|
2:
|
1986-07-22 13:37:16 +00:00
|
|
|
move.l d2,-(sp)
|
1985-02-07 22:06:32 +00:00
|
|
|
rts
|
1986-07-22 13:37:16 +00:00
|
|
|
|
1985-02-07 22:06:32 +00:00
|
|
|
.align 2
|