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 />

MRC{2} , #, , , {, #}<br />

where:<br />

2 If specified, selects encoding T2 / A2. If omitted, selects encoding T1 / A1.<br />

Instruction Details<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7. An <strong>ARM</strong> MRC2 instruction must be<br />

unconditional.<br />

The name of the coprocessor. The st<strong>and</strong>ard generic coprocessor names are p0, p1, …, p15.<br />

Is a coprocessor-specific opcode in the range 0 to 7.<br />

Is the destination <strong>ARM</strong> core register. This register can be R0-R14 or APSR_nzcv. The last<br />

form writes bits [31:28] of the transferred value to the N, Z, C <strong>and</strong> V condition flags <strong>and</strong> is<br />

specified by setting the Rt field of the encoding to 0b1111. In pre-UAL assembler syntax,<br />

PC was written instead of APSR_nzcv to select this form.<br />

Is the coprocessor register that contains the first oper<strong>and</strong>.<br />

Is an additional source or destination coprocessor register.<br />

Is a coprocessor-specific opcode in the range 0 to 7. If omitted, is assumed to be 0.<br />

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations();<br />

if !Coproc_Accepted(cp, ThisInstr()) then<br />

GenerateCoprocessorException();<br />

else<br />

value = Coproc_GetOneWord(cp, ThisInstr());<br />

if t != 15 then<br />

R[t] = value;<br />

else<br />

APSR.N = value;<br />

APSR.Z = value;<br />

APSR.C = value;<br />

APSR.V = value;<br />

// value are not used.<br />

Exceptions<br />

Undefined Instruction.<br />

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

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

Saved successfully!

Ooh no, something went wrong!