Past-paper question · 2016 October-November · Paper 12 · Q5(a)(ii)

Question 5(a)(ii) 2016 · October-November · Paper 12 · 2 marks

Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Original past-paper question for 5(A)(II)
Reveal official mark-scheme answer Official mark-scheme answer for 5(A)(II)

Official answer for Question 5

Part (a)

(ii)

(ii)

ONE mark for Accumulator contents, ONE mark for the explanation.

Question 1

✓
0

Question 1

Question 1

✓
0
✓
0
✓
0

Question 1

✓
•
✓
Index Register holds the value 4; 101 + 4 = 105 so load data from address 105
[2]

Mark scheme 9608_w16_ms_12.pdf →

Show text version of question

Question 5

Part (a)

(ii)

Question 5

The table shows assembly language instructions for a processor that has one general purpose

register, the Accumulator (ACC) and an index register (IX).

Instruction Explanation Op Code Operand Direct addressing. Load the contents of the given address to LDD <address> ACC. Index addressing. Form the address from <address> + LDX <address> the contents of the index register. Copy the contents of this calculated address to ACC. Indirect addressing. The address to be used is at the given LDI <address> address. Load the contents of this second address to ACC.

STO <address> Store the contents of ACC at the given address.

INC <register> Add 1 to contents of the register (ACC or IX).

ADD <address> Add the contents of the given address to the ACC.

END Return control to the operating system.

The diagram shows the contents of a section of main memory:

Main memory

100 0000 0010 101 1001 0011 102 0111 0011 103 0110 1011 104 0111 1110 105 1011 0001 106 0110 1000 107 0100 1011

…

200 1001 1110

Question 7

(ii)

Show the contents of the Accumulator after the execution of the instruction:

LDX 101

IX: 0 0 0 0 0 1 0 0

ACC:

Explain how you arrived at your answer.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.......................................................................................................................................[2]

Topic relevance

Why this question appears here

98% assigned-topic match · Processor fundamentals › Assembly language

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_w16_qp_12.pdf

Keep practising this topic