Started reworking the Parser to simplify how instructions will be represented. It will act like a 'first pass' that will do grammar checks but not verify the parameters of the opcodes.
This commit is contained in:
+1
-24
@@ -9,30 +9,7 @@
|
||||
#include "opcodes.h"
|
||||
#include "symbols_table.h"
|
||||
|
||||
#define HIGHMEMORY 65535 //64KiB - 1 AKA 0xFFFF
|
||||
|
||||
// typedef struct {
|
||||
// Token* token;
|
||||
// int length;
|
||||
// int address;
|
||||
// int resolved;
|
||||
// } Symbol;
|
||||
|
||||
// typedef struct {
|
||||
// Mnemonic Mnemonic;
|
||||
// TokenClass ParameterOneType;
|
||||
// TokenClass ParameterTwoType;
|
||||
|
||||
// union {
|
||||
// uint16_t Constant;
|
||||
// Symbol* Address;
|
||||
// } ParameterOne;
|
||||
|
||||
// union {
|
||||
// uint16_t Constant;
|
||||
// Symbol* Address;
|
||||
// } ParameterTwo;
|
||||
// } IROpcode;
|
||||
//#define HIGHMEMORY 65535 //64KiB - 1 AKA 0xFFFF
|
||||
|
||||
typedef struct {
|
||||
List* Instructions;
|
||||
|
||||
Reference in New Issue
Block a user