2
answers
1
watching
272
views

Create a program that will allocate an array of quad integers and assign them some numbers. (Assembly Language and example below)

.data

Array: .quad xxx

             .quad xxxx

In your program, update the numbers to sequential numbers. (Load the address and save new data into the memory location) you can add to the memory base address or use relative addressing to move to different indexes in the array.

Write a series of statements that will add all the new data in the array into one sum.

Add a new variable to the data segment that will hold the average of these numbers.

Add a variable that will hold the remainder of any division. (modules)

Take the sum and divide it by the number of items in your array and save that answer in the variable you just added above.

Save the remainder of the division into the remainder variable, you added above.

(Needs to be done in Assembly Language in Linux 64 bit Ubuntu)

 

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Avatar image
Read by 1 person
Already have an account? Log in

Related questions

Related Documents

Weekly leaderboard

Start filling in the gaps now
Log in