Lab Assignment, Assembly Language

1) Write an 80x86 assembly language program in EXE file format to do the following
tasks:
a) Open and read the contents of a file into memory (use at least 1 kB).
b) Sort the list in numerical order using the bubble sort method.
c) Display the results on the screen using the same format in (a).
d) Save the output in the same file
e) Uses some of the code from labs 2 and 3 as well as new code.
2) Use the following procedures:
a) MAIN: the main procedure.
b) READ: reads the score file.
c) DISPLAY: display the contents of the binary file.
d) SORT: sort the entries in alphabetical order.
e) ERROR: handles file errors.
f) ADD_SCORE: adds a new score to the list
g) SAVE: consolidates the file to only contain the scores in the list, and saves them
in order. It only saves the top 10 scores!
3) All the DOS function calls used for file I/O should be added as MACROs to your
DOS.MAC file.
4) The high score list is organized as a singly-linked list. Each entry contains two fields:
a) A pointer (offset address) to the next element. The data type is WORD (16-bit).
b) The text field contains a numerical score (ASCII) followed by a '' : '', followed by a
name, and is terminated by 2 spaces ('' ''). The data type is BYTE.
c) The list should only contain 10 scores. (The file may contain more than 10)
d) Each name can be limited to 5 characters.
e) The score must be able to range from 0 to 16777215.
5) There has been some confusion in the past about this lab.
a) I will not provide a score file. You need to have code that can create the file.
b) Printing strings and writing to files will get you some points, but you need to get
the linked list working and sorted to get a good grade.
c) You don’t explicitly declare a linked list in memory. You just declare a buffer
space where the linked list will be read to, added to, sorted, and written from.
Posted Date: 10/21/2012 11:28:53 PM | Location : United States







Related Discussions:- Lab Assignment, Assignment Help, Ask Question on Lab Assignment, Get Answer, Expert's Help, Lab Assignment Discussions

Write discussion on Lab Assignment
Your posts are moderated
Related Questions
XOR: Logical Exclusive OR: The XOR operation is again carried out in a similar way to the AND and OR operation. The constraint over operands are also similar. The XOR operation pr

MLIL: Unsigned Multiplication Byte or Word: This instruction multiplies an unsigned byte or word by the contents of the AL. The unsigned byte or word can be in any one of the gene

Flowchart for the sequence of 8251 Whether the control, mode or sync character register is selected depends on the accessing sequence.  A flowchart of the sequencing is given i

Write a MC68H12 assembly language program to find the largest number in an array of ten 8-bit numbers. The array is stored in memory locations starting at address $1100. Use branch

Using the windows32 framework, write a complete 80x86 program for Programming Exercises 4.3 number 3, on pages 130-131 of the textbook. Follow all coding conventions mentioned in

Difference between div and idiv

I am assigned to implement dijkstra algorithm in assembly language. I am not a novice in assembly. I need help implementing it.Kindly if anyone then please.

what is the hex value in ax after executing the instructions ax= 1E8A bx=4080 add al,bl sub ah,bh


a pseudo-code to add username and password combination up to a limit of 10