summaryrefslogtreecommitdiff
path: root/sanctuary.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-24 14:17:59 +1100
committerkitty <nepeta@canaglie.net>2026-03-24 14:17:59 +1100
commit6819ca743193bb9ae4e32c9c87c98b27d06c0c82 (patch)
treeb44746d48e4fec00241bae78e34bc2f234c32209 /sanctuary.s
parentae1c341e4ce177a83fa678615103f32677888ed8 (diff)
fix s" also rp sp and emit
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