|
addi $10, $8, 5 # $10 = $8 + 5 lw $t1, offset($t0) # $t1 = mem[[$t0]+offset]
add $8, $9, $10 # $8 = $9 + $10 addi $8, $9, 16 # $8 = $9 + 16
The added control lines are straightforward and determine the operation performed at the ALU, whether the data memory should read or write, and whether the registers should perform a write operation. The control lines are shown in color. |
“We should forgive our enemies, but not before they are hanged” ― Heinrich Heine |