summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-07-05 07:44:09 +0000
committerNick Clifton <nickc@redhat.com>1999-07-05 07:44:09 +0000
commit22c86e7f4ad1b5d1172d47119f49a8dbba35f08d (patch)
tree85c30be483eafcc01df1165263c620d48bca342c
parent4bf49763cf5c3c0c699735b81657dc14cae7c0cb (diff)
downloadgdb-22c86e7f4ad1b5d1172d47119f49a8dbba35f08d.tar.gz
Display hex equivalent of rotated ARM constants.
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/arm-dis.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index dcb92d758c7..2ce4c69d06d 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -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.
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 81a3593e6d7..baac4a4dfad 100644
--- a/opcodes/arm-dis.c
+++ b/opcodes/arm-dis.c
@@ -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);