Question: reference: intel 8 0 8 6 microprocessor Write an assembly program to do the followings: a . Convert each of the even number in Array

reference: intel 8086 microprocessor Write an 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.
Project 2
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 Array1 and element 8 of Array2
and so on.
d. Finally, send the content of element 0 of Array 3 to PORT 0 of the trainer kit.
Process and procedures:
Write the complete assembly program on notepad. Assemble it using NASM.
Download the program into the 8086-trainer kit through Tera Term.
Demonstrate the program and the result by executing your program. Get your professor's initial.
objectives:
Program writing for manipulating an array.
Tools/Systems:
> NASM assembler
> Tera Term
>8086 Trainer (including the cross-modem cable)
Lab:
Consider the following arrays with the contents given (you have to declare them in your program).
Array1:
Array2:
Array3:
Write an 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.
reference: intel 8 0 8 6 microprocessor Write an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!