From a160372c6036b02150d2514358b2af8bd676c76b Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Mon, 22 Apr 2019 23:59:41 +0930 Subject: [PATCH] fix bug when printing 15th most common character in packed messages --- c64/basic/print_packed_message.s | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/c64/basic/print_packed_message.s b/c64/basic/print_packed_message.s index c3bbd354..6373107c 100644 --- a/c64/basic/print_packed_message.s +++ b/c64/basic/print_packed_message.s @@ -130,6 +130,7 @@ has_lo_nybl_char: ;; bytes, as these do not encode characters cpx #$f beq + +has_nybl: cpx #0 beq + @@ -156,7 +157,14 @@ is_uncommon_char: and #$0f clc adc #14 - jmp has_lo_nybl_char + + ;; We need to print the low nybl char as well + tax + tya + pha + + jmp has_nybl + done_printing_word: rts