05.02.2013 Views

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A5.2.2 Data-processing (register-shifted register)<br />

<strong>ARM</strong> Instruction Set Encoding<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

cond 0 0 0 op1 0 op2 1<br />

If op1 == 0b10xx0, see Data-processing <strong>and</strong> miscellaneous instructions on page A5-4.<br />

Table A5-4 shows the allocation of encodings in this space. These encodings are in all architecture variants.<br />

Table A5-4 Data-processing (register-shifted register) instructions<br />

op1 op2 Instruction See<br />

0000x - Bitwise AND AND (register-shifted register) on page A8-38<br />

0001x - Bitwise Exclusive OR EOR (register-shifted register) on page A8-98<br />

0010x - Subtract SUB (register-shifted register) on page A8-424<br />

0011x - Reverse Subtract RSB (register-shifted register) on page A8-288<br />

0100x - Add ADD (register-shifted register) on page A8-26<br />

0101x - Add with Carry ADC (register-shifted register) on page A8-18<br />

0110x - Subtract with Carry SBC (register-shifted register) on page A8-306<br />

0111x - Reverse Subtract with Carry RSC (register-shifted register) on page A8-294<br />

10001 - Test TST (register-shifted register) on page A8-458<br />

10011 - Test Equivalence TEQ (register-shifted register) on page A8-452<br />

10101 - Compare CMP (register-shifted register) on page A8-84<br />

10111 - Compare Negative CMN (register-shifted register) on page A8-78<br />

1100x - Bitwise OR ORR (register-shifted register) on page A8-232<br />

1101x 00 Logical Shift Left LSL (register) on page A8-180<br />

01 Logical Shift Right LSR (register) on page A8-184<br />

10 Arithmetic Shift Right ASR (register) on page A8-42<br />

11 Rotate Right ROR (register) on page A8-280<br />

1110x - Bitwise Bit Clear BIC (register-shifted register) on page A8-54<br />

1111x - Bitwise NOT MVN (register-shifted register) on page A8-218<br />

<strong>ARM</strong> DDI 0406B Copyright © 1996-1998, 2000, 2004-2008 <strong>ARM</strong> Limited. All rights reserved. A5-7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!