From 5b62e6f31c9bb2a67672e20af2e6f130251bf0c5 Mon Sep 17 00:00:00 2001 From: kitty Date: Fri, 20 Mar 2026 12:04:09 +1100 Subject: d,, branch, ?branch --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'readme.md') diff --git a/readme.md b/readme.md index e4c544f..4280da6 100644 --- a/readme.md +++ b/readme.md @@ -108,6 +108,11 @@ in the input buffer. ### `>r ( u -- ) ( R: -- u )` move a value from the working stack to the return stack. +### `?branch ( -- )` +compile into user memory an incomplete conditional branch. +if the value on the stack is zero the branch is taken. +a 32 bit branch offset must be written immediately after. + ### `0= ( n -- ? )` return true if n is equal to zero. @@ -141,6 +146,10 @@ duplicate the two topmost values on the stack. ### `and ( u1 u2 -- u )` perform bitwise AND on u1 and u2. +### `branch ( -- )` +compile into user memory an incomplete branch. +a 32 bit branch offset must be written immediately after. + ### `brk@ ( -- a )` yields current program break. @@ -167,6 +176,9 @@ bytes are copied in low memory to high memory order. copy u bytes of memory from a1 to a2. bytes are copied in high memory to low memory order. +### `d, ( n -- )` +write a 32 bit value to user memory and increment the user memory pointer. + ### `dp ( -- a )` a variable that contains the lowest free byte of memory in user memory. -- cgit v1.2.3