base:circle_routine
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
base:circle_routine [2020-04-12 18:35] – created verz | base:circle_routine [2020-04-19 19:24] (current) – verz | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Circle Routine ====== | ||
+ | |||
Circle routine, on the bitmap screen, based on algorithm at: [[http:// | Circle routine, on the bitmap screen, based on algorithm at: [[http:// | ||
- | < | + | < |
_Vic = $d000 | _Vic = $d000 | ||
_Vmem= $2000 | _Vmem= $2000 | ||
Line 20: | Line 22: | ||
; | ; | ||
; pY1 (byte 0-199**), center y-coord | ; pY1 (byte 0-199**), center y-coord | ||
- | ; pXR (byte 0-320**), radius | + | ; pXR (word 0-320**), radius |
; | ; | ||
; while X and R can be up to 65535 (X in 0-32767 for | ; while X and R can be up to 65535 (X in 0-32767 for | ||
Line 157: | Line 159: | ||
jsr CheckPlot | jsr CheckPlot | ||
- | lda yoMy ; ****** 6. SSW, arc 5 | + | lda yoMy ; ****** 6. ENE, arc 2 |
sta pY | sta pY | ||
jsr CheckPlot | jsr CheckPlot | ||
| | ||
- | lda xoMx ; ****** 7. WSW, arc 6 | + | lda xoMx ; ****** 7. WNW, arc 7 |
sta pX | sta pX | ||
lda xoMx+1 | lda xoMx+1 | ||
Line 167: | Line 169: | ||
jsr CheckPlot | jsr CheckPlot | ||
- | lda yoPy ; ****** 8. SSE, arc 4 | + | lda yoPy ; ****** 8. WSW, arc 6 |
sta pY | sta pY | ||
jsr CheckPlot | jsr CheckPlot | ||
- | lda xoPy ; ****** 9. WNW, arc 7 | + | lda xoPy ; ****** 9. SSE, arc 4 |
sta pX | sta pX | ||
lda xoPy+1 | lda xoPy+1 | ||
Line 183: | Line 185: | ||
jsr CheckPlot | jsr CheckPlot | ||
- | lda xoMy ; ****** 11. ENE, arc 2 | + | lda xoMy ; ****** 11. NNW, arc 8 |
sta pX | sta pX | ||
lda xoMy+1 | lda xoMy+1 | ||
Line 189: | Line 191: | ||
jsr CheckPlot | jsr CheckPlot | ||
- | lda yoPx ; ****** 12. NNW, arc 8 | + | lda yoPx ; ****** 12. SSW, arc 5 |
sta pY | sta pY | ||
jsr CheckPlot | jsr CheckPlot |
base/circle_routine.txt · Last modified: 2020-04-19 19:24 by verz