ack/mach/6500/libem/tge.s
1987-01-30 18:41:42 +00:00

24 lines
292 B
ArmAsm

.define Tge
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
! 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