From fbe3f4e701adcf5ef8707d5b56ec3b179b942e71 Mon Sep 17 00:00:00 2001 From: pommicket Date: Fri, 7 Jan 2022 12:06:33 -0500 Subject: 04 compiler fix (global lookup), start preprocessor --- 04/guessing_game | 4 +--- 04/in03 | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '04') diff --git a/04/guessing_game b/04/guessing_game index 449ded8..2c8fea9 100644 --- a/04/guessing_game +++ b/04/guessing_game @@ -1,6 +1,4 @@ -global 0x1000 exit_code -global y -y = 4 +global exit_code exit_code = main() exit(exit_code) diff --git a/04/in03 b/04/in03 index 6daf3c5..63cbbbc 100644 --- a/04/in03 +++ b/04/in03 @@ -1554,6 +1554,7 @@ align ; set to address of variable in rsi :set_rax_to_address_of_variable J=:local_variables + R=I call :ident_lookup C=A ?C=0:try_global @@ -1579,6 +1580,7 @@ align return :try_global + I=R J=:global_variables call :ident_lookup C=A -- cgit v1.2.3