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

LDRD , , Normal form<br />

LDRD , , [PC, #+/-] Alternative form<br />

where:<br />

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

Instruction Details<br />

The first destination register. For an <strong>ARM</strong> instruction, must be even-numbered <strong>and</strong> not<br />

R14.<br />

The second destination register. For an <strong>ARM</strong> instruction, must be .<br />

The label of the literal data item that is to be loaded into . The assembler calculates the<br />

required value of the offset from the Align(PC,4) value of this instruction to the label.<br />

Permitted values of the offset are:<br />

Encoding T1 multiples of 4 in the range -1020 to 1020<br />

Encoding A1 any value in the range -255 to 255.<br />

If the offset is zero or positive, imm32 is equal to the offset <strong>and</strong> add == TRUE.<br />

If the offset is negative, imm32 is equal to minus the offset <strong>and</strong> add == FALSE.<br />

The alternative syntax permits the addition or subtraction of the offset <strong>and</strong> the immediate offset to be<br />

specified separately, including permitting a subtraction of 0 that cannot be specified using the normal<br />

syntax. For more information, see Use of labels in UAL instruction syntax on page A4-5.<br />

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

Operation<br />

if ConditionPassed() then<br />

EncodingSpecificOperations(); NullCheckIfThumbEE(15);<br />

address = if add then (Align(PC,4) + imm32) else (Align(PC,4) - imm32);<br />

R[t] = MemA[address,4];<br />

R[t2] = MemA[address+4,4];<br />

Exceptions<br />

Data Abort.<br />

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

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

Saved successfully!

Ooh no, something went wrong!