aboutsummaryrefslogtreecommitdiff
path: root/opcodes/arm-dis.c
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
commit9f20bbfd4c709ce9141913e51935899b23fc0907 (patch)
treeefd9b8d7446d9d33c65d7d00db5533c60574bb79 /opcodes/arm-dis.c
parent49a5575c32d7c48c0f17b88cdd2cab6bb2db10b5 (diff)
downloadfsf-binutils-gdb-9f20bbfd4c709ce9141913e51935899b23fc0907.zip
fsf-binutils-gdb-9f20bbfd4c709ce9141913e51935899b23fc0907.tar.gz
fsf-binutils-gdb-9f20bbfd4c709ce9141913e51935899b23fc0907.tar.bz2
Display hex equivalent of rotated ARM constants.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r--opcodes/arm-dis.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c
index 81a3593..baac4a4 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);