Past-paper question · 2015 October-November · Paper 31 · Q4(a)

Question 4(a) 2015 · October-November · Paper 31 · 4 marks

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

Official answer for Question 4

Part (a)

Part (a)

✓
Register
✓
Instruction
✓
ACC
✓
Index Register
✓
(IX)
[1]
✓
LIX 400

Question 3

[1]
✓
LDD 401
✓
616
[1]
✓
LDI 401

Question 96

[1]
✓
LDX 401

Question 63

✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International A Level – October/November 2015
✓
9691

Question 31

Mark scheme 9691_w15_ms_31.pdf →

Show text version of question

Question 4

Part (a)

The following table shows some assembly language instructions from the computer’s instruction set.

Instruction Explanation Op code Operand

Direct addressing. Load the contents of the given address to the LDD <address> Accumulator (ACC) Indirect addressing. The address to be used is at the given address. LDI <address> Load the contents of this second address to ACC LIX <address> Load the contents of the address to the Index Register (IX) Indexed addressing. Form the address from <address> + the LDX <address> contents of IX. Copy the contents of this calculated address to ACC

The test program shown in memory locations 300 onwards is to Address be executed. (denary) Main memory Shown are: 300 LIX 400

  • the first four instructions only of this program
  • other memory locations which contain data accessed by 301 LDD 401

the program 302 LDI 401

Complete the trace table below for the first four program 303 LDX 401 instructions.

Register . . . . Instruction ACC Index Register (IX) 400 3

401 616 LIX 400 402 99 LDD 401 403 217 LDI 401 404 63 . . . .

LDX 401

616 96

617 13

[4]

Question 9

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 9691_w15_qp_31.pdf

Keep practising this topic