Add opcode encoding value for NODE_INSTRUCTION entries in the AST

This commit is contained in:
omicron 2025-04-16 00:20:35 +02:00
parent 68dcd9dcce
commit d8ae126e9a

View File

@ -74,6 +74,11 @@ typedef struct register_ {
operand_size_t size; operand_size_t size;
} register_t; } register_t;
typedef struct opcode_encoding {
uint8_t encoding[32];
size_t len;
} opcode_encoding_t;
struct ast_node { struct ast_node {
node_id_t id; node_id_t id;
tokenlist_entry_t *token_entry; tokenlist_entry_t *token_entry;
@ -84,6 +89,7 @@ struct ast_node {
union { union {
register_t reg; register_t reg;
number_t number; number_t number;
opcode_encoding_t encoding;
} value; } value;
}; };