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
29 lines
649 B
NASM
29 lines
649 B
NASM
]LEFT EQU VARTAB
|
|
]RIGHT EQU VARTAB+2
|
|
]HBYTE EQU VARTAB+4
|
|
]HEXTAB ASC "0123456789ABCDEF"
|
|
HEX2HEXASC
|
|
STA ]HBYTE
|
|
AND #$F0
|
|
LSR
|
|
LSR
|
|
LSR
|
|
LSR
|
|
STA ]LEFT
|
|
LDA ]HBYTE
|
|
AND #$0F
|
|
STA ]RIGHT
|
|
LDX ]LEFT
|
|
LDA ]HEXTAB,X
|
|
STA ]LEFT
|
|
LDX ]RIGHT
|
|
LDA ]HEXTAB,X
|
|
STA ]RIGHT
|
|
LDA ]LEFT
|
|
STA RETURN
|
|
LDA ]RIGHT
|
|
STA RETURN+1
|
|
LDA #2
|
|
STA RETLEN
|
|
RTS
|