aboutsummaryrefslogtreecommitdiffstats
path: root/src/x86_64/prelude.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/x86_64/prelude.asm')
-rw-r--r--src/x86_64/prelude.asm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/x86_64/prelude.asm b/src/x86_64/prelude.asm
index 6bb6627..e57e820 100644
--- a/src/x86_64/prelude.asm
+++ b/src/x86_64/prelude.asm
@@ -1,3 +1,4 @@
1section .text
1printdln: 2printdln:
2 sar rdi, FIXNUM_SHIFT 3 sar rdi, FIXNUM_SHIFT
3 sub rsp, 40 4 sub rsp, 40
@@ -98,4 +99,8 @@ display_end:
98 99
99global _start 100global _start
100_start: 101_start:
101 push NIL_VAL 102 ;; point `rdi` to the start of the heap.
103 mov rsi, bdl_heap
104
105 ;; make sure the last element in the stack is the nil value.
106 push NIL_VAL