Question: Use an Armv 8 simulator for help!! 5 . Write the value of the PC registers, flag registers and control signals for each

Use an Armv8 simulator for help!!
5. Write the value of the "PC" registers, flag registers and control signals for each executed instruction.
6. Each instruction has different fields that are represented as binary in the machine. Write down the binary value of the field of each instruction.
7. Write down the value of "ALU" input signal (control signal)?
Question 2:
Code 1:
ADDI X1, XZR, #10
ADDI X2, XZR, #20
SUB X3, X1, X2
CBZ X3, TARGET
ADDI X1, XZR, #10
ADDI X2, XZR, #20
SUB X3, X1, X2
CBZ X3, TARGET
TARGET:
Code 2:
ADDI X1, XZR, #10
ADDI X2, XZR, #10
SUB X3, X1, X2
CBZ X3, TARGET
ADDI X1, XZR, #10
ADDI X2, XZR, #20
SUB X3, X1, X2
CBZ X3, TARGET
TARGET:
In addition to the question in Instructions (5) to (8), answer the following questions: How does Code 1 differ from Code 2 in terms of execution? (Hint: Follow the "Zero" control output signal of ALU, the
"AND" gate, "OR" gate, and control signal of the upper right "MUX")
Use an Armv 8 simulator for help!! 5 . Write the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!