Question: 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:

Write an AVR Assembly language program to do the following: Using 4

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 0a

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!