Question: Assembly program Create a program creates an array of 10 SBYTES which are initially filled with the value 100. Using your Better RandomRange procedure from

Assembly program
Create a program creates an array of 10 SBYTES which are initially filled with the value 100. Using your Better RandomRange procedure from part A, populate the array with random numbers between in the range of -50 to +75. Make sure to include RANDOMIZE in your main method. Create a procedure to print the array which accepts the address of the array in the register ESI, the TYPE of the array in EBX, and the number of elements in ECX. This procedure will print and array of signed integers, separated by 2 spaces and enclosed in curly bracesUse this method to print the array both before and after the random numbers are added to the array. 2406 F18- Assembly Language Programming Next, create a procedure that will add up all the values in the array. Even thought the values of the array are smaller than DWORDS, add up the numbers using the DWORD register EAX and return the total in the EAX register. Like the print procedure, this sumArray procedure will accepts the address of the array in the register ESI, the TYPE of the array in EBX, and the number of elements in ECx Finally, make any necessary adjustments to your program so that if the array type is changed from SBYTES to SWORDS, the program still works correctly. Create a program creates an array of 10 SBYTES which are initially filled with the value 100. Using your Better RandomRange procedure from part A, populate the array with random numbers between in the range of -50 to +75. Make sure to include RANDOMIZE in your main method. Create a procedure to print the array which accepts the address of the array in the register ESI, the TYPE of the array in EBX, and the number of elements in ECX. This procedure will print and array of signed integers, separated by 2 spaces and enclosed in curly bracesUse this method to print the array both before and after the random numbers are added to the array. 2406 F18- Assembly Language Programming Next, create a procedure that will add up all the values in the array. Even thought the values of the array are smaller than DWORDS, add up the numbers using the DWORD register EAX and return the total in the EAX register. Like the print procedure, this sumArray procedure will accepts the address of the array in the register ESI, the TYPE of the array in EBX, and the number of elements in ECx Finally, make any necessary adjustments to your program so that if the array type is changed from SBYTES to SWORDS, the program still works correctly
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
