From 2a806c6fbc434d4cdd51d5e64019775c40c34475 Mon Sep 17 00:00:00 2001 From: kitty Date: Mon, 16 Mar 2026 00:23:02 +1100 Subject: 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. --- readme.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'readme.md') 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. -- cgit v1.2.3