Computer Organization
© Paul Koester, Dallas County Community College, 2018
COSC 2425 – Computer Organization
Lab #4 – MARIE Program
Create a MARIE assembly program which inputs two integers, X and Y, computes 3X + 4Y, and outputs
the result.
Requirements
1. The program must be written in MARIE Assembly Language.
2. It must use a subroutine to perform the multiplications.
3. You do not need to prompt for the input, just use the Input instruction. The user will need to
know to enter X first and then Y.
4. Similarly no text is required with the output, just use the Output instruction.
Hints
1. Lesson 4 has information on downloading the MARIE simulator.
2. Activity 4 will introduce you to MARIE.
3. Example 4.5 in the textbook has an example of using a subroutine. It has one Parameter. You
will need two for the multiply routine. Do that by adding another labelled memory location
before the Subroutine label.
4. The subroutine will need to use a loop to perform the multiply. There is an example of a loop
in Example 4.4.
Upload: Your MARIE assembly file (.mas)
Sample Output: When 4 and 6 are entered