Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 5: Assume the content of the registers are as follows before any instruction execution: (30 points) Note: Assume the values are signed. Examine each
Question 5: Assume the content of the registers are as follows before any instruction execution: (30 points) Note: Assume the values are signed. Examine each instruction independent of the previous instructions. a) R1 = A001 C3AB H b) R2 = B000 AOB2 H c) R3 = FFFF FFFF H d) R4 = 0000 0001 H Also assume the flags are: N=0, Z= 0, C= 1, V=O, Q=0 Indicate the content of each register and flag after each instruction execution bellow. ADD R1, R2 R1 R2 R3 N z V ADD R3, R1, R2 R1 R2 R3 N z V Q ADDS R1, R2 R1 R2 R3 N Z V Q ADDS R3, R3, R4 R3 R3 R4 N NO V Q ADCS R3, R1, R2 R1 R2 R3 N Z V Q ADDNE R1, R2 R1 R2 R3 N Z C V Question 5: Assume the content of the registers are as follows before any instruction execution: (30 points) Note: Assume the values are signed. Examine each instruction independent of the previous instructions. a) R1 = A001 C3AB H b) R2 = B000 AOB2 H c) R3 = FFFF FFFF H d) R4 = 0000 0001 H Also assume the flags are: N=0, Z= 0, C= 1, V=O, Q=0 Indicate the content of each register and flag after each instruction execution bellow. ADD R1, R2 R1 R2 R3 N z V ADD R3, R1, R2 R1 R2 R3 N z V Q ADDS R1, R2 R1 R2 R3 N Z V Q ADDS R3, R3, R4 R3 R3 R4 N NO V Q ADCS R3, R1, R2 R1 R2 R3 N Z V Q ADDNE R1, R2 R1 R2 R3 N Z C V
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started