mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
Rounding proposal.
This commit is contained in:
+15
-14
@@ -2109,24 +2109,25 @@ YangleUnder90
|
|||||||
sta vy
|
sta vy
|
||||||
|
|
||||||
lda #0 ; all arithmetic to zero
|
lda #0 ; all arithmetic to zero
|
||||||
sta fx
|
|
||||||
sta fy
|
|
||||||
sta vx+1
|
sta vx+1
|
||||||
sta vy+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
|
/* ; add 0.5 to vx and vy for better rounding
|
||||||
;clc
|
clc
|
||||||
;lda vx
|
lda vx
|
||||||
;adc #128 ; 1/2
|
adc #128 ; 1/2
|
||||||
;sta vx
|
sta vx
|
||||||
;scc:inc vx+1
|
scc:inc vx+1
|
||||||
;
|
|
||||||
;clc
|
|
||||||
;lda vy
|
|
||||||
;adc #128 ; 1/2
|
|
||||||
;sta vy
|
|
||||||
;scc:inc vy+1
|
|
||||||
|
|
||||||
|
clc
|
||||||
|
lda vy
|
||||||
|
adc #128 ; 1/2
|
||||||
|
sta vy
|
||||||
|
scc:inc vy+1
|
||||||
|
*/
|
||||||
; draw by vx vy
|
; draw by vx vy
|
||||||
; in each step
|
; in each step
|
||||||
; 1. plot(xdraw, ydraw)
|
; 1. plot(xdraw, ydraw)
|
||||||
|
|||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user