From eb679e0750798c0fcba06d10d8b003532d931644 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 8 May 2021 15:04:31 -0400 Subject: Fixed a bug in print_char caused by not zero extending `b`. --- programs/sub-suite/subeditor.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-13-gbd6f