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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Citizen</strong> <strong>BASIC</strong> <strong>Interpreter</strong><br />

12 SAVE<br />

STORE<br />

Save <strong>BASIC</strong> program<br />

13 DIR FILES Display list of <strong>BASIC</strong> program file<br />

14 DEBUG Set debug mode<br />

15 TRACE Set trace mode<br />

3.4 List of Statements<br />

Table 10 shows the list of statements.<br />

Table 10: List of statements<br />

No. Command Function<br />

1 END End execution of <strong>BASIC</strong> program<br />

2 GOTO Jump executing lines<br />

3 STOP Stop execution of <strong>BASIC</strong> program<br />

4 IF Judge condition<br />

5 FOR Execute repetition<br />

6 REPEAT Execute repetition<br />

7 WHILE Execute repetition<br />

8 DO Execute repetition<br />

9 EXIT Escape from loop<br />

10 GOSUB Call sub-routine<br />

11 RETURN Return from sub-routine<br />

12 ON GOTO Jump condition<br />

13 RESUME Return from error handling routine<br />

14 SLEEP Suspend execution<br />

15 REM Comment<br />

16 LET Assign variable<br />

17 PRINT Output data display<br />

18 INPUT Input data<br />

19 READ Input data<br />

20 DATA Define data variable<br />

21 RESTORE Change data input position<br />

22 OPEN Device open<br />

23 CLOSE Device close<br />

24 LINPUT Input data line<br />

25 CLRERR Release printer error<br />

26 SETERR Set printer error<br />

27 INBYTE Input 1 byte of device data<br />

28 OUTBYTE Output 1 byte of device data<br />

29 DECLARE Define array<br />

30 DIM Define array<br />

31 BASE Define array radix<br />

32 DEF Define function<br />

33 BREAK Interrupt <strong>BASIC</strong> program<br />

34 ERROR Display error message<br />

35 RANDOMIZE Initialize random numbers<br />

22

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

Saved successfully!

Ooh no, something went wrong!