From 4fbdd6d5704fcc99383e63398f06226e76c80ac4 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Sun, 22 Mar 2020 01:49:05 +0100 Subject: [PATCH] fix ubyte number print bug for 100-109 and 200-209 missing the tens digit --- compiler/res/prog8lib/c64utils.p8 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/compiler/res/prog8lib/c64utils.p8 b/compiler/res/prog8lib/c64utils.p8 index 3bbb96fe9..8a801b628 100644 --- a/compiler/res/prog8lib/c64utils.p8 +++ b/compiler/res/prog8lib/c64utils.p8 @@ -852,11 +852,14 @@ _print_byte_digits beq + tya jsr c64.CHROUT + pla + jsr c64.CHROUT + jmp _ones + pla cmp #'0' - beq + + beq _ones jsr c64.CHROUT -+ txa +_ones txa jsr c64.CHROUT ldx c64.SCRATCH_ZPREGX rts