Encoding:
RaRb0100
Ra
and Rb
from the Register File
Ra
and Rb
are encoded in the instructionALUout = Ra + Rb
(set up ALUop to add - code 000
)
Ra
(write into the register fileZ
and N
based on ALUout
Z
, bit 7
, for N
last lecturePC <- PC + 1
by sending PC to the ALU, and also 1
(see muxes)sub Ra, Rb:
RaRb0110
001
nand
Instructionnand Ra, Rb:
RaRb1000
011
)ori
InstructionRequires different use of different parts of the datapath:
Imm5111