Shrink demo by 1 byte

This commit is contained in:
Michaelangel007 2016-02-21 19:26:14 -07:00
parent ac45479162
commit 37c1952f78

View File

@ -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