Question: Create a program that sum up the content of a list. Create the list using dup() operator. The list is of a size 16 -

Create a program that sum up the content of a list.

Create the list using dup() operator.

The list is of a size 16 - bits and it should conation the following values: 2,4,8,10,12,14.

Sum up the lists values. You are only allowed to assigned the first element to a register and the rest of the elements values must be accessed using the list name and the offset (ex. listname + offset ).

Store the result in the list in element position 6

Examine the content of the memory location 6 and report your result in decimal

Please write the code in Assembly Language. I'm confused on how to work on this problem, can someone help explain how to solve it?

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!