go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

commit d0187608aa26307f4ee88d9431303e28b855f345
parent 5ac2b0a3f3b30a25346d4f739d7b34e15d1e9d47
Author: lash <dev@holbrook.no>
Date:   Sun,  2 Apr 2023 00:20:14 +0100

Add sink example

Diffstat:
MREADME.md | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -129,8 +129,9 @@ It expects all replacement symbols to be available at time of rendering, and has ``` 0008 03666f6f 03626172 # INCMP "foo" "bar" - move to node "bar" if input is "FOO" -0001 0461696565 01 01 # CATCH "aiee" 1 1 - move to node "aiee" (and immediately halt) if input match flag is not set -0003 04616263 020104 # LOAD "abc" 2 260 - execute code symbol "abc" with a result size limit of 260 +0001 0461696565 01 01 # CATCH "aiee" 1 1 - move to node "aiee" (and immediately halt) if input match flag (1) is not set (1) +0003 04616263 020104 # LOAD "abc" 260 - execute code symbol "abc" with a result size limit of 260 (2 byte BE integer, 0x0104) +0003 04646566 00 # LOAD "def" 0 - execute code symbol "abc" with no size limit (sink) 0005 04616263 # MAP "abc" - make "abc" available for renderer 0007 # HALT - stop execution (require new input to continue) 0006 03313233 # MOVE "123" - move to node "123" (regardless of input)