From 99bfc228ef92adc051dbaa709db7bffccf63f35e Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 21 Jan 2022 14:08:38 -0400 Subject: opcode-bitmask-gen: Add relative addressing to the list of addressing modes. oof, forgot about that until just now. --- opcode-bitmask-gen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opcode-bitmask-gen.c b/opcode-bitmask-gen.c index 9781e2f..078c1cc 100644 --- a/opcode-bitmask-gen.c +++ b/opcode-bitmask-gen.c @@ -238,6 +238,11 @@ uint8_t get_opcode(const instruction *instr, int addr_mode, int inst_ext, int ex return opcode; } break; + case REL: + if (addr_mode_mask & AM_REL) { + return opcode; + } + break; case BREG: if (addr_mode_mask & AM_BREG) { return opcode + 0x14; -- cgit v1.2.3-13-gbd6f