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 /readme.md | |
| parent | de7c0151df9e1aed2289b4848030cdbcb24eda2d (diff) | |
untested @ ! and some notes
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -44,7 +44,26 @@ so a wonky but hopefully not too slow solution is to compile - `mov r11, [cfa]` = `94 BB [CFA]` - `call r11` = `41 FF D3` -## Some Links +### words to bootstrap from +i want to make the kernel reasonably small, +especially if i add an assembler. +but obviously we need *something* to bootstrap from. +(this list is Inspired by [miniforth](https://github.com/meithecatte/miniforth)'s builtins) + +- `!` (`val addr -- `): store a 64 bit word +- `@` (`addr -- val`): fetch a 64 bit word +- `c!` (`byte addr -- `): store a byte +- `c@` (`addr -- byte`): fetch a byte +- `:` (` -- `): compile a word from the current input source +- `;` (` -- `): stop compiling the current word +- `parse` (` -- c-addr u`): parse a word from the *forth init* (see footnote) +- `latest`: a variable, the latest defined word +- `state`: a variable, determines current mode (interp./compiling) + +on `parse`: i don't want to deal with file access and stuff from the kernel. +so this word will be Upgraded in the forth init to read from a file. + +### Some Links - starting forth part 1: http://www.bradrodriguez.com/papers/moving1.htm - a forum thread about determining empty stack with TOS register: http://forum.6502.org/viewtopic.php?t=8424 |
