Past-paper question · 2016 May-June · Paper 12 · Q9(a)(i)

Question 9(a)(i) 2016 · May-June · Paper 12 · 2 marks

Original past-paper question for 9(A)(I)
Original past-paper question for 9(A)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 9(A)(I)

Official answer for Question 9

Part (a)

(i)

Part (a)

(i)

One mark for the contents of the accumulator and one mark for the reason.

[2]
✓
Accumulator contents: 0100 0101
✓
Reason:
✓
Address is 60
✓
Contents of the index register is 8
✓
And 60 + 8 = 68 in denary gives the address
✓
The contents of which is 0100 0101 in binary.

Mark scheme 9608_s16_ms_12.pdf →

Show text version of question

Question 9

Part (a)

(i)

Question 9

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

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

Instruction Explanation

Op code Operand

LDD <address> Direct addressing. Load the contents of the given address to ACC.

LDX <address> Indexed addressing. Form the address from <address> + the contents of the index register. Copy the contents of this calculated address to ACC. STO <address> Store contents of ACC at the given address.

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

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

DEC <register> Subtract 1 from the contents of the register (ACC or IX).

CMP <address> Compare contents of ACC with contents of <address>.

JPE <address> Following a compare instruction, jump to <address> if the compare was True.

JPN <address> Following a compare instruction, jump to <address> if the compare was False. JMP <address> Jump to the given address.

OUT Output to screen the character whose ASCII value is stored in ACC.

END Return control to the operating system. The diagram shows the current contents of a section of main memory and the index register:

60 0011 0010 61 0101 1101 62 0000 0100 63 1111 1001 64 0101 0101 65 1101 1111 66 0000 1101 67 0100 1101 68 0100 0101 69 0100 0011 ...

Index register: 0 0 0 0 1 0 0 0

Question 13

(i)

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

LDX 60

Accumulator:

Show how you obtained your answer.

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

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

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

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

Topic relevance

Why this question appears here

99% 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_s16_qp_12.pdf

Keep practising this topic