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