mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-11-30 15:49:55 +00:00
c8cac53c5e
Massive updates that changes the way most subroutines are handled. Major bugfixes, various utilities added, started higher-level libraries.
39 lines
769 B
Plaintext
39 lines
769 B
Plaintext
HEX2HEXASC
|
|
PLA
|
|
STA RETADR
|
|
PLA
|
|
STA RETADR+1
|
|
PLA :HBYTE
|
|
STA :HBYTE
|
|
LDA :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
|
|
LDA RETADR+1
|
|
PHA
|
|
LDA RETADR
|
|
PHA
|
|
RTS
|
|
:LEFT DS 1
|
|
:RIGHT DS 1
|
|
:HBYTE DS 1
|
|
:HEXTAB ASC "0123456789ABCDEF"
|