TRS-80 Color BASIC tokenized file
From Just Solve the File Format Problem
The TRS-80 Color Computer was a home computer sold by Radio Shack from 1980 through 1991, with a different processor and operating system from the other TRS-80 models. It also had its own BASIC, which, like most BASICs of that time, stored its programs in tokenized form. Original models of this computer used cassettes for storage, but disk drive interfaces were later available.
Contents |
Tokens
Blanks are unused, or at least unknown.
Hex | Dec | Token meaning |
---|---|---|
80 | 128 | FOR |
81 | 129 | GO |
82 | 130 | REM |
83 | 131 | ' |
84 | 132 | ELSE |
85 | 133 | IF |
86 | 134 | DATA |
87 | 135 | |
88 | 136 | ON |
89 | 137 | INPUT |
8A | 138 | END |
8B | 139 | NEXT |
8C | 140 | DIM |
8D | 141 | READ |
8E | 142 | RUN |
8F | 143 | RESTORE |
90 | 144 | RETURN |
91 | 145 | STOP |
92 | 146 | POKE |
93 | 147 | CONT |
94 | 148 | LIST |
95 | 149 | CLEAR |
96 | 150 | NEW |
97 | 151 | CLOAD |
98 | 152 | CSAVE |
99 | 153 | OPEN |
9A | 154 | CLOSE |
9B | 155 | LLIST |
9C | 156 | SET |
9D | 157 | RESET |
9E | 158 | CLS |
9F | 159 | MOTOR |
A0 | 160 | SOUND |
A1 | 161 | AUDIO |
A2 | 162 | EXEC |
A3 | 163 | SKIPF |
A4 | 164 | TAB( |
A5 | 165 | TO |
A6 | 166 | SUB |
A7 | 167 | THEN |
A8 | 168 | NOT |
A9 | 169 | STEP |
AA | 170 | OFF |
AB | 171 | + |
AC | 172 | - |
AD | 173 | * |
AE | 174 | / |
AF | 175 | ^ |
B0 | 176 | AND |
B1 | 177 | OR |
B2 | 178 | > |
B3 | 179 | = |
B4 | 180 | < |
B5 | 181 | DEL |
B6 | 182 | EDIT |
B7 | 183 | TRON |
B8 | 184 | TROFF |
B9 | 185 | DEF |
BA | 186 | LET |
BB | 187 | LINE |
BC | 188 | PCLS |
BD | 189 | PSET |
BE | 190 | PRESET |
BF | 191 | SCREEN |
C0 | 192 | PCLEAR |
C1 | 193 | COLOR |
C2 | 194 | CIRCLE |
C3 | 195 | PAINT |
C4 | 196 | GET |
C5 | 197 | PUT |
C6 | 198 | DRAW |
C7 | 199 | PCOPY |
C8 | 200 | PMODE |
C9 | 201 | PLAY |
CA | 202 | DLOAD |
CB | 203 | RENUM |
CC | 204 | FN |
CD | 205 | USING |
CE | 206 | DIR (RSDOS) |
CF | 207 | DRIVE (RSDOS) |
D0 | 208 | FIELD (RSDOS) |
D1 | 209 | FILES (RSDOS) |
D2 | 210 | KILL (RSDOS) |
D3 | 211 | LOAD (RSDOS) |
D4 | 212 | LSET (RSDOS) |
D5 | 213 | MERGE (RSDOS) |
D6 | 214 | RENAME (RSDOS) |
D7 | 215 | RSET (RSDOS) |
D8 | 216 | SAVE (RSDOS) |
D9 | 217 | WRITE (RSDOS) |
DA | 218 | VERIFY (RSDOS) |
DB | 219 | UNLOAD (RSDOS) |
DC | 220 | DSKINI (RSDOS) |
DD | 221 | BACKUP (RSDOS) |
DE | 222 | COPY (RSDOS) |
DF | 223 | DSKI$ (RSDOS) |
E0 | 224 | DSKO$ (RSDOS) |
E1 | 225 | |
E2 | 226 | |
E3 | 227 | |
E4 | 228 | |
E5 | 229 | |
E6 | 230 | |
E7 | 231 | |
E8 | 232 | |
E9 | 233 | |
EA | 234 | |
EB | 235 | |
EC | 236 | |
ED | 237 | |
EE | 238 | |
EF | 239 | |
E0 | 240 | |
F1 | 241 | |
F2 | 242 | |
F3 | 243 | |
F4 | 244 | |
F5 | 245 | |
F6 | 246 | |
F7 | 247 | |
F8 | 248 | |
F9 | 249 | |
FA | 250 | |
FB | 251 | |
FC | 252 | |
FD | 253 | |
FE | 254 | |
FF | 255 | (signals that next byte represents token from List 2) |
List 2: 2nd-byte tokens
These are preceded by a FF (hex) byte.
Hex | Dec | Token meaning |
---|---|---|
80 | 128 | SGN |
81 | 129 | INT |
82 | 130 | ABS |
83 | 131 | USR |
84 | 132 | RND |
85 | 133 | SIN |
86 | 134 | PEEK |
87 | 135 | LEN |
88 | 136 | STR$ |
89 | 137 | VAL |
8A | 138 | ASC |
8B | 139 | CHR$ |
8C | 140 | EOF |
8D | 141 | JOYSTK |
8E | 142 | LEFT$ |
8F | 143 | RIGHT$ |
90 | 144 | MID$ |
91 | 145 | POINT |
92 | 146 | INKEY$ |
93 | 147 | MEM |
94 | 148 | ATN |
95 | 149 | COS |
96 | 150 | TAN |
97 | 151 | EXP |
98 | 152 | FIX |
99 | 153 | LOG |
9A | 154 | POS |
9B | 155 | SQR |
9C | 156 | HEX$ |
9D | 157 | VARPTR |
9E | 158 | INSTR |
9F | 159 | TIMER |
A0 | 160 | PPOINT |
A1 | 161 | STRING$ |
A2 | 162 | CVN (RSDOS) |
A3 | 163 | FREE (RSDOS) |
A4 | 164 | LOC (RSDOS) |
A5 | 165 | LOF (RSDOS) |
A6 | 166 | MKN$ (RSDOS) |