From 3e8972d7ce7859234d13be9e1949295901ac4806 Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 20 Mar 2026 01:20:19 +1100 Subject: char, immediate, and ( bracket comments ) --- readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index c168abe..f799132 100644 --- a/readme.md +++ b/readme.md @@ -28,6 +28,11 @@ create a dictionary header for a word named the provided string. this word does not set the code field. this word returns an incompleted xt and does not update latest. +### `( ( -- ) IMMEDIATE` +start a comment which lasts until the next closed bracket. +if the unclosed bracket in the description above bothers you, +have a closing bracket: ). + ### `* ( u1 u2 -- u)` multiply u1 and u2. @@ -112,6 +117,9 @@ store the 8 bit value u into the memory address a. ### `c@ ( a -- c )` fetch the 8 bit value at memory address a. +### `char ( "c" -- c )` +yield the value of the first character of the next word in the input stream. + ### `cmove ( a1 a2 u -- )` copy u bytes of memory from a1 to a2. bytes are copied in low memory to high memory order. @@ -152,6 +160,9 @@ grows, and marks as executable, the user memory space by u bytes. ### `here ( -- a )` yields the address of the first available byte in user memory. +### `immediate ( -- )` +mark the most recently defined word as immediate. + ### `immediate? ( xt -- ? )` true if xt is marked immediate, false otherwise. -- cgit v1.2.3