slight gfx optimizations

This commit is contained in:
Irmen de Jong 2020-04-08 03:38:22 +02:00
parent e4fe1d2b8d
commit df3371b0f0
3 changed files with 13 additions and 10 deletions

View File

@ -141,21 +141,26 @@ graphics {
byte decisionOver2 = 1-xx
while xx>=yy {
ubyte cy_plus_yy = cy + yy
ubyte cy_min_yy = cy - yy
ubyte cy_plus_xx = cy + xx
ubyte cy_min_xx = cy - xx
for plotx in cx to cx+xx {
plot(cy + yy)
plot(cy - yy)
plot(cy_plus_yy)
plot(cy_min_yy)
}
for plotx in cx-xx to cx-1 {
plot(cy + yy)
plot(cy - yy)
plot(cy_plus_yy)
plot(cy_min_yy)
}
for plotx in cx to cx+yy {
plot(cy + xx)
plot(cy - xx)
plot(cy_plus_xx)
plot(cy_min_xx)
}
for plotx in cx-yy to cx {
plot(cy + xx)
plot(cy - xx)
plot(cy_plus_xx)
plot(cy_min_xx)
}
yy++
if decisionOver2<=0

View File

@ -1,6 +1,5 @@
%import c64lib
%import c64graphics
%zeropage basicsafe
main {

View File

@ -2,7 +2,6 @@
%import c64flt
%import c64graphics
%option enable_floats
%zeropage basicsafe
main {