diff options
-rw-r--r-- | liblang.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/liblang.asm b/liblang.asm index 8502d55..ecb1010 100644 --- a/liblang.asm +++ b/liblang.asm @@ -153,13 +153,13 @@ getc: push r11 mov eax, SYS_READ mov edi, STDIN_FILENO - mov rsi, rsp + lea rsi, [rsp-1] mov edx, 1 syscall cmp rax, 1 jne .fail xor eax, eax - mov al, [rsp] + mov al, [rsp-1] .finish: pop r11 pop rcx |