21.11.2014 Views

Programming Manual for Citizen BASIC Interpreter - MaRCo

Programming Manual for Citizen BASIC Interpreter - MaRCo

Programming Manual for Citizen BASIC Interpreter - MaRCo

SHOW MORE
SHOW LESS

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 />

TRACE [{ON| OFF}]<br />

【Parameter】<br />

ON: with the trace mode<br />

OFF: without the trace mode<br />

Omission of a parameter displays the current state of the trace mode.<br />

【E.g.】<br />

>LIST<br />

1000 DEBUG ON<br />

1010 TRACE ON<br />

1020 T=0<br />

1030 FOR I=1 TO 3<br />

1040 T=T+I<br />

1050 NEXT I<br />

Ready<br />

>RUN<br />

1020<br />

T=0<br />

1030<br />

I=1<br />

1040<br />

T=1<br />

1050<br />

I=2<br />

1040<br />

T=3<br />

1050<br />

I=3<br />

1040<br />

T=6<br />

1050<br />

I=4<br />

Ready<br />

3.15.3 BREAK Statement<br />

【Explanation】<br />

This statement suspends execution of the <strong>BASIC</strong> program to set the state of command<br />

input. To restart execution of the <strong>BASIC</strong> program, input the CONT command. To<br />

interrupt execution by the BREAK statement, it must be set to the debug mode by<br />

the DEBUG command.<br />

【Format】<br />

BREAK<br />

【E.g.】<br />

>LIST<br />

1000 T=0<br />

1010 FOR I=1 TO 3<br />

1020 T=T+I<br />

1030 BREAK<br />

1040 NEXT I<br />

Ready<br />

>DEBUG ON<br />

Ready<br />

>RUN<br />

48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!