Question: b ) A simple AVR C - program is shown below in figure 3 b . The assembly language output from the C compiler is
b A simple AVR Cprogram is shown below in figure b The assembly
language output from the compiler is also shown on the right hand side of
figure Answer the following questions:
i Complete the assembly language program on the right hand side of
figure below, if the variables and are stored at address
and respectively?
marks
ii In assembly language program explain how the variable gets
initialised to Explain the operations that are required to
initialise the variable
marks
iii. Explain where in the CPU the result from the ADD instruction will be
stored after the ADD operation is executed?
marks
C Source Program
Assembly Language Listing for program
Figure
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
