diff options
| author | kitty <nepeta@canaglie.net> | 2026-02-28 22:58:33 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-02-28 22:58:33 +1100 |
| commit | ac052135a0a9347bc727b5aadba7e13d3a5c8c5b (patch) | |
| tree | ecb421b4ac15dd6d27f580b22bd547056abb131f | |
| parent | 9c915b56270ae4fc3b8ee177732f142dd84403a8 (diff) | |
... whooops
| -rw-r--r-- | jefs.fs | 8 | ||||
| -rw-r--r-- | jefs.s | 2 |
2 files changed, 5 insertions, 5 deletions
@@ -262,9 +262,6 @@ variable hld 1 constant w/o 2 constant r/w -8192 constant file-buffer-length -make file-buffer file-buffer-length allot - \ TODO error handling (0< abs → errno i think) \ flags are zero on success \ maybe there should be some sort of read buffering support here @@ -274,6 +271,11 @@ make file-buffer file-buffer-length allot : write-file ( c-addr u fd -- ?u flag ) >r swap r> syswrite errno ; \ }}} +\ USER INPUT {{{ +8192 constant file-buffer-length +make file-buffer file-buffer-length allot +\ }}} + \ INTERACTIVITY {{{ \ i hate dealing with user input!!! \ but my idea is: when reading forth from a file, @@ -201,13 +201,11 @@ defword "c,", c_comma, 0 ret defword "cmove", _cmove, 0 ; ( a1 a2 u -- ) - call heredump pspop rcx pspop rdi pspop rsi rep movsb - call heredump ret defword "cmove,", _cmove_comma, 0 ; ( c-addr u -- ) |
