Question: USING PEP 8- PEP8 can be downloaded from : http://computersystemsbook.com/4th-edition/pep8/ Create a program named while.pep and write an assembly language program to simulate execution of

USING PEP 8- PEP8 can be downloaded from : http://computersystemsbook.com/4th-edition/pep8/

Create a program named while.pep and write an assembly language program to simulate execution of a C++ while loop statement. On startup the program will ask for a condition value ( 1 variable ).

You will need another variable that will start at zero and increment by one every time through the loop.The loop continues as long as this variable is strictly less than the condition and the loops ends if the variable is greater than or equal to this value.Inside the loop print the message "-loop value- inside the loop is Less Than -condition value-".After the loop completes print the message "Loop done, -loop value- equal or exceeds -condition value-".

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

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

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

USING PEP 8- PEP8 can be downloaded from : http://computersystemsbook.com/4th-edition/pep8/

Create a program 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):

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!