aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-12-08 20:53:19 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-12-08 20:53:19 +0000
commitb394d696b4f6974109b58a5365ea6969a08ae842 (patch)
treedd14a3dd900bab7dbf817f74c6ef71fdc67c9f85
parent52f87c5112e5e32ac22d3d02b826eed2ec93c147 (diff)
downloadgdb-b394d696b4f6974109b58a5365ea6969a08ae842.zip
gdb-b394d696b4f6974109b58a5365ea6969a08ae842.tar.gz
gdb-b394d696b4f6974109b58a5365ea6969a08ae842.tar.bz2
* m68hc11-dis.c (print_indexed_operand): Fix PC-relative address
for 9 and 16-bit PC-relative addressing mode.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/m68hc11-dis.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index df675ce..8ab4ea3 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
+
+ * m68hc11-dis.c (print_indexed_operand): Fix PC-relative address
+ for 9 and 16-bit PC-relative addressing mode.
+
2002-12-05 Aldy Hernandez <aldyh@redhat.com>
* ppc-opc.c: Delete evsabs, evsnabs, evsneg, evsadd, evssub,
diff --git a/opcodes/m68hc11-dis.c b/opcodes/m68hc11-dis.c
index 33d1f0e..cf42b64 100644
--- a/opcodes/m68hc11-dis.c
+++ b/opcodes/m68hc11-dis.c
@@ -183,6 +183,7 @@ print_indexed_operand (memaddr, info, indirect, mov_insn, pc_offset, endaddr)
sval = ((buffer[1] << 8) | (buffer[2] & 0x0FF));
sval &= 0x0FFFF;
pos += 2;
+ endaddr += 2;
}
else
{
@@ -190,6 +191,7 @@ print_indexed_operand (memaddr, info, indirect, mov_insn, pc_offset, endaddr)
if (buffer[0] & 0x01)
sval |= 0xff00;
pos++;
+ endaddr++;
}
(*info->fprintf_func) (info->stream, "%d,%s",
(int) sval, reg_name[reg]);