EasyManua.ls Logo

Commodore CBM - Page 326

Commodore CBM
447 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...
Table 6-3.
PET
BASIC Keyword Codes
Code
Character/
Code
Character/ Code
Character/ Code
Character/
(decimall Keyword
(decimall
Keyword (decimall
Keyword
(decimall
Keyword
0
End
of line
66
B
133
INPUT
169
STEP
1-31
Unused
67
C
134
DIM
170
+
32
space 68
D
135
READ
171
-
33
!
69 E
136
LET
172
.
34
,.
70
F
137
GOTO
173
/
35
=li:
71
G
138
RUN
174
+
36
$
72
H
139
IF
175
AND
37
%
73 1
140
RESTORE
176
OR
38
&
74
J
141
GOSUB
177
>
39
75
K
142
RETURN
178
=
40
( 76
L
143
REM
179
<
41
)
77
M
144
STOP
180
SGN
42
.
78 N
145
ON
181
INT
43
+
79
0
146
WAIT 182
ABS
44 80 P
147
LOAD
183
USR
45
-
81
0
148
SAVE
184
FRE
46 82 R
149
VERIFY
185
POS
47
/
83 S
150
DEF
186
SOR
48
0
84
T
151
POKE
187
RND
49
1
85
U
152
PRINT=lI:
188
LOG
50
2
86
V
153
PRINT
189
EXP
51
3
87
W
154
CONT
190
COS
52
4
88
X 155
LIST
191
SIN
53
5
89
Y
156
CLR
192
TAN
54
6
90
Z
157
CMD
193
ATN
55
7
91
[
158
SYS
194
PEEK
56
8
92
\
159
OPEN
195
LEN
57
9
93
]
160
CLOSE
196
STR$
58
94
+
161
GET
197
VAL
59
95
.-
162
NEW
198
ASC
60
<
96-127
Unused
163
TAB( 199
CHR$
61
=
128
END
164
TO
200
LEFT$
62
>
129
FOR
165
FN
201
RIGHT$
63
?
130
NEXT
166
SPC(
202 MID$
64
@
131
DATA
167
TH
EN
203-254
Unused
65
A
132
INPUT
=li:
168
NOT
255
7T
Note
that
the left parenthesis
is
stored
as
part of the one-byte token for the
functions
TAB
and SPC,
but
that
the other functions use a separate byte for this
symbol. For example, the line
10
IF
INT(A)<5
TH
EN
PRINT TAB(X)
would
be
coded
as
the
following
bytes (in decimall:
INT
A < 5
THEN
PRINT
T
AB(
313

Table of Contents

Other manuals for Commodore CBM

Related product manuals