Make LDRH/LDRB consistent with LDR when target is PC-relative
authorNick Clifton <nickc@redhat.com>
Fri, 4 Jun 1999 07:14:10 +0000 (07:14 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Jun 1999 07:14:10 +0000 (07:14 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index d4f808033e9655e5dc4e9b0c3d9031f563900a3d..3f7b96692c4076796de8a76479ea6c6629a95156 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-03  Philip Blundell  <philb@gnu.org>
+
+       * arm-dis.c (print_insn_arm): Make LDRH/LDRB consistent with LDR
+       when target is PC-relative.
+
 1999-05-28  Linus Nordberg  <linus.nordberg@canit.se>
 
        * m68k-opc.c: Rename MACL/MSACL to MAC/MSAC.  Add MACM/MSACM.  Add
index 4aabf7286bcc760212b987d765ec060f1698f075..5bc1350eb419084765b210d2a204e813f50e8916 100644 (file)
@@ -195,8 +195,12 @@ print_insn_arm (pc, info, given)
                        {
                           /* PC relative with immediate offset */
                          int offset = ((given & 0xf00) >> 4) | (given & 0xf);
+                         
                          if ((given & 0x00800000) == 0)
                            offset = -offset;
+                         
+                         func (stream, "[pc, #%x]\t; ", offset);
+                         
                          (*info->print_address_func)
                            (offset + pc + 8, info);
                        }