Question: Please use assembly language with visual studio. Thanks! Assignment 4A Insert the following variables in your program: .data Uarray WORD 1000h, 2000h, 3000h, 4000h Sarray
Please use assembly language with visual studio. Thanks!

Assignment 4A Insert the following variables in your program: .data Uarray WORD 1000h, 2000h, 3000h, 4000h Sarray SWORD -1, -2, -3, -4 Write instructions that use direct offset addressing to move the four values in Uarray to the EAX, EBX, ECX, and EDX registers. When you follow this with a call DumpRegs statement, the following register values should display: EAX = 00001000 EBX = 00002000 ECX =00003000 EDX=00004000 Next, write instructions that use direct offset addressing to move the four values in Sarray to the EAX, EBX, ECX, and EDX registers.. When you follow this with a call DumpRegs statement, the following register values should display: EAX =FFFFFFFF EBX =FFFFFFFE ECX=FFFFFFFD EDX=FFFFFFFC Assignment 4B Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPEOF, and LENGHTOF operators to make the program as flexible as possible if the array size and type should be changed in the future. Optionally, you may display the modified array by calling the Dump Mem method from the Irvine 32 library. See chapter 5 for details. Assignment 4A Insert the following variables in your program: .data Uarray WORD 1000h, 2000h, 3000h, 4000h Sarray SWORD -1, -2, -3, -4 Write instructions that use direct offset addressing to move the four values in Uarray to the EAX, EBX, ECX, and EDX registers. When you follow this with a call DumpRegs statement, the following register values should display: EAX = 00001000 EBX = 00002000 ECX =00003000 EDX=00004000 Next, write instructions that use direct offset addressing to move the four values in Sarray to the EAX, EBX, ECX, and EDX registers.. When you follow this with a call DumpRegs statement, the following register values should display: EAX =FFFFFFFF EBX =FFFFFFFE ECX=FFFFFFFD EDX=FFFFFFFC Assignment 4B Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place. Do not copy the elements to any other array. Use the SIZEOF, TYPEOF, and LENGHTOF operators to make the program as flexible as possible if the array size and type should be changed in the future. Optionally, you may display the modified array by calling the Dump Mem method from the Irvine 32 library. See chapter 5 for details
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
