* opcodess/arm-opc.h (arm_opcodes): Add cirrus insns.

* opcodes/arm-dis.c (print_insn_arm): Add 'I' case.
This commit is contained in:
Aldy Hernandez
2001-10-08 18:50:37 +00:00
parent 8642cce86a
commit b1ee46c5af
3 changed files with 112 additions and 0 deletions

View File

@ -445,6 +445,25 @@ print_insn_arm (pc, info, given)
}
break;
case 'I':
/* Print a Cirrus/DSP shift immediate. */
/* Immediates are 7bit signed ints with bits 0..3 in
bits 0..3 of opcode and bits 4..6 in bits 5..7
of opcode. */
{
int imm;
imm = (given & 0xf) | ((given & 0xe0) >> 1);
/* Is ``imm'' a negative number? */
if (imm & 0x40)
imm |= (-1 << 7);
func (stream, "%d", imm);
}
break;
case 'C':
func (stream, "_");
if (given & 0x80000)