ack/mach/6500/libem/tlt.s

24 lines
277 B
ArmAsm
Raw Normal View History

1984-12-17 11:03:13 +00:00
.define Tlt
1987-01-30 18:41:42 +00:00
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
1984-12-17 11:03:13 +00:00
! This subroutine tests if the value in registerpair AX is
! less than zero.
! The value returned is in AX.
Tlt:
tay
bpl 1f ! A >= 0
lda #0 ! AX < 0
ldx #1
rts
1: lda #0 ! AX >= 0
tax
rts