Display hex equivalent of rotated ARM constants.
authorNick Clifton <nickc@redhat.com>
Mon, 5 Jul 1999 07:44:09 +0000 (07:44 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 5 Jul 1999 07:44:09 +0000 (07:44 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index dcb92d758c713170d6c4e3ac489b9ffe2a925581..2ce4c69d06dc55012a4f542a927d8d9163a829fb 100644 (file)
@@ -1,3 +1,8 @@
+1999-07-05  Nick Clifton  <nickc@cygnus.com>
+
+       * arm-dis.c (print_insn_arm): Display hex equivalent of rotated
+       constant. 
+
 1999-06-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
 
        * i386-dis.c: Mention intel mode specials in macro char comment.
index 81a3593e6d7f652fab783005999c34b3d2fa3687..baac4a4dfad3ec3ac9c83f323a3663878805b43a 100644 (file)
@@ -19,7 +19,6 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
-#include "sysdep.h"
 #include "dis-asm.h"
 #define DEFINE_TABLE
 #include "arm-opc.h"
@@ -307,9 +306,9 @@ print_insn_arm (pc, info, given)
                        {
                          int rotate = (given & 0xf00) >> 7;
                          int immed = (given & 0xff);
-                         func (stream, "#%d",
-                               ((immed << (32 - rotate))
-                                | (immed >> rotate)) & 0xffffffff);
+                         immed = (((immed << (32 - rotate))
+                                   | (immed >> rotate)) & 0xffffffff);
+                         func (stream, "#%d\t; 0x%x", immed, immed);
                        }
                      else
                        arm_decode_shift (given, func, stream);