Question: I need to code this in assembly language. I am using Pep / 9 to code. Start a program that will ask for a starting

I need to code this in assembly language. I am using Pep/9 to code. Start a program that will ask for a starting value then ask for a command of either 'M' or 'D'. The program should then print the value *2(asla) if 'M' or value /2(asra) if 'D'(or not 'M'). Then stop. Like so:
Value? 123
M or D: M
246
Run it again to have:Value? 37
M or D: D
18
You can use the labels charIn and charOut to input and output a character.

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 Programming Questions!