diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-08 15:04:31 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-05-08 15:04:31 -0400 |
commit | eb679e0750798c0fcba06d10d8b003532d931644 (patch) | |
tree | 00bf82271361c08b03beec4d96d6b72c9e227ee7 | |
parent | 607ca37ab87095ac5d79f9a1646a253df633c2e3 (diff) |
Fixed a bug in print_char caused by not zero extending
`b`.
-rw-r--r-- | programs/sub-suite/subeditor.s | 2 |
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. |