|Non-Confidential||PDF version||ARM 100069_0608_00_en|
|Home > Writing A32/T32 Assembly Language > Load immediate values using LDR Rd, =const|
LDR Rd,=const pseudo-instruction generates the most efficient single instruction to load any 32-bit number.
You can use this pseudo-instruction to generate constants that are out of range of the
LDR pseudo-instruction generates
the most efficient single instruction for the specified immediate
MVNinstruction, the assembler generates the appropriate instruction.
MVNinstruction, the assembler:
LDRinstruction with a PC-relative address that reads the constant from the literal pool.
n, [pc, #offset to literal pool] ; load register
nwith one word ; from the address [pc + offset]
You must ensure that there is a literal pool within range of the
LDR instruction generated by the assembler.