Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7 . ( 1 5 points ) . Using the Marie Simulator found on the web site, you will create a small assembly language Marie

7.(15 points). Using the Marie Simulator found on the web site, 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 \({}^{n *"}\) 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 "I", 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 can't do anything fancy. You should select the "no linefeed" option in the Output Window everything will be printed on one line. A sample output for a two iteration loop would be something like this: \[>3*3=9>1*4=4 B Y E \]

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

Step: 3

blur-text-image

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What is a patent and how is it accounted for?

Answered: 1 week ago