add $t1, $t2, $t3 # $t1 = $t2 + $t3 # rd = rs + rt |
For R-type ALU instructions, RegDst is ‘1’ to select rd on RW and ALUSrc is ‘0’ to select BusB as the second ALU input.
|
addi $10, $8, 9 # $10 = $8 + 9 # rt = rs + imm16 |
For I-type ALU instructions, RegDst is ‘0’ to select rt on RW and ALUSrc is ‘1’ to select extended immediate as the second ALU input.
|
“There is a wisdom of the head, and... there is a wisdom of the heart.” ― Charles Dickens, Hard Times |