Question: Sketch the flowchart for the 7 cases listed in the lab assignment below? LAB ASSIGNMENT Subroutine calls -keyboard/terminal: To be done in Assembly In this

Sketch the flowchart for the 7 cases listed in the lab assignment below?  Sketch the flowchart for the 7 cases listed in the lab
assignment below? LAB ASSIGNMENT Subroutine calls -keyboard/terminal: To be done in Assembly

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!