From e0cc704d9906a3801b8812e3cb994f71995391bf Mon Sep 17 00:00:00 2001 From: Brooke Vibber Date: Wed, 8 Jan 2025 18:34:46 -0800 Subject: [PATCH] Fix drawing terminator, round usec --- mandel.s | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mandel.s b/mandel.s index 7466cd9..db072be 100644 --- a/mandel.s +++ b/mandel.s @@ -1253,11 +1253,15 @@ loop: txa tay lda (strptr),y - bmi padding + pha ; save the char for terminator check + and #$7f ; strip the high bit (terminator) tay lda char_map,y sta textbuffer + col,x inx + + pla + bmi padding jmp loop padding: @@ -1749,12 +1753,10 @@ update_status: jsr FLD1R jsr FMUL - ; @fixme - ; round to integer - ; for some reason this gives bad results? - ;clc - ;jsr FPI - ;jsr IFP + ; round (down) to integer + jsr FPI + clc + jsr IFP ; convert to ASCII in INBUFF jsr FASC