IUP Computer Science
CO 300 Spring 1998
Write an assembly language program that reads in a group of sentences and displays them in a spiral starting at the center of the screen. The spiral may go clockwise or counter clockwise. If it goes clockwise, the first character should be immediately below screen center, then proceeding left, up, and right before going down again. If it goes counter clockwise, the first character should be immediately above screen center, then proceeding left, down, and right before going up again.
The program should prompt for lines of text repeatedly until Enter is entered immediately after the prompt. The program should then clear the screen and display ALL accumulated text in a spiral starting in the center of the screen. Allow for up to 500 characters of text to be read in. For example, if the following lines of text are entered:
This is an example of the kind of output your program should produce. See it's easy.
then your program should produce the following spiral (assuming you choose a clockwise spiral). Note: this spiral is stretched horizontally to make this description more readable; your program is NOT expected to produce this stretching. The line in the spiral is just to help you follow the text spiral - it was drawn by hand.
o d u c e . S e
r u t p u t y e
p o p l e o o
m s i f u i
d f a i s r t
l o x h T t '
u e n a h p s
o d n i k e r
h s m a r g o e
. y s a
Handin a .LIS listing of your commented program and copy the
EXECUTABLE version of your program to the HANDIN directory. Name
the file in the HANDIN directory after yourself. For example, if
I did this project in a file called P3.MAR, I would perform the
following copy:
COPY P3.EXE HANDIN:WOLFE.EXE
DO NOT assemble and link with the /DEBUG qualifier when you produce the executable that you copy to HANDIN.
Extra credit possibility: Use multiple escape sequences that involve color and/or character attributes as you display the text spiral - you choose which sequences (as long as it involves some interesting effect).