mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 16:34:15 +00:00
Fixed bug with %N in printf()
This commit is contained in:
parent
0ad6894a5b
commit
720db5a2d8
@ -163,7 +163,9 @@ PRINTB: CMP #'B ;'Else If "b" or "B"
|
|||||||
JMP PRINTY ; and Continue Printing String
|
JMP PRINTY ; and Continue Printing String
|
||||||
PRINTN: CMP #'N ;'Else If "n" or "N"
|
PRINTN: CMP #'N ;'Else If "n" or "N"
|
||||||
BNE PRINTS
|
BNE PRINTS
|
||||||
|
STY TEMP0 ; Save Index
|
||||||
JSR NEWLIN ; Execute Newline Function
|
JSR NEWLIN ; Execute Newline Function
|
||||||
|
LDY TEMP0 ; Restore Index
|
||||||
JMP PRINTY ; and Continue Printing String
|
JMP PRINTY ; and Continue Printing String
|
||||||
PRINTS: CMP #'S ;'Else If "s" or "S"
|
PRINTS: CMP #'S ;'Else If "s" or "S"
|
||||||
BNE PRINTW
|
BNE PRINTW
|
||||||
|
Loading…
Reference in New Issue
Block a user