From 114fb829905cce1e1f63ff1fee6fdbe11bb72715 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 2 Nov 2023 20:41:36 +0000 Subject: Removed instruction OP_JUMP_REGISTER Not necessary when you can just push the relevant word onto the stack then just do OP_JUMP_STACK. --- lib/inst.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/inst.h') diff --git a/lib/inst.h b/lib/inst.h index 63b1669..55c062f 100644 --- a/lib/inst.h +++ b/lib/inst.h @@ -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)}) -- cgit v1.2.3-13-gbd6f