Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Citizen</strong> <strong>BASIC</strong> <strong>Interpreter</strong><br />
3.10.15 RESUME Statement<br />
【Explanation】<br />
This statement recovers from error handling routine by the ON ERROR GOTO statement.<br />
【Format】<br />
RESUME [line number]<br />
【Parameter】 Line number: designates the line number to recover. When omitting the<br />
line number, this gets back to the line from which an error derives.<br />
【E.g.】<br />
>LIST<br />
1000 ON ERROR GOTO 2000<br />
1010 A=1000/0<br />
1020 PRINT "FINISH A=";A<br />
1030 END<br />
2000 PRINT "DIVIDE BY ZERO"<br />
2010 RESUME 1020<br />
Ready<br />
>RUN<br />
DIVIDE BY ZERO<br />
FINISH A=0<br />
Ready<br />
3.10.16 SLEEP Statement<br />
【Explanation】<br />
This statement suspends execution of the <strong>BASIC</strong> program <strong>for</strong> a certain period of time.<br />
【Format】<br />
SLEEP latency time<br />
【Parameter】<br />
Latency time: designates the time to wait execution by seconds.<br />
【E.g.】<br />
1000 SLEEP 10<br />
Stop execution <strong>for</strong> 10 seconds.<br />
3.11 Comment<br />
3.11.1 REM Statement<br />
【Explanation】<br />
This statement is the line to describe comments. They can be described after REM<br />
onwards which does not affect execution of the <strong>BASIC</strong> program.<br />
【Format】<br />
REM [comment statement]<br />
【E.g.】<br />
>LIST<br />
1000 REM Hello world<br />
1010 REM The quick brown fox jumps over the lazy dog<br />
1011 REM<br />
1020 PRINT "FINISH"<br />
Ready<br />
>RUN<br />
FINISH<br />
Ready<br />
36