mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-02 12:52:03 +00:00
9b12b6fd9b
- 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
36 lines
760 B
NASM
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
|