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.

Assembler syntax<br />

LDC{2}{L} ,,[{,#+/-}] Offset. P = 1, W = 0.<br />

LDC{2}{L} ,,[,#+/-]! Pre-indexed. P = 1, W = 1.<br />

LDC{2}{L} ,,[],#+/- Post-indexed. P = 0, W = 1.<br />

LDC{2}{L} ,,[], Unindexed. P =0, W =0, U =1.<br />

where:<br />

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

Instruction Details<br />

L If specified, selects the D == 1 form of the encoding. If omitted, selects the D == 0 form.<br />

See St<strong>and</strong>ard assembler syntax fields on page A8-7. An <strong>ARM</strong> LDC2 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 />

The coprocessor destination register.<br />

The base register. The SP can be used. For PC use see LDC, LDC2 (literal) on page A8-108.<br />

+/- Is + or omitted if the immediate offset is to be added to the base register value (add == TRUE),<br />

or – if it is to be subtracted (add == FALSE). #0 <strong>and</strong> #-0 generate different instructions.<br />

The immediate offset used to form the address. Values are multiples of 4 in the range<br />

0-1020. For the offset addressing syntax, can be omitted, meaning an offset of +0.<br />

A coprocessor option. An integer in the range 0-255 enclosed in { }. Encoded in imm8.<br />

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

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations();<br />

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

GenerateCoprocessorException();<br />

else<br />

NullCheckIfThumbEE(n);<br />

offset_addr = if add then (R[n] + imm32) else (R[n] - imm32);<br />

address = if index then offset_addr else R[n];<br />

repeat<br />

Coproc_SendLoadedWord(MemA[address,4], cp, ThisInstr()); address = address + 4;<br />

until Coproc_DoneLoading(cp, ThisInstr());<br />

if wback then R[n] = offset_addr;<br />

Exceptions<br />

Undefined Instruction, Data Abort.<br />

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

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

Saved successfully!

Ooh no, something went wrong!