mirror of
https://github.com/Michaelangel007/apple2_printm.git
synced 2024-12-25 06:29:16 +00:00
Ver 22
This commit is contained in:
parent
b6e3126518
commit
ddcc225bfd
26
printm.s
26
printm.s
@ -1,7 +1,7 @@
|
|||||||
; ca65
|
; ca65
|
||||||
.feature c_comments
|
.feature c_comments
|
||||||
|
|
||||||
/* Version 21
|
/* Version 22
|
||||||
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
|
||||||
@ -1218,17 +1218,21 @@ DEBUG .sprintf( "PrintDec2() @ %X", * )
|
|||||||
ASL _val+0
|
ASL _val+0
|
||||||
ROl _val+1
|
ROl _val+1
|
||||||
|
|
||||||
LDA _bcd+0
|
LDY #$FC
|
||||||
ADC _bcd+0
|
@DoubleDabble:
|
||||||
STA _bcd+0
|
LDA _bcd-$FC,Y
|
||||||
|
ADC _bcd-$FC,Y
|
||||||
|
STA _bcd-$FC,Y
|
||||||
|
INY
|
||||||
|
BNE @DoubleDabble
|
||||||
|
|
||||||
LDA _bcd+1
|
; LDA _bcd+1
|
||||||
ADC _bcd+1
|
; ADC _bcd+1
|
||||||
STA _bcd+1
|
; STA _bcd+1
|
||||||
|
;
|
||||||
LDA _bcd+2
|
; LDA _bcd+2
|
||||||
ADC _bcd+2
|
; ADC _bcd+2
|
||||||
STA _bcd+2
|
; STA _bcd+2
|
||||||
|
|
||||||
DEX
|
DEX
|
||||||
BNE _Dec2BCD
|
BNE _Dec2BCD
|
||||||
|
Loading…
Reference in New Issue
Block a user