Using the MARIE computer assembly language, write a program that computes the following expression: z = a * b * c. The computer will read in the input values a, b, and c from the keyboard and the final result (z) have to be displayed. In addition, every time an input value is read in, it must be displayed on the screen.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter1: An Overview Of Computers And Programming
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

Using the MARIE computer assembly language, write a program that computes the following expression:
z = a * b * c. The computer will read in the input values a, b, and c from the keyboard and the final result
(z) have to be displayed. In addition, every time an input value is read in, it must be displayed on the screen.

Expert Solution
Step 1

MARIE (Machine Architecture that is Really Intuitive and Easy) is a simplified computer architecture that is used in computer science education to teach assembly language programming and computer organization concepts. MARIE is designed to be easy to understand, with a small set of simple instructions and a straightforward memory organization.

The MARIE architecture consists of a single accumulator, a memory of 4096 words (each word being 16 bits), and a set of input/output devices. MARIE has 16 general-purpose registers, a program counter (PC), a memory buffer register (MBR), an instruction register (IR), and an address register (AR).

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning