summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorkitty <nepeta@canaglie.net>2026-03-16 00:23:02 +1100
committerkitty <nepeta@canaglie.net>2026-03-16 00:23:02 +1100
commit2a806c6fbc434d4cdd51d5e64019775c40c34475 (patch)
tree7a9fcfbadd3e5d56c892185958ffafdb77003734 /readme.md
parent85199c06b8e104dfed0366389e6b95a7757d0510 (diff)
remove TOS register, move SP to r15, `type`
TOS efficiency gain is negligible and it complicates the implementation. i'm going to make a stack dump word in a bit so now is a good time to get rid of this for simplicity's sake. i also took this opportunity to move it to r15 so the reserved register is numerically the highest.
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/readme.md b/readme.md
index 5dd75bc..51bad71 100644
--- a/readme.md
+++ b/readme.md
@@ -72,6 +72,9 @@ if -1 (true), the system is in compiling mode.
### `tib ( -- a )`
a variable containing the address of the current input buffer.
+### `type ( u a -- )`
+write u characters at a to output.
+
## dictionary format
note that the string length of one byte limits a word's name to 255 characters.
@@ -86,5 +89,4 @@ note that the string length of one byte limits a word's name to 255 characters.
## reserved registers
-the registers `r14` and `r15` are reserved for the parameter stack
-and the top of stack respectively.
+the register `r15` is reserved for the parameter stack pointer.