summaryrefslogtreecommitdiff
path: root/04
diff options
context:
space:
mode:
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