01-21-2021, 09:44 PM
I ran across this bug as well and I'm a bit puzzled.
How do you plot pixels across ZX Spectrum screen using UBYTE?
None of the build-in loops can help, I end up with solution like this (which is almost as fast as for .. next loop)
When I use:
I see 254 and printed 255 below, but I can't be in the loop for 255 because it will be overflown.
Or maybe I'm missing something?
How do you plot pixels across ZX Spectrum screen using UBYTE?
None of the build-in loops can help, I end up with solution like this (which is almost as fast as for .. next loop)
Code:
DIM x as UBYTE
do
plot x,30
if x = 255 then exit do
x = x + 1
loop
When I use:
Code:
for x=0 to 254
print at 0,0;x
next x
print at 1,0;x
I see 254 and printed 255 below, but I can't be in the loop for 255 because it will be overflown.
Or maybe I'm missing something?