Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an AVR Assembly language program to do the following: Using 4 unsigned numbers in memory data space range 0x0100-0x0103, do the following: 1. Store
Write an AVR Assembly language program to do the following:
Using 4 unsigned numbers in memory data space range 0x0100-0x0103, do the following: 1. Store the maximum in 0x0105 (20%) 2. Store the first even number in 0x0106, 0 otherwise (20%) 3. Store the sum in 0x0107 (20%) 4. Store the average (rounded down) in 0x0108 (20%) 5. Store the numbers in reverse order in data space 0x0110-0x0113 (20%) Testing Given numbers {10, 13, 23, 26; across data space 0x0100-0x0103, data space should be 0x0105-26 (0x1A) 0 (0x0A) 0x0107 -> 72 (0x48) 0x0108-18 (0x12) 0x0110-0x0113-> {26, 23, 13, 10 Atmel data IRAM: data 0x0100 0a Od 17 1a 00 1a 0a 48 12 1a 17 0d 0a Using 4 unsigned numbers in memory data space range 0x0100-0x0103, do the following: 1. Store the maximum in 0x0105 (20%) 2. Store the first even number in 0x0106, 0 otherwise (20%) 3. Store the sum in 0x0107 (20%) 4. Store the average (rounded down) in 0x0108 (20%) 5. Store the numbers in reverse order in data space 0x0110-0x0113 (20%) Testing Given numbers {10, 13, 23, 26; across data space 0x0100-0x0103, data space should be 0x0105-26 (0x1A) 0 (0x0A) 0x0107 -> 72 (0x48) 0x0108-18 (0x12) 0x0110-0x0113-> {26, 23, 13, 10 Atmel data IRAM: data 0x0100 0a Od 17 1a 00 1a 0a 48 12 1a 17 0d 0aStep 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