From ea715c569eba9cc8310e15ce2e3ded9723a5e8c1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 21:47:05 +0000 Subject: Implemented OP_MSIZE in the VM runtime --- vm/runtime.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vm/runtime.h') diff --git a/vm/runtime.h b/vm/runtime.h index c8f5d49..9bb61bc 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -138,6 +138,7 @@ static const word_f WORD_ROUTINES[] = { }; err_t vm_mdelete(vm_t *); +err_t vm_msize(vm_t *); err_t vm_not_byte(vm_t *); err_t vm_not_hword(vm_t *); @@ -200,8 +201,10 @@ err_t vm_mult_word(vm_t *); typedef err_t (*stack_f)(vm_t *); static const stack_f STACK_ROUTINES[] = { - [OP_MDELETE] = vm_mdelete, [OP_NOT_BYTE] = vm_not_byte, - [OP_NOT_HWORD] = vm_not_hword, [OP_NOT_WORD] = vm_not_word, + [OP_MDELETE] = vm_mdelete, [OP_MSIZE] = vm_msize, + + [OP_NOT_BYTE] = vm_not_byte, [OP_NOT_HWORD] = vm_not_hword, + [OP_NOT_WORD] = vm_not_word, [OP_OR_BYTE] = vm_or_byte, [OP_OR_HWORD] = vm_or_hword, [OP_OR_WORD] = vm_or_word, -- cgit v1.2.3-13-gbd6f