From d8ae126e9ad73aca736b4da5163f04098b2be1a1 Mon Sep 17 00:00:00 2001 From: omicron <omicron.me@protonmail.com> Date: Wed, 16 Apr 2025 00:20:35 +0200 Subject: [PATCH] Add opcode encoding value for NODE_INSTRUCTION entries in the AST --- src/ast.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ast.h b/src/ast.h index e5cfd04..12c9b79 100644 --- a/src/ast.h +++ b/src/ast.h @@ -74,6 +74,11 @@ typedef struct register_ { operand_size_t size; } register_t; +typedef struct opcode_encoding { + uint8_t encoding[32]; + size_t len; +} opcode_encoding_t; + struct ast_node { node_id_t id; tokenlist_entry_t *token_entry; @@ -84,6 +89,7 @@ struct ast_node { union { register_t reg; number_t number; + opcode_encoding_t encoding; } value; };