[
Index] [
Previous] [
Next]
1.2 Keywords
There are three groups of keywords :
- General keywords. These typically start a statement; examples are LET, PRINT, GOTO and so on.
- Supplementary keywords. Used in statements but not as part of an expression, eg TO, STEP, TAB
- Inline keywords. Only used in expressions, eg, SIN, RND, INT.
KW_INLINE_FNS
A table of function pointers for the inline keywords.
003D
E409
KW_INLINE_FNS
DW
Sgn
0043
9804
DW Usr
KW_ARITH_OP_FNS
A table of function pointers for the arithmetic operator functions. Four entries of three bytes each; the first entry byte is for operator precedence and the second and third bytes are function pointers.
004B
791008
KW_ARITH_OP_FNS
DB 0x79, DW
FAdd
+
004E
790A08
DB 0x79, DW
FSub
-
0051
7CE308
DB 0x7C, DW
FMul
*
0054
7C2F09
DB 0x7C, DW
FDiv
/
KEYWORDS
String constants for all keywords, including arithmetic operators. Note that the last character of each keyword has bit 7 set to denote that it is the last character; also that the whole table is terminated with a single null byte.
General keywords
0057
454EC4
KEYWORDS
"END"
80
0065
494E5055D4
"INPUT"
84
007D
524553544F52C5
"RESTORE"
8B
0084
474F5355C2
"GOSUB"
8C
0089
5245545552CE
"RETURN"
8D
0096
5052494ED4
"PRINT"
90
009F
434C4541D2
"CLEAR"
92
Supplementary keywords
Arithmetic and logical operators
Inline keywords
Null terminator.
KW_GENERAL_FNS
Pointers to the functions for the 20 general keywords at the start of the KEYWORDS table above.
00D2
F701
KW_GENERAL_FNS
DW
Stop
END
00D8
F504
DW Data
DATA
00F6
A602
DW Clear
CLEAR
[Index] [Previous] [Next]