Past-paper question · 2018 October-November · Paper 13 · Q2(a)

Question 2(a) 2018 · October-November · Paper 13 · 2 marks

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

Official answer for Question 2

Part (a)

Question 1

mark per bullet point

Question 2

✓
Relative addressing:
  • A number (the offset) is added to the base address to give the actual
✓
address
✓
Indexed addressing:
  • The contents of the index register are added to operand to give the actual
✓
address

Mark scheme 9608_w18_ms_13.pdf →

Show text version of question

Question 2

Part (a)

Question 2

The following 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 Direct addressing. Load the contents of the location at the given address LDD <address> to ACC. Indexed addressing. Form the address from <address> + the contents of LDX <address> the Index Register. Copy the contents of this calculated address to ACC. LDR #n Immediate addressing. Load the number n to IX. 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>. Following compare instruction, jump to <address> if the compare was JPE <address> True. Following compare instruction, jump to <address> if the compare was JPN <address> False. JMP <address> Jump to the given address. OUT Output to the screen the character whose ASCII value is stored in ACC. END Return control to the operating system.

Part (a)

State what is meant by relative addressing and indexed addressing.

Relative addressing ...................................................................................................................

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

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

Indexed addressing ...................................................................................................................

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

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

[2]

Question 5

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_w18_qp_13.pdf

Keep practising this topic