EasyManua.ls Logo

Commodore Plus 4 - Page 418

Commodore Plus 4
464 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix
B
BASIC
Tokens
In
BASIC
programs,
the
keywords
(e.g.,
PRINT,
GET,
etc.)
are
not
stored
as
character
strings.
Each
keyword
has
a
unique
"token"
assigned
to
it
that
is
stored
instead
of
the
word
itself.
BASIC
recognizes
the
tokens
because
their
high
bit
is
always
set.
When
you
enter
a
BASIC
line,
BASIC
translates
the
keywords
into
tokens
for
storage.
When
you
LIST
a
program,
BASIC
translates
the
tokens
back
into
keywords.
Dec
Hex
Keyword
Dec
Hex
Keyword
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
$80
$81
$82
$83
$84
$85
$86
$87
$88
$89
$8A
$88
$8C
$8D
$8E
$8F
$90
$91
$92
$93
$94
$95
END
FOR
NEXT
DATA
INPUT#
INPUT
DIM
READ
LET
GOTO
RUN
IF
RESTORE
GOSUB
RETURN
REM
STOP
ON
WAIT
LOAD
SAVE
VERIFY
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
$96
$97
$98
$99
$9A
$9B
$9C
$9D
$9E
$9F
$A0
$A1
$A2
$A3
$A4
$A5
$A6
$A7
$A8
$A9
$AA
$AB
DEF
POKE
PRINT#
PRINT
CONT
LIST
CLR
CMD
SYS
OPEN
CLOSE
GET
NEW
TAB(
TO
FN
SPC(
THEN
NOT
STEP
+
406