summaryrefslogtreecommitdiff
path: root/sanctuary.s
diff options
context:
space:
mode:
Diffstat (limited to 'sanctuary.s')
-rw-r--r--sanctuary.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/sanctuary.s b/sanctuary.s
index 1182e1e..c8f16d8 100644
--- a/sanctuary.s
+++ b/sanctuary.s
@@ -161,6 +161,19 @@ defcode "rp", rp, 0
pspush r11
ret
+; todo doc
+defcode "r@", rfetch, 0
+ mov r11, rsp
+ add r11, 8
+ mov r12, qword [r11]
+ pspush r12
+ ;
+ ; mov r11, rsp
+ ; pop r11
+ ; pspush rsp
+ ; push r11
+ ret
+
defcode "bye", bye, 0
mov rdi, 0
mov rax, __NR_exit