mirror of
https://github.com/Michaelangel007/apple2_printm.git
synced 2024-06-02 00:41:43 +00:00
Shrink demo by 1 byte
This commit is contained in:
parent
ac45479162
commit
37c1952f78
5
printm.s
5
printm.s
|
@ -5,7 +5,7 @@
|
||||||
.feature leading_dot_in_identifiers
|
.feature leading_dot_in_identifiers
|
||||||
.PC02 ; 65C02
|
.PC02 ; 65C02
|
||||||
|
|
||||||
/* Version 40
|
/* Version 41
|
||||||
printm - a modular micro printf replacement for 65C02
|
printm - a modular micro printf replacement for 65C02
|
||||||
Michael Pohoreski
|
Michael Pohoreski
|
||||||
Copyleft {c} Feb, 2016
|
Copyleft {c} Feb, 2016
|
||||||
|
@ -760,7 +760,7 @@ PrintDec
|
||||||
BNE @Dec2BCD
|
BNE @Dec2BCD
|
||||||
CLD
|
CLD
|
||||||
|
|
||||||
LDX #5 ; was Y
|
LDX #2 ; print 3 BCD bytes
|
||||||
@BCD2Char: ; NOTE: Digits are reversed!
|
@BCD2Char: ; NOTE: Digits are reversed!
|
||||||
DEY ; $FF - $FD = 2
|
DEY ; $FF - $FD = 2
|
||||||
LDA _bcd-$FD,Y ; __c??? _b_?XX a_YYXX
|
LDA _bcd-$FD,Y ; __c??? _b_?XX a_YYXX
|
||||||
|
@ -771,7 +771,6 @@ PrintDec
|
||||||
CLC
|
CLC
|
||||||
ADC #'0'+$80
|
ADC #'0'+$80
|
||||||
JSR COUT ; __c??X _b_YXX aZYYXX
|
JSR COUT ; __c??X _b_YXX aZYYXX
|
||||||
DEX
|
|
||||||
LDA _bcd-$FD,Y ; __c??X _b_YXX aZYYXX
|
LDA _bcd-$FD,Y ; __c??X _b_YXX aZYYXX
|
||||||
AND #$F
|
AND #$F
|
||||||
CLC
|
CLC
|
||||||
|
|
Loading…
Reference in New Issue
Block a user