---
# System prepended metadata

title: LDR 不一定是 LDR

---

# LDR 不一定是 LDR

```cpp=
LDR      r0, =42           ; => MOV R0, #42
LDR      r1, =0x55555555   ; => LDR R1, [PC, #offset to
                           ; Literal Pool 1]
LDR      r2, =0xFFFFFFFF   ; => MVN R2, #0
```

offset 大小：32 bit 不能超過 4k，16 bit 不能超過 1k

> http://infocenter.arm.com/help/topic/com.arm.doc.dui0801g/DUI0801G_armasm_user_guide.pdf
> 6.8 Literal pools
> 6.7 Load immediate values using LDR Rd, =const
> 13.54 LDR pseudo-instruction