From 5ac9e9a3f9509029e2392f80a44171f8c776f2ca Mon Sep 17 00:00:00 2001 From: anon Date: Wed, 17 Jul 2024 00:04:42 +0200 Subject: [PATCH] what xola asked --- source/eaxhla.c | 2 +- source/eaxhla.y | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/eaxhla.c b/source/eaxhla.c index f35529f..bc4b19a 100644 --- a/source/eaxhla.c +++ b/source/eaxhla.c @@ -18,7 +18,7 @@ unsigned long long anon_variable_counter = 0; -static unsigned symbol_id = 0; +static unsigned symbol_id = 1; tommy_hashtable symbol_table; int has_encountered_error = 0; diff --git a/source/eaxhla.y b/source/eaxhla.y index 693c884..c96b17e 100644 --- a/source/eaxhla.y +++ b/source/eaxhla.y @@ -111,6 +111,7 @@ program_head: program_specifier PROGRAM IDENTIFIER { YYERROR; } is_program_found = 1; + append_instructions(ASMDIRMEM, 0); scope = $3; // !!! IF WE START USING THE REFERENCE OF $3 THIS WILL DOUBLE FREE };