ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

LD

T2 avr load_store insn
AVR AVR-8 Instruction: LD
SourceLLVM AVR 8-bit MCU Instruction & Feature Definitions (llvm_avr_isa)
Reliability TierT2 — Compiler & Kernel Reference
ISA / Silicon ScopeAVR 8-bit ISA (AVR-8)
ATmega / ATtiny / XMEGA / AVR-Dx 8-bit microcontrollers
License & VersionApache-2.0 WITH LLVM-exception
llvm/main
Upstreamhttps://github.com/llvm/llvm-project/tree/main/llvm/lib/Target/AVR
Privilegeuser
ExtensionsAVR-8, SRAM

Summary

AVR LD instruction (AVR-8, 16-bit) with 3 encoding variants extracted from LLVM TableGen. Effects: load. Extensions: SRAM.

Syntax / Encoding

LDRdPtr: ld $reg, $ptrreg
LDRdPtrPd: ld $reg, -$ptrreg
LDRdPtrPi: ld $reg, $ptrreg+

Binary Encodings (3)

WidthFormatBit PatternMask / Match
16LDRdPtr1000000xxxxxxx000xfe03 / 0x8000
16LDRdPtrPd1000000xxxxxxx100xfe03 / 0x8002
16LDRdPtrPi1000000xxxxxxx010xfe03 / 0x8001

Operands

NameDescription
reg
ptrreg
base_wb