Question: Please help me with this lab in Java, Create a MARIE assembly program which inputs two integers, X and Y, computes 3X + 4Y, and

Please help me with this lab in Java,

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 p erform 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

Please help me with this lab in Java, Create a MARIE assembly

Sample Output When 4 and 6 are entered MARIE Simulator Symbol Map Help OUTPUT AC 0024 Hex 36 IR | 7000 Hex IMAR | 013|Hex MBR 000C Hex PC 014 |Hex Dec Control INPUT 6 Dec Sample Output When 4 and 6 are entered MARIE Simulator Symbol Map Help OUTPUT AC 0024 Hex 36 IR | 7000 Hex IMAR | 013|Hex MBR 000C Hex PC 014 |Hex Dec Control INPUT 6 Dec

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 Databases Questions!