AppleIIAsm-Collection/source/d7_convert/T.MIN.SUB.HEXASC2HEX.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

36 lines
760 B
NASM

]HI EQU VARTAB
]LO EQU VARTAB+2
]STR EQU WPAR1
HEXASC2HEX
LDY #1
LDA (]STR),Y
STA ]HI
INY
LDA (]STR),Y
STA ]LO
SEC
SBC #'0'
CMP #10
BCC :CONT
SBC #7
:CONT
STA ]LO
LDA ]HI
SEC
SBC #'0'
CMP #10
BCC :C2
SBC #7
:C2
STA ]HI
ASL
ASL
ASL
ASL
ORA ]LO
LDY #1
STY RETLEN
STA RETURN
RTS