From 7561230a9dda9728b93306c0bd398c5b1cc1ce4d Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Wed, 18 Jan 2017 20:26:58 -0600 Subject: Change addpc back to immediate instead of pc offset operand Now that PC offset operands convert an absolute address into a relative offset from the PC, having this be immediate is much more useful. --- mnemonics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mnemonics.c b/mnemonics.c index b65e110..a13d19d 100644 --- a/mnemonics.c +++ b/mnemonics.c @@ -34,7 +34,7 @@ const struct mnemonic mnemonics[] = { { "ble", 0x6a00, 0xff00, { {PCOFF, 0}, } }, /* branch if less than or equal */ { "bra", 0x6e00, 0xff00, { {PCOFF, 0}, } }, /* branch always */ { "jmp", 0x7000, 0xff1f, { {REGPTR, 5}, } }, /* branch always */ - { "addpc", 0x8000, 0xf100, { {REG, 9}, {PCOFF, 0} } }, /* add program counter and immediate */ + { "addpc", 0x8000, 0xf100, { {REG, 9}, {IMM, 0} } }, /* add program counter and immediate */ { "nop", 0xf000, 0xf000, { } }, /* no operation */ }; -- cgit v1.2.3