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.

A9.5.5 LDR (immediate)<br />

Load Register (immediate) provides 16-bit instructions to load words using:<br />

R9 as base register, with a positive offset of up to 63 words, for loading from a frame<br />

R10 as base register, with a positive offset of up to 31 words, for loading from a literal pool<br />

R0-R7 as base register, with a negative offset of up to 7 words, for array operations.<br />

Encoding E1 ThumbEE<br />

LDR ,[R9{, #}]<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 0 0 1 1 0 imm6 Rt<br />

t = UInt(Rt); n = 9; imm32 = ZeroExtend(imm6:’00’, 32); add = TRUE;<br />

Encoding E2 ThumbEE<br />

LDR ,[R10{, #}]<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 0 0 1 0 1 1 imm5 Rt<br />

t = UInt(Rt); n = 10; imm32 = ZeroExtend(imm5:’00’, 32); add = TRUE;<br />

Encoding E3 ThumbEE<br />

LDR ,[{, #-}]<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

1 1 0 0 1 0 0 imm3 Rn Rt<br />

t = UInt(Rt); n = UInt(Rn); imm32 = ZeroExtend(imm3:’00’, 32); add = FALSE;<br />

ThumbEE<br />

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

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

Saved successfully!

Ooh no, something went wrong!