Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serious FOR bug in latest dev build s1964
#14
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)


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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)