aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:54:59 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-21 23:54:59 +0100
commitae7f0efc858510034dddee5bd1a02a6ec3788c32 (patch)
tree1807926100d46a27c68d1b9b153f6363de85defd /src/runtime.h
parentba57523f3ecba69e628a7a811f258b652cf48615 (diff)
downloadovm-ae7f0efc858510034dddee5bd1a02a6ec3788c32.tar.gz
ovm-ae7f0efc858510034dddee5bd1a02a6ec3788c32.tar.bz2
ovm-ae7f0efc858510034dddee5bd1a02a6ec3788c32.zip
Implemented vm routines for OP_NOT_*
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h11
1 files changed, 11 insertions, 0 deletions
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