From bc415197e26b8d276cda66c66c1fe283891eb400 Mon Sep 17 00:00:00 2001 From: Nick McKinney Date: Thu, 2 Feb 2017 20:17:15 -0600 Subject: Adjust mnemonics based on hardware changes --- mnemonics.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mnemonics.c') 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 */ -- cgit v1.2.3