diff options
| author | kitty <nepeta@canaglie.net> | 2026-01-27 18:42:13 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-01-27 18:42:13 +1100 |
| commit | b618fbabca4660203ea4801ddc1b4fb38ca5347e (patch) | |
| tree | c03751ce6ff6c64f7e9f2348b65b7ad0a809eefa /jefs.s | |
| parent | de7c0151df9e1aed2289b4848030cdbcb24eda2d (diff) | |
untested @ ! and some notes
Diffstat (limited to 'jefs.s')
| -rw-r--r-- | jefs.s | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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: |
