summaryrefslogtreecommitdiff
path: root/04
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-01-07 12:06:33 -0500
committerpommicket <pommicket@gmail.com>2022-01-07 12:06:33 -0500
commitfbe3f4e701adcf5ef8707d5b56ec3b179b942e71 (patch)
tree488412f445e77a9abbb04803062a9ee5191c13c7 /04
parent479ff20704ecfb9e78dda1d52375368fbafbabbd (diff)
04 compiler fix (global lookup), start preprocessor
Diffstat (limited to '04')
-rw-r--r--04/guessing_game4
-rw-r--r--04/in032
2 files changed, 3 insertions, 3 deletions
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 <rax> 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