diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2002-12-08 20:53:19 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2002-12-08 20:53:19 +0000 |
commit | f9b587b895eb9b7b9858776261a95242b6f7a6dd (patch) | |
tree | afacfe8812d940c765eb86864d8b15b7ba3a5d99 /opcodes/m68hc11-dis.c | |
parent | 08f9d96f2cc1e63e32cf78f85a248b50f341003e (diff) | |
download | gdb-f9b587b895eb9b7b9858776261a95242b6f7a6dd.tar.gz |
* m68hc11-dis.c (print_indexed_operand): Fix PC-relative address
for 9 and 16-bit PC-relative addressing mode.
Diffstat (limited to 'opcodes/m68hc11-dis.c')
-rw-r--r-- | opcodes/m68hc11-dis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/m68hc11-dis.c b/opcodes/m68hc11-dis.c index 33d1f0e9f47..cf42b6468c2 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]); |