LDR

LDR Rd, [Rn, #imm5]

arm_t16 ARM_T16 Thumb may_load

T16_LDR_IMM5

Encoding

encoding_kindARM_T16
size_bits16
variantt16
instr_word_bits16
fixed_bits00006800
fixed_mask0000F800
set_flagsFalse

Operands (3)

# Role Kind Class / Reg Width Access Visibility Encoded in
0 Rd REG GPR d (32b) W EXPLICIT bits[2:0]
1 Rn REG GPR d (32b) R EXPLICIT bits[5:3]
2 imm5 IMM b (5b) R EXPLICIT bits[10:6]

Context dependencies

SLEIGH-style: this encoding only matches when these context variables hold the required values.

T = 1

Micro-ops sequence (2)

Ordered sequence of primitive operations the emulator dispatches. Ghidra-p-code-style — INTRINSIC escapes arch-specific ops that don't decompose cleanly.

  1. 0 INT_ADD addr (Rn, imm5) 32b
  2. 1 LOAD Rd (addr) 32b