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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

A5.2.3 Data-processing (immediate)<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 1 op Rn<br />

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

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

op Rn Instruction See<br />

Table A5-5 Data-processing (immediate) instructions<br />

0000x - Bitwise AND AND (immediate) on page A8-34<br />

0001x - Bitwise Exclusive OR EOR (immediate) on page A8-94<br />

0010x not 1111 Subtract SUB (immediate, <strong>ARM</strong>) on page A8-420<br />

1111 Form PC-relative address ADR on page A8-32<br />

0011x - Reverse Subtract RSB (immediate) on page A8-284<br />

0100x not 1111 Add ADD (immediate, <strong>ARM</strong>) on page A8-22<br />

1111 Form PC-relative address ADR on page A8-32<br />

0101x - Add with Carry ADC (immediate) on page A8-14<br />

0110x - Subtract with Carry SBC (immediate) on page A8-302<br />

0111x - Reverse Subtract with Carry RSC (immediate) on page A8-290<br />

10001 - Test TST (immediate) on page A8-454<br />

10011 - Test Equivalence TEQ (immediate) on page A8-448<br />

10101 - Compare CMP (immediate) on page A8-80<br />

10111 - Compare Negative CMN (immediate) on page A8-74<br />

1100x - Bitwise OR ORR (immediate) on page A8-228<br />

1101x - Move MOV (immediate) on page A8-194<br />

1110x - Bitwise Bit Clear BIC (immediate) on page A8-50<br />

1111x - Bitwise NOT MVN (immediate) on page A8-214<br />

These instructions all have modified immediate constants, rather than a simple 12-bit binary number. This<br />

provides a more useful range of values. For details see Modified immediate constants in <strong>ARM</strong> instructions<br />

on page A5-9.<br />

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

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

Saved successfully!

Ooh no, something went wrong!