From: Mike Lowis Date: Mon, 20 Nov 2023 19:44:52 +0000 (-0500) Subject: fixed up local parameter access X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=8205d0afa3359d6cafc615cbd49fae8ba3f46a29;p=proto%2Faas.git fixed up local parameter access --- diff --git a/aas.rb b/aas.rb index 9c0fb4f..4f69b8e 100755 --- a/aas.rb +++ b/aas.rb @@ -293,7 +293,8 @@ class Function # Function Scaffolding: Locals and Returns ## def get_param(num) - emit "movq #{8*(num+1)}(%rbp), %rax" + emit "movq #{8*(num+2)}(%rbp), %rax" + emit "pushq %rax" end def locals(count)