1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-25 14:29:27 +00:00

Fixed bug with %N in printf()

This commit is contained in:
Curtis F Kaylor 2018-12-10 17:23:04 -05:00
parent 0ad6894a5b
commit 720db5a2d8

View File

@ -163,7 +163,9 @@ PRINTB: CMP #'B ;'Else If "b" or "B"
JMP PRINTY ; and Continue Printing String
PRINTN: CMP #'N ;'Else If "n" or "N"
BNE PRINTS
STY TEMP0 ; Save Index
JSR NEWLIN ; Execute Newline Function
LDY TEMP0 ; Restore Index
JMP PRINTY ; and Continue Printing String
PRINTS: CMP #'S ;'Else If "s" or "S"
BNE PRINTW