aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:55:41 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:55:41 +0100
commit50ce1b35cd1ce5e93f90c43b0657dced380d89fa (patch)
tree57483370bab94816647167118a7669bffaa42ba4 /src/runtime.h
parentc9b23b7b241fa4cb3aab1ca4436193c943ba46e9 (diff)
downloadovm-50ce1b35cd1ce5e93f90c43b0657dced380d89fa.tar.gz
ovm-50ce1b35cd1ce5e93f90c43b0657dced380d89fa.tar.bz2
ovm-50ce1b35cd1ce5e93f90c43b0657dced380d89fa.zip
Implemented vm routines for OP_XOR_*
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h10
1 files changed, 10 insertions, 0 deletions
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