aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-08-18 07:44:26 +0200
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-08-18 07:44:26 +0200
commit1a119566ace06c96bb7555bb0db89fb57e5357f9 (patch)
treea045eafbe4b204a9d1dc6f5896315db19aade368
parent157f7cb9b4bc171d162e633c02e1f1b60ddcc50a (diff)
downloadparadox-1a119566ace06c96bb7555bb0db89fb57e5357f9.tar.xz
fix stack
-rwxr-xr-xbootstrap.lua2
-rwxr-xr-xrun.sh2
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"