AppleIIAsm-Collection/source/d4_math/T.MIN.SUB.COMP16.ASM
nathanriggs 9b12b6fd9b HOUSEKEEPING
- getting ready for major changes for 0.6.0.
- be sure to download the 0.5.0 release to ensure proper functionality, as these rountines will not work together in the SRC or BIN folder during the transition
- Beginning to significantly alter documentation
2019-12-17 17:19:24 -05:00

21 lines
429 B
NASM

]CMP1 EQU WPAR1
]CMP2 EQU WPAR2
COMP16
LDA ]CMP1
CMP ]CMP2
BEQ :EQUAL
LDA ]CMP1+1
SBC ]CMP2+1
ORA #1
BVS :OVFLOW
RTS
:EQUAL
LDA ]CMP1+1
SBC ]CMP2+1
BVS :OVFLOW
RTS
:OVFLOW
EOR #$80
ORA #1
RTS