Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

What are the ethical issues facing Hannah, Isaac, and Brenda?

Answered: 1 week ago