diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-02 20:41:36 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-02 20:41:36 +0000 |
commit | 114fb829905cce1e1f63ff1fee6fdbe11bb72715 (patch) | |
tree | 7c25829f1ba547effc7720a22b42d0085e303398 /lib/inst.h | |
parent | 99b0ebdfa6e05b202e4ce900f95aef12f2214f69 (diff) | |
download | ovm-114fb829905cce1e1f63ff1fee6fdbe11bb72715.tar.gz ovm-114fb829905cce1e1f63ff1fee6fdbe11bb72715.tar.bz2 ovm-114fb829905cce1e1f63ff1fee6fdbe11bb72715.zip |
Removed instruction OP_JUMP_REGISTER
Not necessary when you can just push the relevant word onto the stack
then just do OP_JUMP_STACK.
Diffstat (limited to 'lib/inst.h')
-rw-r--r-- | lib/inst.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -145,7 +145,6 @@ typedef enum // Program control flow OP_JUMP_ABS, OP_JUMP_STACK, - OP_JUMP_REGISTER, OP_JUMP_IF_BYTE, OP_JUMP_IF_HWORD, OP_JUMP_IF_WORD, @@ -230,8 +229,6 @@ 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(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)}) |