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 "*" 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 can't do anything fancy. You should select the "no linefeed" option in the Output Window - everything will be printed on one line. ~5~ 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
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 "*" 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 can't do anything fancy. You should select the "no linefeed" option in the Output Window - everything will be printed on one line. ~5~ 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
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Please do not use
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education