Write an assembly language program to simulate execution


Problem

Create a program using Pep9 named switch.pep and write an assembly language program to simulate execution of a C++ switch statement. On startup the program will ask for a input value from 0 to 4 (1 variable).

The switch will select a case from 0 to 4 and have a default case. Assume each case has a break at the end.Inside each switch case print the message "-input value- inside the switch matches -case value-". In the default case print the input value and a message that is not 0 to 4.After the switch completes print the message "switch done".

You will, of course, insert the proper values for -input value- and -switch value- and not print those exact words.

Be sure to lay out the logic (or flow) of the assembly program to match a switch statement and use comments through out the code. In other words, clearly label in the code where each portion of the switch starts and ends (this is an example, you should comment more):

At the top of the program use comments to list your name, the date, project and course information as well as a description of the program.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write an assembly language program to simulate execution
Reference No:- TGS03275815

Expected delivery within 24 Hours