diff options
| author | kitty <nepeta@canaglie.net> | 2026-03-20 12:04:09 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-03-20 12:04:09 +1100 |
| commit | 5b62e6f31c9bb2a67672e20af2e6f130251bf0c5 (patch) | |
| tree | 07368dc989aad9ef8b57420fa4b0872bd456dca8 /readme.md | |
| parent | e3f99796bc5825f2b2e895960d30cb8c3cce5abd (diff) | |
d,, branch, ?branch
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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. |
