summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
Diffstat (limited to 'jefs.s')
-rw-r--r--jefs.s19
1 files changed, 18 insertions, 1 deletions
diff --git a/jefs.s b/jefs.s
index dd861df..a53b8d4 100644
--- a/jefs.s
+++ b/jefs.s
@@ -62,8 +62,25 @@ section .text
global _start
_start:
; init
- mov r14, wstack
+ mov r14, wstack ; point SP to top
mov rdi, 0
mov rax, __NR_exit
syscall
+
+defword "@", fetch, 0
+ pspop r11
+ mov r12, qword [r11]
+ pspush r12
+ ret
+
+defword "!", store, 0
+ pspop r11
+ pspop r12
+ mov qword [r11], r12
+ ret
+
+initfile:
+incbin "jefs.fs"
+initlen equ $ - initfile
+initfile_end: