01.12.2014 Views

ARM Processor Instruction Set

ARM Processor Instruction Set

ARM Processor Instruction Set

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.

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

5.4 Data processing<br />

The instruction is only executed if the condition is true, defined at the beginning of this<br />

chapter. The instruction encoding is shown in ➲Figure 5-4: Data processing<br />

instructions on page 5-7.<br />

The instruction produces a result by performing a specified arithmetic or logical<br />

operation on one or two operands.<br />

First operand is always a register (Rn).<br />

Second operand<br />

may be a shifted register (Rm) or a rotated 8-bit immediate<br />

value (Imm) according to the value of the I bit in the<br />

instruction.<br />

The condition codes in the CPSR may be preserved or updated as a result of this<br />

instruction, according to the value of the S-bit in the instruction.<br />

Certain operations (TST, TEQ, CMP, CMN) do not write the result to Rd. They are used<br />

only to perform tests and to set the condition codes on the result and always have the<br />

S bit set.<br />

Preliminary - Unrestricted<br />

The instructions and their effects are listed in ➲Table 5-1: <strong>ARM</strong> data processing<br />

instructions on page 5-8.<br />

5-6<br />

<strong>ARM</strong>7500 Data Sheet<br />

<strong>ARM</strong> DDI 0050C

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

Saved successfully!

Ooh no, something went wrong!