Lab Assignment, Assembly Language

Assignment Help:
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.

Related Discussions:- Lab Assignment

Call-unconditional branch instruction-microprocessor, CALL : Unconditional...

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

Logical instruction-microprocessor, Logical Instruction : This type of...

Logical Instruction : This type of instructions is utilized for carrying out the bit by bit shift, basic logical operations or rotate. All of the condition code flags are affe

Code using hla language, You have been hired by the Elbonian government to ...

You have been hired by the Elbonian government to write an Assembly program to help its workforce determine how much their tax will be. The tax laws in Elbonian are very simple. Th

Encrypting, write an assembly language program that has two subroutines : o...

write an assembly language program that has two subroutines : one for encrypting alphabates of a string and second fo decrypting the encoded string . in encryption simply converta

Machine level programs-microprocessor, Machine Level Programs In this s...

Machine Level Programs In this section, a few machine levels programming instance, rather then, instruction sequences are presented for comparing the 8086 programming with that

Using straight line method for depreciation, Request a depreciation of the...

Request a depreciation of the item, year of purchase, cost of item, number of years to be depreciated (estimated life ) and,the method of depreciation . Method of depreciation sh

Eeprom programming, how to store a bulk data in a external eeprom

how to store a bulk data in a external eeprom

Space don''t come in ASCII characters while printing?, .MODEL SMALL .STACK...

.MODEL SMALL .STACK 100H .DATA PROMPT DB \''The 256 ASCII Characters are : $\'' .CODE MAIN PROC MOV AX, @DATA ; initialize DS MOV DS, AX

Flow chart and pseudocode, #question.flow chart for a program to find out t...

#question.flow chart for a program to find out the number of even and odd numbers from a given series of 16-bit hexadecimal numbers.

Program, write a program assembly language for adding two 3*3 matrix

write a program assembly language for adding two 3*3 matrix

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd