Question: Please Provide the code that only works in Marie Simulator with the comments. Not any other assembly Simulatior. If you don't know the Marie Simulator
Please Provide the code that only works in Marie Simulator with the comments. Not any other assembly Simulatior. If you don't know the Marie Simulator please don't answer it.
INSTRUCTIONS:
-using MARIE SIMULATOR, write the program that will calculate AB+CD
use the input command to read in the values for A, B, C, and D
output the answer to the screen.
PLEASE MODIFY THE CODE THAT HAS BEEN WRITTEN BELOW. DO NOT WRITE NEW CODE.
///////////////////////////// / Multiply / Just like it says /////////////////////////////
Input //take 1st input from user Store mult //store in variable Input //take 2nd input from user Store ctrl //store in variable
Multiply, Skipcond 800 //if AC > 0, then end loop Jump Stop Load product //load product to AC Add mult //add value of mult to product Store product //store value in product
Load ctrl //subtract one from LCV Subt one Store ctrl
Jump Multiply //restart loop
Stop, Load product //load product to AC Output //display Halt //terminate
mult, DEC 0 //number to be multiplied ctrl, DEC 0 //number to be multiplied by (LCV) product, DEC 0 //product of 2 inputs one, DEC 1 //the number 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
