Explorar el Código

Fix getting the heap argument

First argument: rdi register by the C calling conventions (for amd64).
Lucas Stadler %!s(int64=8) %!d(string=hace) años
padre
commit
3bdee51a15
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scm/inc/compiler.scm

+ 1 - 1
scm/inc/compiler.scm

@ -188,6 +188,6 @@
188 188
  (display ".globl scheme_entry\n\n")
189 189
  (display "scheme_entry:\n")
190 190
191
  (emit "movq %rax, %rsi") ; store pointer to heap memory
191
  (emit "movq %rdi, %rsi") ; store pointer to heap memory
192 192
  (emit-expr x (- wordsize) '())
193 193
  (emit "ret"))