Question: Objectives: Program writing for manipulating an array. Tools / Systems: NASM assembler Tera Term 8 0 8 6 Trainer ( including the cross - modem
Objectives:
Program writing for manipulating an array.
ToolsSystems:
NASM assembler
Tera Term
Trainer including the crossmodem cable
Lab:
Consider the following arrays with the contents given you have to declare them in your program
Array:
Array:
Array:
EAEA EAEA EAEA EAEA
Write an assembly program to do the followings:
a Convert each of the even number in Array 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 with the saved data in the stack. Multiply each of the data only the even numbers by This modification will be done by another subroutine named Incrementor.
c Now populate Array such that element of Array is the summation of element f Array and element of Array Element f Array is the sum of element of Array and element f Array and so on
d Finally, send the content of element of Array to PORT of the trainer kit.
Process and procedures:
Write the complete assembly program on notepad. Assemble it using NASM.
Download the program into the trainer kit through Tera Term.
Demonstrate the program and the result by executing your program. Get your professors initial.
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
