diff options
author | Bad Diode <bd@badd10de.dev> | 2021-11-04 12:55:25 +0100 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-11-04 12:55:25 +0100 |
commit | 7b3b52e6307ceda963bd1a6c481baeb720c2beb3 (patch) | |
tree | 09222d7a39aa16ad00ccd8abe37327edb8a7c5b7 /src/x86_64 | |
parent | 7cbef14e8393475b1e569fdbfff2c46db859d43f (diff) | |
download | bdl-7b3b52e6307ceda963bd1a6c481baeb720c2beb3.tar.gz bdl-7b3b52e6307ceda963bd1a6c481baeb720c2beb3.zip |
Change heap register to `r15` from `rsi` to avoid conflicts
Diffstat (limited to 'src/x86_64')
-rw-r--r-- | src/x86_64/prelude.asm | 4 |
1 files changed, 2 insertions, 2 deletions
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: | |||
82 | cmp rax, NIL_VAL | 82 | cmp rax, NIL_VAL |
83 | je display_end | 83 | je display_end |
84 | 84 | ||
85 | ; ;; is boolean? | 85 | ;; is boolean? |
86 | mov rax, rdi | 86 | mov rax, rdi |
87 | and rax, BOOL_MASK | 87 | and rax, BOOL_MASK |
88 | cmp rax, BOOL_TAG | 88 | cmp rax, BOOL_TAG |
@@ -100,7 +100,7 @@ display_end: | |||
100 | global _start | 100 | global _start |
101 | _start: | 101 | _start: |
102 | ;; point `rdi` to the start of the heap. | 102 | ;; point `rdi` to the start of the heap. |
103 | mov rsi, bdl_heap | 103 | mov r15, bdl_heap |
104 | 104 | ||
105 | ;; make sure the last element in the stack is the nil value. | 105 | ;; make sure the last element in the stack is the nil value. |
106 | push NIL_VAL | 106 | push NIL_VAL |