[Pseudocode to MIPS]
Convert the follwing pseudocode to MIPS instructions.
a) submi reg1 reg2 imm – take the value pointed to by the memory address at reg2 and subtract it by the immediate value. Set reg1 to the difference
lw $reg2, $t1 ;loading register 2
lw $[reg2+1] $t2 ; getting immediate value
subi $reg1, $t1, $t2 ; subtract