aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1997-01-06 22:13:39 +0000
committerJeff Law <law@redhat.com>1997-01-06 22:13:39 +0000
commit09171e3fe6b2d7075c78f6db8dfd06662097dc55 (patch)
treeaa07718cb4f19f040728614133089ccf316adba1
parent483e1b916165f9501e2f5db976600b0750337987 (diff)
downloadgdb-09171e3fe6b2d7075c78f6db8dfd06662097dc55.zip
gdb-09171e3fe6b2d7075c78f6db8dfd06662097dc55.tar.gz
gdb-09171e3fe6b2d7075c78f6db8dfd06662097dc55.tar.bz2
* mn10200-dis.c (disassemble): Mask off unwanted bits after
adding in current address for pc-relative operands. Fixes disassembly of backwards 24bit pc-relative addressese.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/mn10200-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index e59fe31..0203c27 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 6 15:06:55 1997 Jeffrey A Law (law@cygnus.com)
+
+ * mn10200-dis.c (disassemble): Mask off unwanted bits after
+ adding in current address for pc-relative operands.
+
start-sanitize-tic80
Mon Jan 6 10:56:25 1997 Fred Fish <fnf@cygnus.com>
diff --git a/opcodes/mn10200-dis.c b/opcodes/mn10200-dis.c
index ebcc75a..2942e89 100644
--- a/opcodes/mn10200-dis.c
+++ b/opcodes/mn10200-dis.c
@@ -313,7 +313,7 @@ disassemble (memaddr, info, insn, extension, size)
}
else if ((operand->flags & MN10200_OPERAND_PCREL) != 0)
- (*info->print_address_func) (value + memaddr, info);
+ (*info->print_address_func) ((value + memaddr) & 0xffffff, info);
else if ((operand->flags & MN10200_OPERAND_MEMADDR) != 0)
(*info->print_address_func) (value, info);