Question 1: (15 marks) Suppose that you have the following screenshot from the MARIE simulator: M...

Question 1: (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 opcode operand AC 0000 Hex INPUT hex 5000 1 X IR 5000 Hex STORE INPUT STORE y 100 101 102 103 104 105 106 107 MAR 100 Hex 2 - LOAD 3 5000 2109 9106 1108 6000 7000 0000 0000 End MBR 0000 Hex OUTPUT HALT 108 DEC PC 101 Hex x Y o 0 109 DEC 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 the above parts, what will be shown at 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 and the output.
Solved
COMPUTER SCIENCE
1 Answer
Praveen Konijeti

Login to view answer.