From 739758781030f107f260f587a4f9c1e8bdf70f58 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 8 Jun 2024 13:12:23 -0400 Subject: dumpbas: clean up code, work on doc. --- bas.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'bas.h') diff --git a/bas.h b/bas.h index 8168aa1..9d117cc 100644 --- a/bas.h +++ b/bas.h @@ -30,6 +30,27 @@ /* tokenized colon (statement separator) */ #define TOK_COLON 0x14 +/* BASIC tokens. Not a full set. BASIC uses 2 sets of tokens, one + for commands and the other for operators (which is to say, everything + *not* a command). */ +#define CMD_GOTO 0x0a +#define CMD_GO_TO 0x0b +#define CMD_GOSUB 0x0c +#define CMD_TRAP 0x0d +#define CMD_LIST 0x04 +#define CMD_RESTORE 0x23 +#define CMD_REM 0x00 +#define CMD_DATA 0x01 +#define CMD_ERROR 0x37 +#define OP_GOTO 0x17 +#define OP_GOSUB 0x18 +#define OP_THEN 0x1b +#define OP_COMMA 0x12 +#define OP_EOS 0x14 +#define OP_EOL 0x16 +#define OP_NUMCONST 0x0e +#define OP_STRCONST 0x0f + /* variable types, bits 6-7 of byte 0 of each vvtable entry. */ #define TYPE_SCALAR 0 #define TYPE_ARRAY 1 -- cgit v1.2.3