Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (30 points) Consider the following code segment. 01 02 03 04 R12 myw, R6 #0x8001, R5 16, R R5, R6 CLR 05 Inxt: BIT
1. (30 points) Consider the following code segment. 01 02 03 04 R12 myw, R6 #0x8001, R5 16, R R5, R6 CLR 05 Inxt: BIT UNZ INC 08 lskip:RRA DEC UNZ 06 07 lskip R12 R6 R7 Inxt 09 10 MOV.B R12, PioUT 12 13 myw: dc16 1000 1101_0001_1110b : suffix b denotes binary value 3.A. (5 points) How many words is allocated by the assembly directive in line 13 and what is its content in hex? 3.B. (5 points) What is the content of register R6 after the instruction in line 02 is completed? 3.C. (15 points) What does this code segment do? Explain your answer 3.D. (5 points) What is the value of PIOUT at the end of the program. 3.E. (5 points) Calculate the total execution time in seconds for the code sequence from above (line 0 line 11). We know the following: the average CPI is 1.8 clocks per instruction. Assume the clock frequency is 2 MHz. What is MIPS rate for this code
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