Sketch the flowcharts of the 7 cases which are described in Lab assignment below!
LAB ASSIGNMENT Subroutine calls -keyboard/terminal: To be done in Assembly In this program, you need write a program in which the user responds to a menu of choices by typing a single character. Your program should, in an infinite loop, do the followingdepending on the user input: It should begin by printing the prompt string: "Make a selection: V, W,A,D,4,2, P:" Also, the following actions are performed in response to menu item selection: (a) User presses V The main program calls a subroutine to handle this action. The subroutine prompts the user to enter an 8-bit integer value from the keyboard. The value entered is stored in a memory location named OP1, The value entered is also returned to the main program in register A. The main program prints the value returned in A register to the terminal. e.g. if the value in A is $2F it should print: OPI = $2F (b) User presses W The main program calls a subroutine to handle this action. The subroutine prompts the user to enter an 8-bit integer value from the keyboard. The value entered is stored in a memory location named OP2 OP2 is allocated in memory so that it immediately follows OP1. The value entered is also returned to the main program in register A. The main program prints the valuereturned in A register to the terminal. e.g. if the value in A is S2F it should print: LAB ASSIGNMENT Subroutine calls -keyboard/terminal: To be done in Assembly In this program, you need write a program in which the user responds to a menu of choices by typing a single character. Your program should, in an infinite loop, do the followingdepending on the user input: It should begin by printing the prompt string: "Make a selection: V, W,A,D,4,2, P:" Also, the following actions are performed in response to menu item selection: (a) User presses V The main program calls a subroutine to handle this action. The subroutine prompts the user to enter an 8-bit integer value from the keyboard. The value entered is stored in a memory location named OP1, The value entered is also returned to the main program in register A. The main program prints the value returned in A register to the terminal. e.g. if the value in A is $2F it should print: OPI = $2F (b) User presses W The main program calls a subroutine to handle this action. The subroutine prompts the user to enter an 8-bit integer value from the keyboard. The value entered is stored in a memory location named OP2 OP2 is allocated in memory so that it immediately follows OP1. The value entered is also returned to the main program in register A. The main program prints the valuereturned in A register to the terminal. e.g. if the value in A is S2F it should print