Question: we use visual studio ans MASM No. 1 50 points) Write an assembly program to compute the sum of LISTI and the sum of LIST2.

 we use visual studio ans MASM No. 1 50 points) Write

an assembly program to compute the sum of LISTI and the sum

of LIST2. LISTI has three 32-bit Hex and LIST2 has four 32-bit

we use visual studio ans MASM

No. 1 50 points) Write an assembly program to compute the sum of LISTI and the sum of LIST2. LISTI has three 32-bit Hex and LIST2 has four 32-bit Hex numbers, shown below. Store the sum o in variable SUM1 and the sum of LIST2 in variable SUM2, and display these sums. Then exchange these two sums and display again f LIST1 LIST1: LIST2: 10h, 20h, 30h 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 No. 2 (50 points) 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 by calling the DumpMem. Add adequate documentations. Turn in your program codes and screen shots No. 3 (50 points) Write an assembly program to generate and display the first 24 Fibonacci numbers, beginning with 1 and ending with 46368. Add adequate documentations. Turn in your program codes and screen shots No. 4 50 points Using a loop and indexed addressing, write assembly codes that rotate the members of a 32-bit integer array forward one position. The value at the end of the array must wrap around to the first position. For example, the array [10, 20, 30, 40] would be transformed into [40, 10, 20, 30]. No. 1 50 points) Write an assembly program to compute the sum of LISTI and the sum of LIST2. LISTI has three 32-bit Hex and LIST2 has four 32-bit Hex numbers, shown below. Store the sum o in variable SUM1 and the sum of LIST2 in variable SUM2, and display these sums. Then exchange these two sums and display again f LIST1 LIST1: LIST2: 10h, 20h, 30h 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 No. 2 (50 points) 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 by calling the DumpMem. Add adequate documentations. Turn in your program codes and screen shots No. 3 (50 points) Write an assembly program to generate and display the first 24 Fibonacci numbers, beginning with 1 and ending with 46368. Add adequate documentations. Turn in your program codes and screen shots No. 4 50 points Using a loop and indexed addressing, write assembly codes that rotate the members of a 32-bit integer array forward one position. The value at the end of the array must wrap around to the first position. For example, the array [10, 20, 30, 40] would be transformed into [40, 10, 20, 30]

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!