* mn10200-dis.c (disassemble): Mask off unwanted bits after
authorJeff Law <law@redhat.com>
Mon, 6 Jan 1997 22:13:39 +0000 (22:13 +0000)
committerJeff Law <law@redhat.com>
Mon, 6 Jan 1997 22:13:39 +0000 (22:13 +0000)
        adding in current address for pc-relative operands.
Fixes disassembly of backwards 24bit pc-relative addressese.

opcodes/ChangeLog
opcodes/mn10200-dis.c

index e59fe31d506ae58006a44f39bea8d449f56d3270..0203c278e3dfdab3f13c3a7d6f7b4e1d9e243817 100644 (file)
@@ -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>
 
index ebcc75ac5978d4fc4c0a78f288e50fceb05db618..2942e89f6e65f0f4ac2740c91c9f2918edf5ef22 100644 (file)
@@ -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);