dim i,j as uinteger
for i=0 to 6143 step 3
for j=16384 to 0 step -32
print at 0,0;j;" "
for i=0 to 767
poke 16384+6144+i,peek(i+j) band 127
Ask for help and support on things not being bugs. Help on how to program with ZX Basic, etc. Please, READ the How-To & Tutorials forum and Wiki before asking here: your question might already be answered.
You're defining j variable as Uinteger, so a FOR from 16384 DOWNTO 0 will stop when the j variable passes beyond 0, thus negative. This will never happen, because j is always positive (UInteger), so it overflows from 0 to (65535 - 31) and never stops
boriel wrote:Did you try changing the value type?
nope, i kept uinteger, because i were only using values from 0 to 65535 - btw, i got that overflow issue you told, and this situation is focusing me on try different aproaches when coding - thanks
Who is online
Users browsing this forum: No registered users and 0 guests