NASM 64 program named fproj.asm
The name of your file must be fproj.asm and
below is a description of what it should do when executed.
Before you start working on the program
fp.asm
Download simple_io.inc and
save it on your workstation, then transfer it to moore to your
working directory and convert it to a unix text file (using dos2unix).
This file is necessary.
Download simple_io.asm and save it on your
workstation, then transfer it to moore to your working directory
and convert it to a unix text file (using dos2unix).
This file is necessary.
Download driver.c and
save it on your workstation, then transfer it to moore to your
working directory and convert it to a unix text file (using dos2unix).
This file is necessary. Note, that this is a
different driver.c than the one we used in the
labs.
Download fproj.py and
save it on your workstation, then transfer it to moore to your
working directory and convert it to a unix text file (using dos2unix).
This is a python version of the program you are to write in NASM assembler. You
can execute it on moore by python3 fproj.py to
gain a better understanding of how the program should behave.
Download fproj_skel.asm and
save it on your workstation, then transfer it to moore to your
working directory and convert it to a unix text file (using dos2unix).
This is a skeleton file for fproj.asm . It
contains to code for the random initialization of the array array .
Download makefile from the sample NASM programs and save
it on your workstation, then transfer it to moore to your working
directory and convert it to a unix text file (using dos2unix).
Then modify the file makefile for a proper compilation and linking of
fproj.asm
. This file is not necessary, you may create it from scratch
if you are so inclined.
What
should fproj.asm do:
1. If
0 is entered, the loop is terminated, and then the program terminates.
2.
If a pair of values i and j is
entered, then in array the item containing
the value i is swapped with the
item
containing
the value j , and the loop is
repeated.
is the size of the array, in this case 8. You cannot hard
code in the subroutine display the address of the array, nor the
size.
+
++
++
+-+
+ +
+-+
+--+
+ +
+ +
+--+
+---+
+ +
+ +
+ +
+---+
+------+
+ +
+ +
+ +
+ +
+ +
+ +
+------+
Get Free Quote!
429 Experts Online