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; };