From ae7f0efc858510034dddee5bd1a02a6ec3788c32 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:54:59 +0100 Subject: Implemented vm routines for OP_NOT_* --- src/runtime.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/runtime.h') diff --git a/src/runtime.h b/src/runtime.h index 8ff0142..4a2f849 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -100,4 +100,15 @@ static const pop_f POP_ROUTINES[] = { [OP_POP_WORD] = vm_pop_word, }; +void vm_not_byte(vm_t *); +void vm_not_hword(vm_t *); +void vm_not_word(vm_t *); + +typedef void (*not_f)(vm_t *); +static const not_f NOT_ROUTINES[] = { + [OP_NOT_BYTE] = vm_not_byte, + [OP_NOT_HWORD] = vm_not_hword, + [OP_NOT_WORD] = vm_not_word, +}; + #endif -- cgit v1.2.3-13-gbd6f