Skip to content

Commit 37bba2a

Browse files
committed
Save a non-violatile register.
1 parent d2ec7b9 commit 37bba2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

langs/iniquity-gc/compile.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
(prog (externs)
1818
(Global 'entry)
1919
(Label 'entry)
20+
(Push 'rbx)
2021
(Push 'rbp)
2122
(Push 'rbx)
2223
(Mov 'rbp 'rsp) ; save stack base pointer
2324
(Mov rbx rdi) ; recv heap pointer
2425
(compile-e e '())
2526
(Pop 'rbx)
2627
(Pop 'rbp)
28+
(Pop 'rbx)
2729
(Ret)
2830
(compile-defines ds)
2931
(Label 'raise_error_align)

0 commit comments

Comments
 (0)