diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:47:05 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-01 21:47:05 +0000 |
commit | ea715c569eba9cc8310e15ce2e3ded9723a5e8c1 (patch) | |
tree | a154b78ac21ba35854a0564f44ceae3400332a51 /vm/runtime.h | |
parent | cb1cfde0c44b059bdae147475bcde5cccac2a4e5 (diff) | |
download | ovm-ea715c569eba9cc8310e15ce2e3ded9723a5e8c1.tar.gz ovm-ea715c569eba9cc8310e15ce2e3ded9723a5e8c1.tar.bz2 ovm-ea715c569eba9cc8310e15ce2e3ded9723a5e8c1.zip |
Implemented OP_MSIZE in the VM runtime
Diffstat (limited to 'vm/runtime.h')
-rw-r--r-- | vm/runtime.h | 7 |
1 files changed, 5 insertions, 2 deletions
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, |