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 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
Y DEC
one, DEC
num, DEC
make a simple code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
