SECTION 20

[continue/next section] [MAIN/Introduction] [table of contents]

TABLE OF CONTENTS

20.1 Reserved System Words (Keywords)

20.2 Reserved System Symbols

20.1 Reserved System Words (Keywords)

This section lists the words and symbols used to make up the BASIC 7.0 language. These words and symbols cannot be used within a program as other than a component of the BASIC language. The only exception is that they may be used within quotes in a PRINT or LET statement.

ABS
AND
APPEND
ASC
ATN
AUTO
BACKUP
BANK
BEGIN
BEND
BLOAD
BOOT
BOX
BSAVE
BUMP
CATALOG
CHAR
CHR$
CIRCLE
CLOSE
CLR
CMD
COLLECT
COLLISION
COLOR
CONCAT
CONT
COPY
COS
DATA
DCLEAR
DCLOSE
DEC
DEF
DELETE
DIM
DIRECTORY
DLOAD
DO
DOPEN
DRAW
DS
DSAVE
DS$
DVERIFY
EL
ELSE
END
ENVELOPE
ER
ERR$
EXIT
EXP
FAST
FETCH
FILTER
FN
FOR
FRE
GET
GETKEY
GET#
GO64
GOSUB
GOTO
GO TO
GRAPHIC
GSHAPE
HEADER
HELP
HEX$
IF
INPUT
INPUT#
INSTR
INT
JOY
KEY
LEFT$
LEN
LET*
LIST
LOAD
LOCATE
LOG
LOOP
MID$
MONITOR
MOVSPR
NEW
NEXT
NOT
OFF**
ON
OPEN
OR
PAINT
PEEK
PEN
{pi}
PLAY
POINTER
POKE
POS
POT
PRINT
PRINT#
PUDEF
QUIT**
RCLR
RDOT
READ
RECORD
REM
RENAME
RENUMBER
RESTORE
RESUME
RETURN
RGR
RIGHT$
RND
RREG
RSPCOLOR
RSPPOS
RSPRITE
RUN
RWINDOW
SAVE
SCALE
SCNCLR
SCRATCH
SGN
SIN
SLEEP
SLOW
SOUND
SPC(
SPRCOLOR
SPRDEF
SPRITE
SPRSAV
SQR
SSHAPE
ST
STASH
STEP
STOP
STR$
SWAP
SYS
TAB(
TAN
TEMPO
THEN
TI
TI$
TO
TRAP
TROFF
TRON
UNTIL
USING
USR
VAL
VERIFY
VOL
WAIT
WHILE
WIDTH
WINDOW
XOR

* LET may be left out of the statement, so LET A=10 may be written as A=10.

** OFF and QUIT are unimplemented.

20.2 Reserved System Symbols

The following characters are reserved system symbols.

Symbol Use(s)
+ Plus sign Arithmetic addition; string concatenation; relative sprite movement; declare decimal number in machine language monitor.
- Minus sign Arithmetic subtraction; negative number; unary minus; relative sprite movement.
* Asterisk Arithmetic multiplication.
/ Slash Arithmetic division.
^ Up arrow Arithmetic exponentiation.
  Blank space Separate keywords and variable names.
= Equal sign Value assignment; relationship testing.
< Less than Relationship testing.
> Greater than Relationship testing.
, Comma Format output in variable lists; separate multiple function parameters in commands or statements.
. Period Decimal point in floating constants.
; Semicolon Format output in variable lists.
: Colon Separate multiple BASIC statements on a program line; logical end of line in machine language monitor.
" " Quotation mark Enclose string constants
? Question mark Abbreviation for the keyword PRINT; logical end of line in machine language monitor.
( Left parenthesis Expression evaluation and functions.
) Right parenthesis Expression evaluation and functions.
% Percent Declare a variable name as integer; declare binary number in machine language monitor.
# Hash Precede the logical file number in input/output statements.
$ Dollar sign Declare a variable name as a string; declare hexadecimal number in machine language monitor.
& And sign Declare octal number in machine language monitor.
{pi} Pi Declare the numeric constant - approximately 3.14159265

[top of document]

page URL: www.bigfoot.com/~c128page/c128sg/sect-20.htm
contact: c128page@bigfoot.com