Question: Write a program using Marie Simulator that can implement a multiplication of 3 and 5 and store the result to a variable MUL. Please note
Write a program using Marie Simulator that can implement a multiplication 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 to add number 5 three times to come up with 3*5
points)
Hint: e.g. following code can be used to initialize the variables 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 contents and functionality.
Comment each variable in your program
Use correctly ORG to start your program and halt to terminate your 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 displayed correctly.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
