diff options
author | Nick McKinney <nick@kmonkey.net> | 2017-02-02 20:17:15 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-02-05 10:46:46 -0600 |
commit | bc415197e26b8d276cda66c66c1fe283891eb400 (patch) | |
tree | f34483c38e02530a13d2bfe93de4aa65388b73f0 | |
parent | 0f2b8b243b0fd4d70b24e5ba2bfd7d14279d6af0 (diff) |
-rw-r--r-- | mnemonics.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mnemonics.c b/mnemonics.c index a13d19d..fb9c93b 100644 --- a/mnemonics.c +++ b/mnemonics.c @@ -18,12 +18,12 @@ const struct mnemonic mnemonics[] = { { "neg", 0x2100, 0xf1e3, { {REG, 9}, {REG, 2} } }, /* negate */ { "btc", 0x3000, 0xf11f, { {REG, 9}, {REG, 2} } }, /* bit clear */ { "bts", 0x3100, 0xf11f, { {REG, 9}, {REG, 2} } }, /* bit set */ - { "mov", 0x4004, 0xf11f, { {REG, 9}, {REG, 5} } }, /* register move */ - { "st.b", 0x4100, 0xf11f, { {REGPTR, 9}, {REG, 5} } }, /* store byte */ - { "st.w", 0x4104, 0xf11f, { {REGPTR, 9}, {REG, 5} } }, /* store word */ + { "mov", 0x4002, 0xf11f, { {REG, 9}, {REG, 5} } }, /* register move */ + { "st.b", 0x4100, 0xff03, { {REGPTR, 2}, {REG, 5} } }, /* store byte */ + { "st.w", 0x4102, 0xff03, { {REGPTR, 2}, {REG, 5} } }, /* store word */ { "ld.bl", 0x4101, 0xf11f, { {REG, 9}, {REGPTR, 5} } }, /* load byte into low byte of register */ { "ld.bh", 0x4111, 0xf11f, { {REG, 9}, {REGPTR, 5} } }, /* load byte into high byte of register */ - { "ld.w", 0x4105, 0xf11f, { {REG, 9}, {REGPTR, 5} } }, /* load word */ + { "ld.w", 0x4103, 0xf11f, { {REG, 9}, {REGPTR, 5} } }, /* load word */ { "ldi.bl", 0x5000, 0xf100, { {REG, 9}, {IMM, 0} } }, /* load immediate into low byte of register */ { "ldi.bh", 0x5100, 0xf100, { {REG, 9}, {IMM, 0} } }, /* load immediate into high byte of register */ { "beq", 0x6000, 0xff00, { {PCOFF, 0}, } }, /* branch if equal */ |