aboutsummaryrefslogtreecommitdiff
path: root/opcodes/mn10300-opc.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-11-19 23:59:27 +0000
committerJeff Law <law@redhat.com>1996-11-19 23:59:27 +0000
commit4aa92185f896915156375ae358cf02b4e0d2d4f1 (patch)
tree5e7eea297d6def9efc186378131dbbcbde6b4239 /opcodes/mn10300-opc.c
parent5e9b714f18542e016a81cca9cb9af563aa54fd10 (diff)
downloadgdb-4aa92185f896915156375ae358cf02b4e0d2d4f1.zip
gdb-4aa92185f896915156375ae358cf02b4e0d2d4f1.tar.gz
gdb-4aa92185f896915156375ae358cf02b4e0d2d4f1.tar.bz2
* mn10300-dis.c: Start working on disassembler support.
* mn10300-opc.c (mn10300_opcodes): Fix masks on several insns. Selects opcodes & consumes bytes. Breaks badly if given data instead of code. No operands yet.
Diffstat (limited to 'opcodes/mn10300-opc.c')
-rw-r--r--opcodes/mn10300-opc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/mn10300-opc.c b/opcodes/mn10300-opc.c
index 9484d4e..936bc8c 100644
--- a/opcodes/mn10300-opc.c
+++ b/opcodes/mn10300-opc.c
@@ -299,8 +299,8 @@ const struct mn10300_opcode mn10300_opcodes[] = {
{ "add", 0xfad00000, 0xfffc0000, FMT_D2, {SIMM16, AN0}},
{ "add", 0xfcd00000, 0xfffc0000, FMT_D4, {IMM32, AN0}},
{ "add", 0xf8fe00, 0xffff00, FMT_D1, {SIMM8, SP}},
-{ "add", 0xfafe0000, 0xfffc0000, FMT_D2, {SIMM16, SP}},
-{ "add", 0xfcfe0000, 0xfff0000, FMT_D4, {IMM32, SP}},
+{ "add", 0xfafe0000, 0xffff0000, FMT_D2, {SIMM16, SP}},
+{ "add", 0xfcfe0000, 0xffff0000, FMT_D4, {IMM32, SP}},
{ "addc", 0xf140, 0xfff0, FMT_D0, {DM1, DN0}},
{ "sub", 0xf100, 0xfff0, FMT_D0, {DM1, DN0}},
@@ -336,12 +336,12 @@ const struct mn10300_opcode mn10300_opcodes[] = {
{ "and", 0xf8e000, 0xfffc00, FMT_D1, {IMM8, DN0}},
{ "and", 0xfae00000, 0xfffc0000, FMT_D2, {IMM16, DN0}},
{ "and", 0xfce00000, 0xfffc0000, FMT_D4, {IMM32, DN0}},
-{ "and", 0xfafc0000, 0xfffc0000, FMT_D2, {IMM16, PSW}},
+{ "and", 0xfafc0000, 0xffff0000, FMT_D2, {IMM16, PSW}},
{ "or", 0xf210, 0xfff0, FMT_D0, {DM1, DN0}},
{ "or", 0xf8e400, 0xfffc00, FMT_D1, {IMM8, DN0}},
{ "or", 0xfae40000, 0xfffc0000, FMT_D2, {IMM16, DN0}},
{ "or", 0xfce40000, 0xfffc0000, FMT_D4, {IMM32, DN0}},
-{ "or", 0xfafd0000, 0xfffc0000, FMT_D2, {IMM16, PSW}},
+{ "or", 0xfafd0000, 0xffff0000, FMT_D2, {IMM16, PSW}},
{ "xor", 0xf220, 0xfff0, FMT_D0, {DM1, DN0}},
{ "xor", 0xfae80000, 0xfffc0000, FMT_D2, {IMM16, DN0}},
{ "xor", 0xfce80000, 0xfffc0000, FMT_D4, {IMM32, DN0}},
@@ -415,8 +415,8 @@ const struct mn10300_opcode mn10300_opcodes[] = {
{ "calls", 0xfaff0000, 0xffff0000, FMT_D2, {IMM16}},
{ "calls", 0xfcff0000, 0xffff0000, FMT_D4, {IMM32}},
-{ "ret", 0xdf0000, 0xff00000, FMT_S2, {IMM8_SHIFT8, IMM8}},
-{ "retf", 0xde0000, 0xff00000, FMT_S2, {IMM8_SHIFT8, IMM8}},
+{ "ret", 0xdf0000, 0xff0000, FMT_S2, {IMM8_SHIFT8, IMM8}},
+{ "retf", 0xde0000, 0xff0000, FMT_S2, {IMM8_SHIFT8, IMM8}},
{ "rets", 0xf0fc, 0xffff, FMT_D0, {UNUSED}},
{ "rti", 0xf0fd, 0xffff, FMT_D0, {UNUSED}},
{ "trap", 0xf0fe, 0xffff, FMT_D0, {UNUSED}},