[solved]-Write Program Using Marie Simulator Implement Multiplication 3 5 Store Result Variable Mul Q39043255
Write a program using Marie Simulator that can implement amultiplication of 3 and 5 and store the result to a variable MUL.Please note in this program we cannot use loop, i.e. you have toadd number 5 three times to come up with 3*5
points)
Hint: e.g. following code can be used to initialize thevariables X, Y, Z, Temp and MUL, in which X is 5, Y is 5, Z is 5,Temp is initialized to 0 and MUL is initialized to 0.
X,
DEC
5
/one of the input numbers: 5
Y,
DEC
5
/one of the input numbers: 5
Z,
DEC
5
/one of the input numbers: 5
Temp,
DEC
0
/a variable to store your temporary result
MUL,
DEC
0
/a variable to store your multiplication result
Comment each instruction in your program to explain its contentsand functionality.
Comment each variable in your program
Use correctly ORG to start your program and halt to terminateyour program.
Use ADD correctly to add the numbers.
Use STORE correctly to store the result back to MUL.
Screenshot results of running the assembly program are displayedcorrectly.
Expert Answer
Answer to Write a program using Marie Simulator that can implement a multiplication of 3 and 5 and store the result to a variable … . . .
OR