Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. (25 points) Analyze assembly program Consider the following code segment. 01 02 03 04 CLR MOV MOV MOV 05 1nxt: BIT JNZ INC 08
2. (25 points) Analyze assembly program Consider the following code segment. 01 02 03 04 CLR MOV MOV MOV 05 1nxt: BIT JNZ INC 08 1skip: RRA DEC UNZ R12 myw, R6 #0x0001, R5 #16, R7 R5, R6 06 07 1skip R12 R6 R7 Inxt 09 10 MOV.B R12, P1OUT 12 13 myw: word 1001110100111100b : suffix b denotes binary value A. (2 points) How many words is allocated by the assembly directive in line 13 and what is its content in hex? B. (3 points) what is the content of register R6 after the instruction in line 02 is completed? C. (15 points) What does this code segment do? Explain your answer. D. (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 CPl 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