From 5b4d161d5c82105f92006aa9cebbcd72b9383178 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 15 Jun 2024 16:22:25 -0400 Subject: vxrefbas: WIP. --- bas.h | 51 +++++++++++++++++++++++++++------------------------ 1 file changed, 27 insertions(+), 24 deletions(-) (limited to 'bas.h') diff --git a/bas.h b/bas.h index ce67309..c88d035 100644 --- a/bas.h +++ b/bas.h @@ -33,30 +33,33 @@ /* 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 CMD_FOR 0x08 -#define CMD_NEXT 0x09 -#define CMD_LET 0x06 -#define CMD_ILET 0x36 -#define CMD_DIM 0x14 -#define CMD_READ 0x22 -#define CMD_INPUT 0x02 -#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 +#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 CMD_FOR 0x08 +#define CMD_NEXT 0x09 +#define CMD_LET 0x06 +#define CMD_ILET 0x36 +#define CMD_DIM 0x14 +#define CMD_READ 0x22 +#define CMD_INPUT 0x02 +#define CMD_GET 0x29 +#define OP_GOTO 0x17 +#define OP_GOSUB 0x18 +#define OP_THEN 0x1b +#define OP_COMMA 0x12 +#define OP_ARR_COMMA 0x3c +#define OP_EOS 0x14 +#define OP_EOL 0x16 +#define OP_NUMCONST 0x0e +#define OP_STRCONST 0x0f +#define OP_HASH 0x1c /* variable types, bits 6-7 of byte 0 of each vvtable entry. */ #define TYPE_SCALAR 0 -- cgit v1.2.3