Question: 1. (30 points) Consider the following code segment. 01 02 03 CLR MOV MOV MOV R12 y, RE #0x0001, #16, R7 R5 05 1nxt BIT
1. (30 points) Consider the following code segment. 01 02 03 CLR MOV MOV MOV R12 y, RE #0x0001, #16, R7 R5 05 1nxt BIT 06 07 08 1skip:RRA 09 10 JN2 INC 1skip R12 RE R7 inxt MOV.B R12, PIOUT 12 13 myw: dcl 1000_1101_0001_1110b ; suffin 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 P1OUT at the end of the program. 3.E. (5 points) Calculate the total execution time in seconds for the code sequence from above (line 01 -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
Get step-by-step solutions from verified subject matter experts
