fix bugs with chrout to make work with BASIC
This commit is contained in:
1 parent
e80df3ff53
commit
63645c8ef8
1 file changed
+4
-2
+4
-2
@@ -12,6 +12,7 @@ chrout:
|
||||
tya
|
||||
pha
|
||||
lda last_printed_character_ascii
|
||||
tax
|
||||
|
||||
;; Write character on the screen
|
||||
ldy current_screen_x
|
||||
@@ -52,12 +53,13 @@ chrout_l1:
|
||||
jmp screen_advance_to_next_line
|
||||
no_screen_advance_to_next_line:
|
||||
chrout_done:
|
||||
;; Restore X and Y
|
||||
;; Restore X and Y, set carry to mark success on exit
|
||||
pla
|
||||
tay
|
||||
pla
|
||||
tax
|
||||
|
||||
lda last_printed_character_ascii
|
||||
clc ; indicate success
|
||||
rts
|
||||
|
||||
screen_grow_logical_line:
|
||||
|
||||
Reference in new issue
Block a user