diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 20:26:58 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-18 20:26:58 -0600 |
commit | 7561230a9dda9728b93306c0bd398c5b1cc1ce4d (patch) | |
tree | 564b152fea30d0779ab0a74b5936e280c0ddf9a0 /mnemonics.c | |
parent | 633e6598859fc5104bb28d5cccac845cb5d5198e (diff) |
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.
Diffstat (limited to 'mnemonics.c')
-rw-r--r-- | mnemonics.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ }; |