Introduction
Control Codes and Functions
Generation
Control codes are generated by pressing the ◇ key followed by another key. You don’t need to hold the ◇ key down. Thus ‘control’ A is generated by pressing the ◇ followed by the ‘A’ key. ‘Control A’ is shown as ◇A, etc.
What happens to Control Codes?
In the immediate mode on the BBC Micro, all control codes (with the exception of ESC and ◇U) are echoed to the micro’s VDU software where they initiate the same functions as if they had been sent by the VDU statement. This does not happen on the Z88. In the immediate mode and in the response to an INPUT statement, some control codes have a special significance to the input line editor (see later); with the exception of ESC, the others are ignored. All control codes and special function key codes are available to GET and GET$.
Pressing the ESC key aborts a BBC BASIC(Z80) program or command.
Pausing the Display
Holding down the ◇ and SHIFT will pause the output to the screen.
Line Numbers
Line numbers up to 65535 are allowed. If line 65535 does not exist, then GOTO 65535 is equivalent to END. Line number 0 is not permitted.
Statement Separators
When it is necessary to write more than one statement on a line, the statements may be separated by a colon ’:’. BBC BASIC(Z80) will tolerate the omission of the separator if this does not lead to ambiguity. It’s safer to leave it in and the program is easier to read.
For example, the following will work.
10 FOR i=1 TO 5 PRINT i : NEXT