Question: Please submit source file as ( . asm ) and make sure it runs. The objective of this assignment is to create a program that
Please submit source file as asm and make sure it runs.
The objective of this assignment is to create a program that will read a value from an array, add another value to this, and save the sum of those two values into a specific register. Please note that your program doesn't have to print out any results since TA will examine the values in your register.
points Create a BYTE array with the label 'input'. 'input' should have eight elements. You should place values in each of the elements of this array.
points Create a BYTE variable with the label 'shift'. 'shift' should hold a single value
points Set the values of the EAX, EBX, ECX, and EDX to You then sum the value of this variable with each of the individual values in the array 'input'. The program should read each of the values from the array 'input' one at a time and add the value 'shift' to it
The sum should be stored in the "correct" register:
points The first sums should be in high position of the AX register.
points The second sums should be in low position of the AX register.
points The third sums should be in high position of BX register.
points The fourth sums should be in low position of BX register.
points The fifth sums should be in high position of CX register.
points The sixth sums should be in low position of CX register.
points The seventh sums should be in high position of the DX register.
points The eighth sums should be in low position of the DX register.in your register.
points Create a BYTE array with the label 'input'. 'input' should have eight
elements. You should place values in each of the elements of this
array.
points Create a BYTE variable with the label 'shift'. 'shift' should hold a single
value
points Set the values of the EAX, EBX, ECX, and EDX to You then sum the
value of this variable with each of the individual values in the array 'input'. The
program should read each of the values from the array 'input' one at a time and add
the value 'shift' to it
The sum should be stored in the "correct" register:
points The first sums should be in high position of the AX register.
points The second sums should be in low position of the AX register.
points The third sums should be in high position of BX register.
points The fourth sums should be in low position of BX register.
points The fifth sums should be in high position of CX register.
points The sixth sums should be in low position of CX register.
points The seventh sums should be in high position of the DX register.
points The eighth sums should be in low position of the DX register.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
