RTL: The Load Instruction
lw rt, rs, imm16
mem[PC] Fetch the instruction from memory
Addr <- R[rs] + SignExt(imm16)
Calculate the memory address
R[rt] <- Mem[Addr] Load the data into the register
PC <- PC + 4 Calculate the next instruction’s address
Previous slide
Next slide
Back to first slide
View graphic version