Remove BACK symbol

This commit is contained in:
lash 2023-04-02 12:20:35 +01:00
parent 8c287b909b
commit 8bd0c44a61
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
3 changed files with 1 additions and 4 deletions

View File

@ -10,7 +10,6 @@ Original motivation was to create a simple templating renderer for USSD clients,
The VM defines the following opcode symbols:
* `BACK` - Return to the previous execution frame (will fail if at top frame). It leaves to the state of the execution layer to define what "previous" means.
* `CATCH <symbol> <signal>` - Jump to symbol if signal is set (see `signals` below).
* `CROAK <signal>` - Clear state and restart execution from top if signal is set (see `signals` below).
* `LOAD <symbol> <size>` - Execute the code symbol `symbol` and cache the data, constrained to the given `size`. Can be exposed with `MAP` within scope,

View File

@ -6,7 +6,7 @@ type Opcode uint16
// VM Opcodes
const (
BACK = 0
NOOP = 0
CATCH = 1
CROAK = 2
LOAD = 3

View File

@ -38,8 +38,6 @@ func Run(instruction []byte, st *state.State, rs resource.Resource, ctx context.
instruction, err = RunMap(instruction[2:], st, rs, ctx)
case MOVE:
instruction, err = RunMove(instruction[2:], st, rs, ctx)
case BACK:
instruction, err = RunBack(instruction[2:], st, rs, ctx)
case INCMP:
instruction, err = RunIncmp(instruction[2:], st, rs, ctx)
case HALT: