addi
, add immediate:
addi $10, $8, 9 # $10 = $8 + 9 # rt = rs + imm16 |
op
field, also called the opcode, is always contained in bits 31:26.
rs
and rt
are at the positions bits 25:21 and 20:16.
The figure shows a datapath for I-type ALU instructions. Other I-type instructions such as load and store will be discussed later. |
RW
now comes from rt
, instead of rd
.
RB
and BusB
are not used.
ALUCtrl
is derived from the op
field.
RegWrite
is used to enable the writing of the ALU result
.
ExtOp
is used to control the extension of the 16-bit immediate.