Rounding proposal.

This commit is contained in:
Pecusx
2022-11-12 12:18:07 +01:00
parent c19befe31a
commit 3dd58736d7
3 changed files with 15 additions and 14 deletions
+15 -14
View File
@@ -2109,24 +2109,25 @@ YangleUnder90
sta vy
lda #0 ; all arithmetic to zero
sta fx
sta fy
sta vx+1
sta vy+1
; lda #128 ; ; add 0.5 to fx and fy (not vx and vx) for better rounding - it's my opinion (Pecus)
sta fx
sta fy
;; add 0.5 to vx and vy for better rounding
;clc
;lda vx
;adc #128 ; 1/2
;sta vx
;scc:inc vx+1
;
;clc
;lda vy
;adc #128 ; 1/2
;sta vy
;scc:inc vy+1
/* ; add 0.5 to vx and vy for better rounding
clc
lda vx
adc #128 ; 1/2
sta vx
scc:inc vx+1
clc
lda vy
adc #128 ; 1/2
sta vy
scc:inc vy+1
*/
; draw by vx vy
; in each step
; 1. plot(xdraw, ydraw)