Question: 3 0 p t s ( a ) ( 1 0 pts ) Generate the machine code corresponding to the Delay and Long _ Delay

30pts
(a)(10 pts) Generate the machine code corresponding to the Delay and Long_Delay
subroutines of the following AVR assembly program. Use hexadecimal numbers to
represent the resulting code FOR EACH ASSEMBLY PROGRAM LINE THAT
GENERATES A MACHINE CODE.
(b)(5 pts) What is the size of this program in bytes?
(c)(5 pts) What are the values of R20,R21,R22 after the execution of Long_Delay
subroutine?
(d)(5 pts) How long is the delay introduced by a single call of the following subrou-
tine Long_Delay in seconds with a 1MHz clock frequency?
(e)(5 pts) What should be the minimum stack size to call the Long_Delay subrou-
tine?
 30pts (a)(10 pts) Generate the machine code corresponding to the Delay

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!