Docsity

Lab Assignment 2 - Computer Organization and Program | COSC 2410, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
COSC 2410 LAB (SUM II)
ASSIGNMENT #2
DUE 10/08/2002 (Just before the Lab)
Write an Assembly Program in MASM to sort 5 strings and display them in descending
order (One string on one line). The strings are specified in a file called ‘assign2.inc’
which has to be included in your program.
An example of the format of the file (assign2.inc) is as follows:
string1 equ “This is cool”
string2 equ “Hello World”
string3 equ “Keep up the good work”
string4 equ “Best of Luck”
string5 equ “You may leave now”
For testing your program you will create the file ‘assign2.inc’ in the format as shown
above. In your test file don’t change the variable names (i.e. string1, string2, …,string5)
used to defined the strings.
Don’t use any high level program structures, libraries, functions or macros in your
program.
Copy the .asm file on a floppy and print a hard copy of your assembly program and
submit them in a manila envelope.
No Late submissions will be accepted. Also, Indent and comment your program.
Remember the Academic Honesty Policy of the University.

Partial preview of the text

Download Lab Assignment 2 - Computer Organization and Program | COSC 2410 and more Assignments Computer Architecture and Organization in PDF only on Docsity!

COSC 2410 LAB (SUM II)

ASSIGNMENT

DUE 10/08/2002 (Just before the Lab)

Write an Assembly Program in MASM to sort 5 strings and display them in descending order (One string on one line). The strings are specified in a file called ‘assign2.inc’ which has to be included in your program. An example of the format of the file (assign2.inc) is as follows: string1 equ “This is cool” string2 equ “Hello World” string3 equ “Keep up the good work” string4 equ “Best of Luck” string5 equ “You may leave now” For testing your program you will create the file ‘assign2.inc’ in the format as shown above. In your test file don’t change the variable names (i.e. string1, string2, …,string5) used to defined the strings. Don’t use any high level program structures, libraries, functions or macros in your program. Copy the .asm file on a floppy and print a hard copy of your assembly program and submit them in a manila envelope. No Late submissions will be accepted. Also, Indent and comment your program. Remember the Academic Honesty Policy of the University.