Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Sketch the flowcharts of the 7 cases which are described in Lab assignment below! image text in transcribed
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

7 Name at least three selection methods.

Answered: 1 week ago

Question

9 What is meant by the processual approach?

Answered: 1 week ago