Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please Provide the code that only works in Marie Simulator with the comments. No

ID: 3853192 • Letter: P

Question

Please Provide the code that only works in Marie Simulator with the comments. Not any other assembly Simulator. If you don't know the Marie Simulator please don't answer it.

INSTRUCTIONS:

Write a Marie Simulator program that will perform the 'do/while loop' logic

read in a number that will be your LCV (loop-control-variable)

each time through the loop, print out the LCV

Example: you enter a 5

print out 5

              4

              3

              2

              1

remember, with a do/while loop the code must execute once

Explanation / Answer

Clear // clears the AC

X, DEC 1 // declare and intialize the Variable X with the value 1

num , DEC 0 // declare and intialize the Variable X with the value 0

Input // Reading a number from user

Store num // Storing the number

loop,Load num // printing the number

subt X // subtractiong the input number by 1

Skipcond 000

Jump loop

Halt