Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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? 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
Sketch the flowchart for the 7 cases listed in the lab assignment below?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started