A simple program is stored in main memory as follows:
address 200: LDA 500
address 201: ADD 501
address 202: STA 502
address 203: HALT
The table below shows the contents of the Program Counter (PC), Memory Address Register (MAR) and Memory Data Register (MDR) during three consecutive fetch cycles. Some values are missing.
Cycle 1: PC (start) = 200, MAR = (i), MDR = (ii), PC (after increment) = 201
Cycle 2: PC (start) = 201, MAR = 201, MDR = ADD 501, PC (after increment) = (iii)
Cycle 3: PC (start) = 202, MAR = (iv), MDR = STA 502, PC (after increment) = 203
(a)Complete the missing value (i), the contents of the MAR in cycle 1.(1)
(b)Complete the missing value (ii), the contents of the MDR in cycle 1.(1)
(c)Complete the missing value (iii), the contents of the PC after cycle 2.(1)
(d)Complete the missing value (iv), the contents of the MAR in cycle 3.(1)
(Total for Question 3 is 4 marks)