Working with MARIE
Given the following program:
ORG 100
If, Load X
(10 Marks)
Then,
Else,
Endif,
Two, X,
Y,
a. b.
i. ii.
Subt Y Skipcond 400 Jump Else Load X
Add Two Store X Jump Endif Load Y Add X Store Y Output
Halt Dec 2 Dec ? Dec ? END
c.
Describe the flow of the above program if X=10 and Y=10, and find the output. After executing the program, what values will be in:
Memory location X
Memory location Y
Use the MARIE Simulator to run the above program (MarieDP1 or MarieSim), to show the changes in the registers (AC, IR, MAR, MBR, PC); Take a snapshot that shows these registers after the execution of the program
Attachments:
Answers
Answered by
0
Answer:
it's not possible to me
Similar questions
Math,
6 months ago
Accountancy,
6 months ago
Hindi,
6 months ago
English,
11 months ago
Math,
1 year ago