aboutsummaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 16:31:50 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-22 16:31:50 +0100
commitf2c2b7f892bf7ec8b74e891bd3468e1429c6d749 (patch)
treea62960df78938ec595d2064e418b9a94af79f0be /vm.c
parent60c4e7231f76536e6111e4cf61c324e537c26846 (diff)
downloadvm.lv2-f2c2b7f892bf7ec8b74e891bd3468e1429c6d749.tar.xz
add pop operation. prototype keyboard shortcuts.
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 49a0b3f..db49545 100644
--- a/vm.c
+++ b/vm.c
@@ -353,6 +353,11 @@ run(LV2_Handle instance, uint32_t nsamples)
const num_t c = _stack_peek(&handle->stack);
_stack_push(&handle->stack, c);
} break;
+ case OP_POP:
+ {
+ const num_t c = _stack_pop(&handle->stack);
+ (void)c;
+ } break;
case OP_SWAP:
{
num_t ab [2];