From 6161a352e020a68775877a2d61af09c8efc62355 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:55:16 +0100 Subject: Implemented vm routines for OP_OR_* --- src/runtime.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/runtime.h') diff --git a/src/runtime.h b/src/runtime.h index 4a2f849..d757e36 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -111,4 +111,14 @@ static const not_f NOT_ROUTINES[] = { [OP_NOT_WORD] = vm_not_word, }; +void vm_or_byte(vm_t *); +void vm_or_hword(vm_t *); +void vm_or_word(vm_t *); +typedef void (*or_f)(vm_t *); +static const or_f OR_ROUTINES[] = { + [OP_OR_BYTE] = vm_or_byte, + [OP_OR_HWORD] = vm_or_hword, + [OP_OR_WORD] = vm_or_word, +}; + #endif -- cgit v1.2.3-13-gbd6f