Question: Problem 6 . In the following sequence of instructions: ADD X 5 , X 2 , X 1 LDUR X 3 , [ X 5
Problem In the following sequence of instructions:
ADD X X X
LDUR XX #
LDUR XX #
ORR X X X
STUR XX #
a If there is no forwarding or hazard detection, insert NOPs to ensure correct execution.
b Change andor rearrange the code to minimize the number of NOPs needed. You can assume register X can be used to hold temporary values in your modified code.
I think between ADD X X X and LDUR XX # should be NOPs, if no please also explain why while answering the question a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
