From 1a119566ace06c96bb7555bb0db89fb57e5357f9 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Fri, 18 Aug 2023 07:44:26 +0200 Subject: fix stack --- bootstrap.lua | 2 +- run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.lua b/bootstrap.lua index 4dac57f..04f33dd 100755 --- a/bootstrap.lua +++ b/bootstrap.lua @@ -330,7 +330,7 @@ ret io.write([[ global _start _start: -lea r12, [1000000+8*"$."] +lea r12, [stack+8*1000000] call fun_0 mov rax, 60 mov rdi, 0 diff --git a/run.sh b/run.sh index c7c2e1a..d0eb509 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,6 @@ #!/bin/bash set -e -./paradox < "$1" > "$1.asm" +./paradox < "$1" > "/tmp/$1.asm" nasm -f elf64 "/tmp/$1.asm" -o "/tmp/$1.o" ld "/tmp/$1.o" -o "$1.bin" ./"$1.bin" -- cgit v1.2.3