Question

1. Consider the following arrays with the contents given (you have to declare them in your program).
Array1:

3, 8, 13, 12, 20, 25, 19, 17, 30, 13

Array2:
, , , , , , , , ,

Array3:
E0A1+E9A2, E1A1+E8A2, E2A1+E7A2, , , , , , , E9A1+E0A2

Write a 8086 assembly program to do the followings:

a. Convert each of the even number in Array1 to its immediate next higher odd number and each of the odd number in the array to its immediate lower even number. This conversion will be done in a subroutine named Modifier. The modification will be done using logic so that the modifier works for any data in the given array. Before modifications, all the data in the array needs to be saved in the stack so that in future we can use the original data again.

b. Now, populate Array 2 with the saved data in the stack. Multiply each of the data (only the even numbers) by 4. This modification will be done by another subroutine named Incrementor.

c. Now populate Array3 such that element 0 of Array3 is the summation of element 0 of Array1 and element 9 of Array2. Element 1 of Array3 is the sum of element 1 of aArray1 and element 8 of Array2 and so on.

d. Finally, send the content of element 0 of Array3 to PORT 0 of the trainer kit.

Answers

Answer
can you make it simpler, please bot?
Answer
can you make code more simpler, please?
Answer
can you make code more simpler?
Answer
can you make code simpler?
Answer
please make code simpler?
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions