summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-05-08 15:04:31 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-05-08 15:04:31 -0400
commiteb679e0750798c0fcba06d10d8b003532d931644 (patch)
tree00bf82271361c08b03beec4d96d6b72c9e227ee7
parent607ca37ab87095ac5d79f9a1646a253df633c2e3 (diff)
Fixed a bug in print_char caused by not zero extending
`b`.
-rw-r--r--programs/sub-suite/subeditor.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/programs/sub-suite/subeditor.s b/programs/sub-suite/subeditor.s
index 6e603ae..8337f51 100644
--- a/programs/sub-suite/subeditor.s
+++ b/programs/sub-suite/subeditor.s
@@ -408,7 +408,7 @@ print_char:
phe.q ; Preserve E.
xor s, s ; Reset S.
sta rega ; Preserve the character.
- ldb #2 ; Make sure that set_ptr sets the third pointer.
+ lea b, 2 ; Make sure that set_ptr sets the third pointer.
lda.q buffer ; Set the third pointer to the start of the screen buffer.
jsr set_ptr ;
deb ; Set B to one.