Keywords
Keywords are recognized before anything else. (For example, DEG and ASN in DEGASN are recognized, but neither is recognized in ADEGASN.) Consequently, you don’t have to type a space between a keyword and a variable (but it does make it easier to read your program).
Although they are keywords, the names of pseudo variables such as PI, LOMEM, HIMEM, PAGE, TIME, etc, act as variables in that their names can form the first part of the name of another variable. For example, if A is a variable, then AB can also be a variable. Similarly, the name PI is not recognized in the name PILE; they are both unique variable names. However, PI%, PI$ etc. are not allowed. Since variables named in lower case will never be confused with keywords, many programmers use upper case only for keywords.
Ninety-three out of the total of 123 keywords are not allowed in upper case at the start of a variable name (anything may be used in lower case). Those keywords that are allowed are shown in bold type.
Sound and colour commands are not available on the Z88. The commands are shown in small italics. If you use one of these commands, a “Sorry, not implemented” error will be reported.
Graphics commands are available via installation of external Z88 Patch for ROM releases V2.2 - V4.0. The Z88 Patch is integrated by default in ROM releases V4.3 and later.
If the Z88 Patch is not installed and you use one of the graphics commands, a “Sorry, not implemented” error will be reported.
Since the keywords must be in upper case, you may wish to use the CAPS LOCK key to lock the letter keys to uppercase (the default setting for BBC BASIC(Z80)). Alternatively, you can invert the action of the SHIFT key so that unshifted letters are in upper case and shifted letters are in lower case.
| CAPS LOCK | Caps lock off/on |
| □CAPS LOCK | Invert shift action (SHIFT for lower case) |
| ◇CAPS LOCK | Normal shift action (SHIFT for upper case) |
| ABS | ACS | ADVAL | AND | ASC |
| ASN | ATN | AUTO | BGET | BPUT |
| CALL | CHAIN | CHR$ | CLEAR | CLG |
| CLOSE | CLS | COLOUR | COLOR | COS |
| COUNT | DATA | DEF | DEG | DELETE |
| DIM | DIV | DRAW | ELSE | END |
| ENDPROC | ENVELOPE | EOF | EOR | ERL |
| ERR | ERROR | EVAL | EXP | EXT |
| FALSE | FN | FOR | GCOL | GET |
| GET$ | GOSUB | GOTO | HIMEM | IF |
| INKEY | INKEY$ | INPUT | INSTR( | INT |
| LEFT$( | LEN | LET | LINE | LIST |
| LN | LOAD | LOCAL | LOG | LOMEM |
| MID$( | MOD | MODE | MOVE | NEW |
| NEXT | NOT | OFF | OLD | ON |
| OPENIN | OPENOUT | OPENUP | OR | OSCLI |
| PAGE | PI | PLOT | POINT() | POS |
| PROC | PTR | PUT | RAD | |
| READ | REM | RENUMBER | REPEAT | REPORT |
| RESTORE | RETURN | RIGHT$( | RND | RUN |
| SAVE | SGN | SIN | SOUND | SPC |
| SQR | STEP | STOP | STR | STRING$( |
| TAB( | TAN | THEN | TIME | TO |
| TRACE | TRUE | UNTIL | USR | VAL |
| VDU | VPOS | WIDTH |