Question: *Show the code used to write the marie program above* Question 4: (15 marks) Suppose that you have the following screenshot from the MARIE simulator:

 *Show the code used to write the marie program above* Question

*Show the code used to write the marie program above*

Question 4: (15 marks) Suppose that you have the following screenshot from the MARIE simulator: M MARIE Simulator Eile Run Stop Step Breakpoints Symbol Map Help label AC hex 5000 1 0000 Hex IR 5000 Hex 100 101 102 103 104 105 106 opcode operand INPUT STORE INPUT STORE Y 2 LOAD OUTPUT HALT DEC DEC 0 5000 2109 9106 MAR 100 DDDDDDDDDE Hex 3 1108 End 6000 MBR 0000 Hex 107 7000 0000 0000 PC 108 109 101 Hex INPUT 5 Dec a) Write the equivalent Hex value of the instruction STORE X (1). b) What is the hidden Instruction that has the Hex value 9106 (2)? c) What is the hidden part of the Instruction that has the Hex value 1108(3)? d) Based on the above screenshot which shows the execution of the first instruction, what will the value of x be? e) Based on above, what will the output if the second entered value was 10? f) Run the whole code on your MARIE simulator and include a screenshot that shows the code used for the Marie program and the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!