ack/mach/m68k4/libem/cmp.s

23 lines
236 B
ArmAsm
Raw Normal View History

1985-02-07 22:06:32 +00:00
.define .cmp
.sect .text
.sect .rom
.sect .data
.sect .bss
1985-02-07 22:06:32 +00:00
.sect .text
1985-02-07 22:06:32 +00:00
.cmp:
move.l (sp)+,d2 ! return address
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:
bcs 2f
neg.l d1
2:
move.l d2,-(sp)
1985-02-07 22:06:32 +00:00
rts
1985-02-07 22:06:32 +00:00
.align 2