diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-01-21 14:08:38 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-01-21 14:08:38 -0400 |
commit | 99bfc228ef92adc051dbaa709db7bffccf63f35e (patch) | |
tree | 0503015dc3bb3c746fcd62e44d55acc664189a96 | |
parent | bec5270f1c6b8cc629eb60588d2badd69d24ec13 (diff) |
opcode-bitmask-gen: Add relative addressing to the
list of addressing modes.
oof, forgot about that until just now.
-rw-r--r-- | opcode-bitmask-gen.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |