Starting from:

$25

COMP3353-Project 2 Solved

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.

 Create a BYTE array with the label ‘input’. ‘input’ should have eight elements. You should place values 1,2,3,4,5,6,7,8 in each of the elements of this array.

Create a BYTE variable with the label ‘shift’. ‘shift’ should hold a single value 2.

(20 points) Set the values of the EAX, EBX, ECX, and EDX to 0. 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:

The first sums should be in high position of the AX register.

The second sums should be in low position of the AX register.

 The third sums should be in high position of BX register.

The fourth sums should be in low position of BX register.

The fifth sums should be in high position of CX register.

The sixth sums should be in low position of CX register.

The seventh sums should be in high position of the DX register.

The eighth sums should be in low position of the DX register. 

More products