* m68hc11-dis.c (print_indexed_operand): Fix PC-relative address
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 8 Dec 2002 20:53:19 +0000 (20:53 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 8 Dec 2002 20:53:19 +0000 (20:53 +0000)
for 9 and 16-bit PC-relative addressing mode.

opcodes/ChangeLog
opcodes/m68hc11-dis.c

index df675ceabbb9190bbd3d493e6bad927e35c044f9..8ab4ea31de4bdbbec5eadbb62cc7c0d70640f5ae 100644 (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,
index 33d1f0e9f47414e99a776b36144ecbbef63a126e..cf42b6468c2d020ef31af46bdc8c1ab8637d6af3 100644 (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]);