unknown variable

adub

New Member
The following code gives me an error code "unknown variable" at the "goto start" line while simulating. Both for 08M and when 18X is selected in options. Didn't check all chips.

Is there a work around? Known bug?
<code><pre><font size=2 face='Courier'>
Start:
for b2 = 15 to 0 step -1
gosub r
next b2
goto Start

r:
pause 1
return
</font></pre></code>
 

SIRA

Member
How about this prog segment adapted from Arvin?
Step function does not work?
Start:
for b2 = 0 to 15 step 2
gosub r
next b2
goto Start

r:
pause 1
return
 

adub

New Member
<code><pre><font size=2 face='Courier'>
b0 = b0 / 15
for b0 = b0 to 0 step -1
pause 5
next b0
' gives error....
'Unknown Variable in the simulator
' at the for statement.
'but works fine when downloaded.
' Part of the same problem?
</font></pre></code>
 
Top