IUP Computer Science
COSC 300    Fall 2000

Assignment #2
Due in class on 1 October 2000

Write an assembly language program that displays text on the screen. The program should declare one or more variables that hold character information. The total number of characters may NOT be stored in a variable in the program; also, the total number of characters may NOT be used as a constant (numeric or symbolic) in the program. The total number of characters should be greater than 100 and the collection of characters should occupy at least three lines.

The program should use program offset information to determine how many characters are stored and then use that number in loop control to display the text on the screen. Below is an example of the something you might use as the characters, although it is on the short side. Do not use this sample in your program; use something that is longer.

first	db	"Here are a few words",0dh,0ah
        db	"that occupy several lines.  They are not very "
last 	db	"interesting."0dh, 0ah, 0dh, 0ah, But they work."
When the program displays these characters, they should look like this:
Here are a few words
that occupy several lines.  They are not very interesting.

But they work.
There are no restrictions on the characters that are to be display, except that they must be displayable (or like 0dh and 0ah control the display). Thus, even if there are $ characters in the text, they must be displayed.

Hand in an assembly-generated listing of your well-commented program with a printout of the results it produces.

Note: Do NOT attempt to input the characters to be displayed; they must be declared within the program.