diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -321,6 +321,9 @@ update the current if statement to branch here when the flag is false, and skip to `then` if the corresponding `if` was true. +### `emit ( c -- )` +print the single character c to output. + ### `executable ( a u -- )` marks the u bytes starting at address a as executable. this is used primarily to mark the program break, @@ -420,6 +423,11 @@ in a begin-while-repeat loop, loop back to the condition. ### `rot ( u1 u2 u3 -- u2 u3 u1 )` rotate the top three values on the stack so that the third highest value is moved to the top. +### `rp ( -- a )` +yield the address of the return pointer. +note that the address points to the return stack *before* +this word was called. + ### `s" ( "string" -- ) IMMEDIATE COMPILE-ONLY` compile into the definition code to push the given string, terminated by a double quote. @@ -436,6 +444,11 @@ if -1 (true), the system is in compiling mode. ### `stderr ( -- 2 )` push the file descriptor of stderr to the stack. +### `sp ( -- a )` +yield the address of the stack pointer. +note that the address points to the stack *before* +this value is pushed. + ### `stdout ( -- 1 )` push the file descriptor of stdout to the stack. |
