Question: For a program running on a multi-cycle processor: When a BEQ instruction executes, the ALU subtracts its operands and asserts the Zero control signal when
For a program running on a multi-cycle processor:
When a BEQ instruction executes, the ALU subtracts its operands and asserts the Zero control signal when the result is 0, which causes the PC to be modified.
When a SUB instruction executes, the ALU also subtracts its operands and asserts the Zero control signal when the result is 0.
Does asserting the Zero control signal during execution of a SUB instruction cause the PC to be modified? Explain your reasoning.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
