Write an assembly language program that reads in several lines of text and uses escape sequences to display the text in a special "serpentine" arrangement on the screen. Here are the details.
3. Display the text, one character at a time, moving vertically down the screen (staying in column 5) until 20 characters are displayed or the end of text is reached. Then, move to column 6 and display subsequent characters moving up the screen (staying in column 6) until the end of the text or line 1 is reached. If there remains text to be displayed, repeat these two actions on the next two columns (7 and 8) and then columns 9 and 10, and so on. ALL characters being displayed moving downward must be in normal form; ALL characters being displayed moving upward must be in bold form.
4. After all text is displayed in this serpentine pattern, move the cursor to the beginning of line 22 and terminate the program. (Make sure the display is in normal form at the time.
Hand in an assembly generated listing of your program (an .LIS file), complete with appropriate comments. Also, copy the executable file for your program to the HANDIN directory and name it after yourself. For example, if I were submitting my program and it was in the file P3.EXE, I would give the command
COPY P3.EXE HANDIN:WOLFE.EXEEXTRA CREDIT: Find an interesting way to use color in the display (and maintaining the bold and normal attributes). Worth 1-5 points depending on how interesting I find your use of color.
Here is an example to give you the idea. Suppose the prompt is "Enter text: " and the user enters the following text.
Enter text: This is a sample of Enter text: some words to display in a serpentine Enter text: form. Enter text:The collected text would be stored in consecutive bytes as:
This is a sample of some words to display in a serpentine form.It should then be displayed as:
Tay hl ipi ssn i ida s os ate r ssp ade mrn pot lwi e n ee om . fofm sorThere is a demonstration version of the program in the file PROJECT:P3.EXE. One note: the demonstration program slows down the display so that you can see that characters are indeed being displayed as required on the front page. Your program is NOT expected to display in the slow form.