From c9b23b7b241fa4cb3aab1ca4436193c943ba46e9 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:55:29 +0100 Subject: Implemented vm routines for OP_AND_* --- 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 d757e36..4ac475b 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -121,4 +121,14 @@ static const or_f OR_ROUTINES[] = { [OP_OR_WORD] = vm_or_word, }; +void vm_and_byte(vm_t *); +void vm_and_hword(vm_t *); +void vm_and_word(vm_t *); +typedef void (*and_f)(vm_t *); +static const and_f AND_ROUTINES[] = { + [OP_AND_BYTE] = vm_and_byte, + [OP_AND_HWORD] = vm_and_hword, + [OP_AND_WORD] = vm_and_word, +}; + #endif -- cgit v1.2.3-13-gbd6f