Question: Memory Operand (Cont.) C++ code: g h+A[8]; Compiled MIPS code: lw $t0. 32(Ss3) # load word add Ss1, Ss2, St0 offse base register The first
Memory Operand (Cont.) C++ code: g h+A[8]; Compiled MIPS code: lw $t0. 32(Ss3) # load word add Ss1, Ss2, St0 offse base register The first instruction loads the value of memory to register St0 The second instruction operate on St0 (register) The format of the load instruction is the name of the operation followed by the register to be loaded, then a constant and register used to access memory. Memory Operand (Cont.) C++ code: g h+A[8]; Compiled MIPS code: lw $t0. 32(Ss3) # load word add Ss1, Ss2, St0 offse base register The first instruction loads the value of memory to register St0 The second instruction operate on St0 (register) The format of the load instruction is the name of the operation followed by the register to be loaded, then a constant and register used to access memory
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
