Question
Write an assembly program to compute the sum of LIST1 and the sum of LIST2. LIST1 has three 32-bit Hex and LIST2 has four 32-bit
Write an assembly program to compute the sum of LIST1 and the sum of LIST2. LIST1 has three 32-bit Hex and LIST2 has four 32-bit Hex numbers, shown below. Store the sum of LIST1 in variable SUM1 and the sum of LIST2 in variable SUM2, and display these sums.
Then exchange these two sums and display again.
LIST1: 10h, 20h, 30h
LIST2: 10h, 20h, 30h, 40h
Print the contents of SUM1 and SUM2 before and after you exchange the values.
Turn in your program codes and screen shots.
Use a loop with indirect or indexed addressing to reverse the elements of an integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPE, and LENGTHOF operators to make the program as flexible as possible if the array size and type should be changed in the future. Display the modified array. Add adequate documentations. Turn in your program codes and screen shots.
We use Visual Studios C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started