Fix drawing terminator, round usec
This commit is contained in:
parent
7c04862d70
commit
e0cc704d99
1 changed files with 9 additions and 7 deletions
16
mandel.s
16
mandel.s
|
@ -1253,11 +1253,15 @@ loop:
|
||||||
txa
|
txa
|
||||||
tay
|
tay
|
||||||
lda (strptr),y
|
lda (strptr),y
|
||||||
bmi padding
|
pha ; save the char for terminator check
|
||||||
|
and #$7f ; strip the high bit (terminator)
|
||||||
tay
|
tay
|
||||||
lda char_map,y
|
lda char_map,y
|
||||||
sta textbuffer + col,x
|
sta textbuffer + col,x
|
||||||
inx
|
inx
|
||||||
|
|
||||||
|
pla
|
||||||
|
bmi padding
|
||||||
jmp loop
|
jmp loop
|
||||||
|
|
||||||
padding:
|
padding:
|
||||||
|
@ -1749,12 +1753,10 @@ update_status:
|
||||||
jsr FLD1R
|
jsr FLD1R
|
||||||
jsr FMUL
|
jsr FMUL
|
||||||
|
|
||||||
; @fixme
|
; round (down) to integer
|
||||||
; round to integer
|
jsr FPI
|
||||||
; for some reason this gives bad results?
|
clc
|
||||||
;clc
|
jsr IFP
|
||||||
;jsr FPI
|
|
||||||
;jsr IFP
|
|
||||||
|
|
||||||
; convert to ASCII in INBUFF
|
; convert to ASCII in INBUFF
|
||||||
jsr FASC
|
jsr FASC
|
||||||
|
|
Loading…
Reference in a new issue