Write an assembly language program to demonstrate your understanding of the use of terminal escape sequences. The program should begin by clearing the screen and displaying the following menu on the top 4 lines of the screen. The menu should look like this.
Quit Q Clear Screen C Normal N Bold B Flashing F Reverse R Wide WThis menu indicates the display form for a message. N indicates a normal mode of display; B indicates bold characters; R indicates reverse video; F indicates flashing or blinking video; W indicates double wide characters. The other two menu entries are for special actions: Q (quit) - end the program; C (clear) - erase the screen below the prompt.
The program should prompt the person at the terminal to get four pieces of information. All four prompts must be displayed at
the beginning of line 8 on the screen. The four prompts and what must be entered are described below.
What display form?
The person at the terminal should enter one of the seven menu letters. These letters should be recognized in either uppercase or lowercase. If what is entered is not one of the seven letters, the program should display an error message on line 6 and prompt again. Error messages, such as this one, should ALL cause the terminal to beep.
Which line?The person at the terminal should enter a number between 10 and 24. If the entered number is not in this range, the program should display an error message on line 6 and prompt again.
Which column?The person at the terminal should enter a number between 1 and 79. If the entered number is not in this range, the program should display an error message on line 6 and prompt again.
What is the message?The person at the terminal should enter a message of up to 60 characters. The program should then display the message (only as much as entered) in the indicated display form starting at the line and column position specified and prompt again for display form on line 8.
When a prompt is displayed, anything else that remains on line 8 and line 6 must be cleared from the screen. If a prompt must be redisplayed (because of an error), only line 8 should be cleared. The menu should remain on the screen at all times. The program should repeatedly go through the prompts until a Q is entered at the first prompt.
Handin a printout of the listing (.LIS) file for the program. You must also hand in the executable file by writing it to the HANDIN directory (H:); name the file after yourself - for example I would call my file WOLFE.EXE. You must use at least one of the advanced loop control instructions in this program.