From 0647f71d8a4dd5e93c0d64f13cea43978cef3ec8 Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 6 Mar 2026 02:05:00 +1100 Subject: todo in readme --- jefs.fs | 2 +- jefs.s | 102 +++++++++++++++++++++++++++++++------------------------------- readme.md | 14 +++++++++ 3 files changed, 66 insertions(+), 52 deletions(-) diff --git a/jefs.fs b/jefs.fs index 3fb3dc1..8ba1e66 100644 --- a/jefs.fs +++ b/jefs.fs @@ -7,7 +7,7 @@ \ better syscall error handling \ \ argc/argv -\ file io +\ load file \ DUMP \ custom Nicer line mode editing (like rlwrap) diff --git a/jefs.s b/jefs.s index b58c691..2ad8020 100644 --- a/jefs.s +++ b/jefs.s @@ -1146,57 +1146,57 @@ defword ">s0", to_s0, 0 mov r14, wstack ret -; TEMPORARY HORRIBLE DEBUGGING BULLSHIT {{{ -; debugging word; outputs raw bytes so needs to be piped through `x(x)d` -; terrible and awful -; W = r14; W <= wstack_b; W+=8 -defword ".s", dots, 0 - push r11 - push r12 - - mov r12, r14 -.loop: - cmp r12, wstack - jge .done - - mov [.space], r12 - mov rdx, 8 ; qword - mov rsi, .space - mov rdi, 1 - mov rax, __NR_write - syscall - - mov rdx, 8 ; qword - mov rsi, r12 - mov rdi, 1 - mov rax, __NR_write - syscall - lea r12, [r12+8] - jmp .loop - -.done: - mov rdx, 16 ; 2 qword - mov rsi, .dmsg - mov rdi, 1 - mov rax, __NR_write - syscall - - pop r12 - pop r11 - ret -.space: resq 1 -.dmsg: db "DONEDONEYIPPEEEE" - -defword "HEREDUMP", heredump, 0 - mov rdx, [here] - mov r11, [herestart] - sub rdx, r11 - mov rsi, [herestart] - mov rdi, 1 - mov rax, __NR_write - syscall - ret -; }}} +; ; TEMPORARY HORRIBLE DEBUGGING BULLSHIT {{{ +; ; debugging word; outputs raw bytes so needs to be piped through `x(x)d` +; ; terrible and awful +; ; W = r14; W <= wstack_b; W+=8 +; defword ".s", dots, 0 +; push r11 +; push r12 +; +; mov r12, r14 +; .loop: +; cmp r12, wstack +; jge .done +; +; mov [.space], r12 +; mov rdx, 8 ; qword +; mov rsi, .space +; mov rdi, 1 +; mov rax, __NR_write +; syscall +; +; mov rdx, 8 ; qword +; mov rsi, r12 +; mov rdi, 1 +; mov rax, __NR_write +; syscall +; lea r12, [r12+8] +; jmp .loop +; +; .done: +; mov rdx, 16 ; 2 qword +; mov rsi, .dmsg +; mov rdi, 1 +; mov rax, __NR_write +; syscall +; +; pop r12 +; pop r11 +; ret +; .space: resq 1 +; .dmsg: db "DONEDONEYIPPEEEE" +; +; defword "HEREDUMP", heredump, 0 +; mov rdx, [here] +; mov r11, [herestart] +; sub rdx, r11 +; mov rsi, [herestart] +; mov rdi, 1 +; mov rax, __NR_write +; syscall +; ret +; ; }}} ; maybe some of these should be constants? defvar "tib", tib, 0, initfile diff --git a/readme.md b/readme.md index 7fd313d..eca9368 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,20 @@ if you use it and it breaks, too bad public domain +## TODO +i want to get to Version 1 soon, here are some things +i am thinking of completing before that. + +- `s\"` +- `DO` + `LOOP` +- `{+,-}TO +- `\` +- reading from files +- DUMP +- argc + argv + +not all of these will be included. we'll see + ## dictionary the dictionary follows a fairly standard format. -- cgit v1.2.3