ack/mach/6500/libem/tge.s

19 lines
234 B
ArmAsm
Raw Normal View History

1984-12-17 11:03:13 +00:00
.define Tge
! This subroutine test if the value in registerpair AX is
! greater than or equal to zero.
! The result is returned in AX.
Tge:
tay
bpl 1f ! A >= 0
lda #0 ! AX < 0
tax
rts
1: lda #0 ! AX >= 0
ldx #1
rts