Question: Using the Marie Simulator, you will create a small assembly language Marie program. The program is a simple multiplication app ( MARIE does not have

Using the Marie Simulator, you will create a small assembly language Marie program. The program is a simple multiplication app (MARIE does not have a MULT operator, so you have to figure out how to do this on your own). Basically, your program will issue a prompt (>), then accept a single digit integer from the user. (Hit the ENTER key to actually enter the value). It will then echo that integer to the screen, print a * symbol, then wait for a second digit. It will then echo this digit to the screen, followed by the = symbol and then the result of the multiplication. There is no error checking, so all numbers entered should be a single digit, and the result must also be a single digit. So 2*3=6 or 8*1=8 is okay, but 3*5=15 is not (i.e., your program is not expected to be able to handle the third case properly). When the calculation is finished, you must tell the program whether to continue or not. If you enter a !, the program will print BYE to the screen and halt. If you simply hit the ENTER key instead, it will loop and provide a new prompt. Note that IO is quite limited on Marie so you cant do anything fancy. You should select the no linefeed option in the Output Window everything will be printed on one line. In addition, the data format of both the Input and Output registers should be set to ASCII (this is the default). It must not be changed to anything else as the program is running. A sample output for a two iteration loop would be something like this: >3*3=9>1*4=4BYE

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!