mirror of
https://github.com/Michaelangel007/apple2_printm.git
synced 2024-12-25 06:29:16 +00:00
Ver 28
This commit is contained in:
parent
a2f25bbee8
commit
0c5a21805b
19
printm.s
19
printm.s
@ -5,7 +5,7 @@
|
|||||||
.feature leading_dot_in_identifiers
|
.feature leading_dot_in_identifiers
|
||||||
.PC02 ; 65C02
|
.PC02 ; 65C02
|
||||||
|
|
||||||
/* Version 27
|
/* Version 28
|
||||||
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
|
||||||
@ -97,7 +97,7 @@ to control the memory footprint since you probably
|
|||||||
don't need "every" feature. Seriously, when was the last time
|
don't need "every" feature. Seriously, when was the last time
|
||||||
you _needed_ octal? :-)
|
you _needed_ octal? :-)
|
||||||
|
|
||||||
With everything enabled printm() takes up $1E1 = 481 bytes
|
With everything enabled printm() takes up $1DC = 476 bytes
|
||||||
(Plus 2 bytes in zero page.)
|
(Plus 2 bytes in zero page.)
|
||||||
|
|
||||||
Whoa! I thought you said this was micro!?
|
Whoa! I thought you said this was micro!?
|
||||||
@ -976,7 +976,8 @@ NextArg
|
|||||||
DEBUG .sprintf( "PrintHex4() @ %X", * )
|
DEBUG .sprintf( "PrintHex4() @ %X", * )
|
||||||
PrintHex4:
|
PrintHex4:
|
||||||
LDA #4
|
LDA #4
|
||||||
BNE _PrintHex
|
;BNE _PrintHex
|
||||||
|
db $2C ; BIT $abs skip next instruction
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if USE_HEX_2
|
.if USE_HEX_2
|
||||||
@ -1041,7 +1042,8 @@ PrintReverseBCD
|
|||||||
DEBUG .sprintf( "PrintPtr4() @ %X", * )
|
DEBUG .sprintf( "PrintPtr4() @ %X", * )
|
||||||
PrintPtr4:
|
PrintPtr4:
|
||||||
LDA #4
|
LDA #4
|
||||||
BNE _PrintPtr
|
;BNE _PrintPtr
|
||||||
|
db $2C ; BIT $abs skip next instruction
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if USE_PTR_2
|
.if USE_PTR_2
|
||||||
@ -1151,7 +1153,8 @@ DEBUG .sprintf( "PrintDec5() @ %X", * )
|
|||||||
DEBUG .sprintf( "PrintDec3() @ %X", * )
|
DEBUG .sprintf( "PrintDec3() @ %X", * )
|
||||||
PrintDec3:
|
PrintDec3:
|
||||||
LDA #3
|
LDA #3
|
||||||
BNE _PrintDec ; always
|
;BNE _PrintDec ; always
|
||||||
|
db $2C ; BIT $abs skip next instruction
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if USE_DEC_2
|
.if USE_DEC_2
|
||||||
@ -1247,7 +1250,8 @@ NEW_PRINT_DEC = 0
|
|||||||
DEBUG .sprintf( "PrintBinI() @ %X", * )
|
DEBUG .sprintf( "PrintBinI() @ %X", * )
|
||||||
PrintBinInv:
|
PrintBinInv:
|
||||||
LDA #$31
|
LDA #$31
|
||||||
BNE _PrintBin
|
;BNE _PrintBin
|
||||||
|
db $2C ; BIT $abs skip next instruction
|
||||||
.endif ; USE_BIN_INV
|
.endif ; USE_BIN_INV
|
||||||
|
|
||||||
.if USE_BIN_ASC
|
.if USE_BIN_ASC
|
||||||
@ -1314,7 +1318,8 @@ DEBUG .sprintf( "PrintDecB() @ %X", * )
|
|||||||
DEBUG .sprintf( "PrintOct6() @ %X", * )
|
DEBUG .sprintf( "PrintOct6() @ %X", * )
|
||||||
PrintOct6:
|
PrintOct6:
|
||||||
LDA #6
|
LDA #6
|
||||||
BNE _PrintOct
|
;BNE _PrintOct
|
||||||
|
db $2C ; BIT $abs skip next instruction
|
||||||
.endif
|
.endif
|
||||||
.if USE_OCT_3
|
.if USE_OCT_3
|
||||||
DEBUG .sprintf( "PrintOct3() @ %X", * )
|
DEBUG .sprintf( "PrintOct3() @ %X", * )
|
||||||
|
Loading…
Reference in New Issue
Block a user