aboutsummaryrefslogtreecommitdiff
path: root/lib/inst.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-02 20:35:47 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-02 20:35:47 +0000
commit99b0ebdfa6e05b202e4ce900f95aef12f2214f69 (patch)
treed8c10cde979dfb1bc1ccf06cf6cb4b580f5f7a9f /lib/inst.h
parent4990d93a1c333c032e5ee0f1fc4aa3a02a7d41fc (diff)
downloadovm-99b0ebdfa6e05b202e4ce900f95aef12f2214f69.tar.gz
ovm-99b0ebdfa6e05b202e4ce900f95aef12f2214f69.tar.bz2
ovm-99b0ebdfa6e05b202e4ce900f95aef12f2214f69.zip
Small fixes
Diffstat (limited to 'lib/inst.h')
-rw-r--r--lib/inst.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/inst.h b/lib/inst.h
index 10f8dc7..63b1669 100644
--- a/lib/inst.h
+++ b/lib/inst.h
@@ -229,8 +229,9 @@ inst_t *insts_read_bytecode_file(FILE *, size_t *);
#define INST_JUMP_ABS(OP) \
((inst_t){.opcode = OP_JUMP_ABS, .operand = DWORD(OP)})
-#define INST_JUMP_STACK ((inst_t){.opcode = OP_JUMP_STACK})
-#define INST_JUMP_REGISTER ((inst_t){.opcode = OP_JUMP_REGISTER})
+#define INST_JUMP_STACK ((inst_t){.opcode = OP_JUMP_STACK})
+#define INST_JUMP_REGISTER(OP) \
+ ((inst_t){.opcode = OP_JUMP_REGISTER, .operand = DWORD(OP)})
#define INST_JUMP_IF(TYPE, OP) \
((inst_t){.opcode = OP_JUMP_IF_##TYPE, .operand = DWORD(OP)})