From 7b3b52e6307ceda963bd1a6c481baeb720c2beb3 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Thu, 4 Nov 2021 12:55:25 +0100 Subject: Change heap register to `r15` from `rsi` to avoid conflicts --- src/x86_64/prelude.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/x86_64') diff --git a/src/x86_64/prelude.asm b/src/x86_64/prelude.asm index e57e820..3ad33f7 100644 --- a/src/x86_64/prelude.asm +++ b/src/x86_64/prelude.asm @@ -82,7 +82,7 @@ display: cmp rax, NIL_VAL je display_end - ; ;; is boolean? + ;; is boolean? mov rax, rdi and rax, BOOL_MASK cmp rax, BOOL_TAG @@ -100,7 +100,7 @@ display_end: global _start _start: ;; point `rdi` to the start of the heap. - mov rsi, bdl_heap + mov r15, bdl_heap ;; make sure the last element in the stack is the nil value. push NIL_VAL -- cgit v1.2.1