Question: Using MARIE assembly language, write a multiplication program that will read any two integers, and uses JNS Mult to multiply those two integers. Introduction to

Using MARIE assembly language, write a multiplication program that will read any
two integers, and uses JNS Mult to multiply those two integers. Introduction to MARIE, A Basic CPU Simulator
Full Code
```
/ Prompt user to type in integers
INPUT
Store X
INPUT
Store Y
/ Loop for performing iterative addition
loop, Load num
Add X
Store num
Load Y
Subt one
Store Y
Skipcond 400/ have we completed the multiplication?
Jump loop / no; repeat loop
/ yes, so exit the loop
/ Output result to user then halt program
Load num
Output
Halt
/ Declare labels here
X, DEC 0
Y, DEC 0
one, DEC 1
num, DEC 0
make a simple code
Using MARIE assembly language, write a

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