Fix drawing terminator, round usec

This commit is contained in:
Brooke Vibber 2025-01-08 18:34:46 -08:00
parent 7c04862d70
commit e0cc704d99

View file

@ -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