summaryrefslogtreecommitdiff
path: root/sanctuary.s
diff options
context:
space:
mode:
Diffstat (limited to 'sanctuary.s')
-rw-r--r--sanctuary.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/sanctuary.s b/sanctuary.s
index d5e387f..b333966 100644
--- a/sanctuary.s
+++ b/sanctuary.s
@@ -125,6 +125,17 @@ defcode "here", here, 0
pspush r11
ret
+defcode "sp", psp, 0
+ mov r11, r15
+ pspush r11
+ ret
+
+defcode "rp", rp, 0
+ mov r11, rsp
+ add r11, 8
+ pspush r11
+ ret
+
defcode "bye", bye, 0
mov rdi, 0
mov rax, __NR_exit