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.

Assembler syntax<br />

EOR{S} {,} , , <br />

where:<br />

Instruction Details<br />

S If S is present, the instruction updates the flags. Otherwise, the flags are not updated.<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7.<br />

The destination register.<br />

The first oper<strong>and</strong> register.<br />

The register that is shifted <strong>and</strong> used as the second oper<strong>and</strong>.<br />

The type of shift to apply to the value read from . It must be one of:<br />

ASR Arithmetic shift right, encoded as type = 0b10<br />

LSL Logical shift left, encoded as type = 0b00<br />

LSR Logical shift right, encoded as type = 0b01<br />

ROR Rotate right, encoded as type = 0b11.<br />

The register whose bottom byte contains the amount to shift by.<br />

The pre-UAL syntax EORS is equivalent to EORS.<br />

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations();<br />

shift_n = UInt(R[s]);<br />

(shifted, carry) = Shift_C(R[m], shift_t, shift_n, APSR.C);<br />

result = R[n] EOR shifted;<br />

R[d] = result;<br />

if setflags then<br />

APSR.N = result;<br />

APSR.Z = IsZeroBit(result);<br />

APSR.C = carry;<br />

// APSR.V unchanged<br />

Exceptions<br />

None.<br />

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

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

Saved successfully!

Ooh no, something went wrong!