summaryrefslogtreecommitdiff
path: root/jefs.s
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-01-27 18:42:13 +1100
committerkitty <nepeta@canaglie.net>2026-01-27 18:42:13 +1100
commitb618fbabca4660203ea4801ddc1b4fb38ca5347e (patch)
treec03751ce6ff6c64f7e9f2348b65b7ad0a809eefa /jefs.s
parentde7c0151df9e1aed2289b4848030cdbcb24eda2d (diff)
untested @ ! and some notes
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: