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
Cache controller The cache controller is the mind of the cache.  Its responsibilities include:  performing the  snarfs and snoops, updating the  TRAM  and SRAM and implementing

how to store a bulk data in a external eeprom

Part A: Bitwise Logical and Shift Operations Create a SPARC assembly language program that extracts a bit-field from the contents of register %l0. The position of the rightmos

how o create the flow chart for scan ROW4, Column 1 and 3.tq

Physical Memory Mapped I/O and Port I/O : CPU controlled I/O comes in 2 ways. Simply the difference is whether we utilize the normal memory addresses for I/O, this is mention

CALL : Unconditional Call:- This instruction is utilized to call a subroutine from a basic program. In case of assembly language programming, the term procedure is utilized int

Write an assembly program that adds the elements in the odd indices of the following array. Use LOOP. What is the final value in the register?

CMPS : Compare String Byte or String Word:-The CMPS instruction may be utilized to compare two strings of Words or byte. The length of the string ought to be stored in the CX. If

DEC:  Decrement :- The decrement instruction subtracts 1 from the contents of the particular memory location or register. All the conditions code flags except carry flag are affec

Instruction Formats A machine language instruction format has 1 or more number of fields linked with it. The first field is known as operation code field or op code field, whic