GR CHECK Module 4 Exam Style Answers Assembly Language CUP
GR CHECK Module 4 Exam Style Answers Assembly Language CUP
Exam-style Questions
1 a i
(3 for the four arrows, 1 for first one correct, 2 for first two correct)
ii 104 as shown. (1)
Memory addresses
Accumulator
201 202 203 204
0 10 0 204 5
10 4 11
11 9
5
4
9
The addresses are given as 4-bit binary values for illustration of this simple example.
The following are what the author of this chapter in the Teacher Resource would suggest as reasonable
answers with alternatives suggested where appropriate.
a i Accumulator: 0 1 0 0 0 1 0 1
The LDX instruction has an operand, which is an address. The value in the Index Register has to be added
to this value to get the address where the datum to be loaded is stored. So, the index register contains
00001000, which is the binary representation of denary 8. The value in address 68 must be loaded into
the accumulator.
ii Index Register 0 0 0 0 0 1 1 1
b Note that the trace table supplied is slightly unusual in that it includes a column for instruction addresses.
This column must record the sequence of their use and must not include any not used which is the case
for address 58. Instructions such as the one at 55 which results in no value changes have to be included in
the table alongside a blank row.
Cambridge International AS & A Level Computer Science 9608 paper 11 Q9a June 2016