What offset range does LBU use?
Base load instructions use a sign-extended 12-bit byte offset, typically -2048 through 2047.
Load a byte from memory, zero-extend to 32 bits, and write to rd
LBU (I-type, opcode=0000011, funct3=100) loads an 8-bit byte from memory at the effective address, zero-extends it to 32 bits, and writes to rd. Unlike LB (which sign-extends), LBU zero-extends. Commonly used for unsigned byte data and characters.
Uses the same rhythm as the ADDI page: machine-code fields, fixed-field identification, operand reads, instruction-specific execution, and ISA-visible state update.
The machine code is split by the current instruction format; the animation starts from encoding/decode.
This animation shows ISA-visible decode and state changes, not any specific CPU pipeline, cache, prediction, or timing implementation.
LBU reads a 8-bit byte from the effective address formed by rs1 plus a signed 12-bit offset, then zero-extends the value into rd.
Understand this scenario with real code like «lbu x7, 0(x10) # x7 = zero_ext(mem[x10+0][7:0])».
Understand this scenario with real code like «lbu x7, 0(x10) # x7 = zero_ext(mem[x10+0][7:0])».
Understand this scenario with real code like «lbu x7, 0(x10) # x7 = zero_ext(mem[x10+0][7:0])».
Base load instructions use a sign-extended 12-bit byte offset, typically -2048 through 2047.
LB/LH/LW sign-extend the loaded value to XLEN; LBU/LHU zero-extend. On RV64, use LWU when a 32-bit word should be zero-extended.