From 50ce1b35cd1ce5e93f90c43b0657dced380d89fa Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 21 Oct 2023 23:55:41 +0100 Subject: Implemented vm routines for OP_XOR_* --- 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 4ac475b..ea4edb9 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -131,4 +131,14 @@ static const and_f AND_ROUTINES[] = { [OP_AND_WORD] = vm_and_word, }; +void vm_xor_byte(vm_t *); +void vm_xor_hword(vm_t *); +void vm_xor_word(vm_t *); +typedef void (*xor_f)(vm_t *); +static const xor_f XOR_ROUTINES[] = { + [OP_XOR_BYTE] = vm_xor_byte, + [OP_XOR_HWORD] = vm_xor_hword, + [OP_XOR_WORD] = vm_xor_word, +}; + #endif -- cgit v1.2.3-13-gbd6f