aboutsummaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-23 11:11:39 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-23 11:11:39 +0100
commit3a9f0f747a5356b6ec304867db716f0e3ccb07ae (patch)
tree843e0d35a06ccbdbeab8464ec480457e16a251d2 /vm.h
parent6a701319a47ff5950f4ca918e744cf1fba088869 (diff)
downloadvm.lv2-3a9f0f747a5356b6ec304867db716f0e3ccb07ae.tar.xz
implement vm:opGoto.
* makes branching and looping possible.
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/vm.h b/vm.h
index 81f0c8d..0f5af61 100644
--- a/vm.h
+++ b/vm.h
@@ -83,9 +83,7 @@ enum _vm_opcode_enum_t {
OP_STORE,
OP_LOAD,
OP_BREAK,
- /* dangerous
OP_GOTO,
- */
OP_RAND,
@@ -275,16 +273,14 @@ static const vm_api_def_t vm_api_def [OP_MAX] = {
.npops = 1,
.npushs = 0
},
- /* dangerous
[OP_GOTO] = {
.uri = VM_PREFIX"opGoto",
.label = "Goto given operation",
.mnemo = "goto",
.key = '\0',
- .npops = 1,
+ .npops = 2,
.npushs = 0
},
- */
[OP_RAND] = {
.uri = VM_PREFIX"opRand",