Question: Assembler question? Write a program that sums the following list of numbers and store the result in the byte addressed at 0x10A of SRAM. List

Assembler question?

Write a program that sums the following list of numbers and store the result in the byte addressed at 0x10A of SRAM.

List of numbers: 2, 4, 5, 20, 37

Use the ldi instruction to load each number into a register and as many adds as you need to calculate the total. Store the total at location 0x10A in SRAM.

Is this just a bunch of add statements piled together?

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!