* m68hc11-dis.c (print_indexed_operand): Fix PC-relative address

for 9 and 16-bit PC-relative addressing mode.
This commit is contained in:
Stephane Carrez 2002-12-08 20:53:19 +00:00
parent 52f87c5112
commit b394d696b4
2 changed files with 7 additions and 0 deletions

View File

@ -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,

View File

@ -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]);