Skip to Content

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 LOCKCaps lock off/on
□CAPS LOCKInvert shift action (SHIFT for lower case)
◇CAPS LOCKNormal shift action (SHIFT for upper case)
Keywords Available
ABSACSADVALANDASC
ASNATNAUTOBGETBPUT
CALLCHAINCHR$CLEARCLG
CLOSECLSCOLOURCOLORCOS
COUNTDATADEFDEGDELETE
DIMDIVDRAWELSEEND
ENDPROCENVELOPEEOFEORERL
ERRERROREVALEXPEXT
FALSEFNFORGCOLGET
GET$GOSUBGOTOHIMEMIF
INKEYINKEY$INPUTINSTR(INT
LEFT$(LENLETLINELIST
LNLOADLOCALLOGLOMEM
MID$(MODMODEMOVENEW
NEXTNOTOFFOLDON
OPENINOPENOUTOPENUPOROSCLI
PAGEPIPLOTPOINT()POS
PRINTPROCPTRPUTRAD
READREMRENUMBERREPEATREPORT
RESTORERETURNRIGHT$(RNDRUN
SAVESGNSINSOUNDSPC
SQRSTEPSTOPSTRSTRING$(
TAB(TANTHENTIMETO
TRACETRUEUNTILUSRVAL
VDUVPOSWIDTH
Last updated on