Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 [ 2 0 MARKS ] ( a ) Given [ 0 2 0 ] = 0 7 A , [ 0 2 1

QUESTION 2[20 MARKS]
(a) Given [020]=07A,[021]=005 and C=1, show the status of N,OV and DC after the following instruction:
[3 Marks]
MOVF 020, W, A
ADDWFC 021,F,A
(b) Without using multiplication instruction, multiply the content of 043 with 2.
[3 Marks]
(c) Write an instruction sequence to read one byte data at program memory location 02480 and write to file register at 0250.
[6 Marks]
(d) Figure 2 depicts a macro program and an incomplete delay subroutine. There are missing instructions from Line 3 until Line 7. The time delay provided by delay subroutine is 20ms. Calculate total instruction cycles and complete the missing lines by writing a complete subroutine named delay. Assume the crystal frequency is 32MHz. Show ALL your calculations.
[8 Marks]Figure 2: Program for Question 2(d)help
image text in transcribed

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

Students also viewed these Databases questions

Question

How long is a 14-gauge copper wire that has a resistance of 2 ?

Answered: 1 week ago

Question

What are physical variables in an experiment?

Answered: 1 week ago

Question

Distinguish between filtering and interpreting. (Objective 2)

Answered: 1 week ago