Question: Need help asap!! Question 2. The AVR assembly code shown in Listing 2-1 converts a hexadecimal number (OxFD) to decimal and stores the resulting digits
Need help asap!!

Question 2. The AVR assembly code shown in Listing 2-1 converts a hexadecimal number (OxFD) to decimal and stores the resulting digits in memory locations 0x322, 0x323 and 0x324, where the least-significant digit is stored in location 0x322. a) Draw a flowchart for this program and describe its operation. b) Modify the program as follows: i. Use register indirect addressing to store the decimal digits in the given memory locations (i.e. store the digits using the ST instruction) ii. Convert each digit of the resulting decimal number to ASCII and store the ASCII characters in locations 0x325, 0x326 and 0x327. Note: The ASCII code of a number digit (0,1,2..9) is that number plus Ox30. iii. Describe how this program could be modified to convert 3 digit hexadecimal numbers to decimal. Question 2. The AVR assembly code shown in Listing 2-1 converts a hexadecimal number (OxFD) to decimal and stores the resulting digits in memory locations 0x322, 0x323 and 0x324, where the least-significant digit is stored in location 0x322. a) Draw a flowchart for this program and describe its operation. b) Modify the program as follows: i. Use register indirect addressing to store the decimal digits in the given memory locations (i.e. store the digits using the ST instruction) ii. Convert each digit of the resulting decimal number to ASCII and store the ASCII characters in locations 0x325, 0x326 and 0x327. Note: The ASCII code of a number digit (0,1,2..9) is that number plus Ox30. iii. Describe how this program could be modified to convert 3 digit hexadecimal numbers to decimal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
