Past-paper question · 2017 May-June · Paper 11 · Q4(b)

Question 4(b) 2017 · May-June · Paper 11 · 3 marks

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

Official answer for Question 4

Part (b)

Question 3

✓
0
✓
0
✓
0
✓
0
✓
0
✓
0
✓
0

Question 1

✓
0
✓
0
✓
0

Question 1

✓
0
✓
0
✓
0

Question 1

✓
0
✓
0
✓
0
✓
0
✓
0

Question 1

Question 1

✓
0
✓
0

Question 1

Question 1

✓
0
✓
0
✓
0
✓
0

Question 1

✓
Both correct op codes

Question 1

✓
Operand 0001 0001

Question 1

✓
Operand 0110 0001

Question 1

Mark scheme 9608_s17_ms_11.pdf →

Show text version of question

Question 4

Part (b)

Question 4

The following table shows part of the instruction set for a processor. The processor has one

general purpose register, the Accumulator (ACC) and an Index Register (IX).

Instruction Op code Op code Explanation Operand (mnemonic) (binary) Immediate addressing. Load the denary number n to LDM #n 0000 0001 ACC. Direct addressing. Load the contents of the location LDD <address> 0000 0010 at the given address to ACC. Indirect addressing. At the given address is the LDI <address> 0000 0101 address to be used. Load the contents of this second address to ACC. Indexed addressing. Form the address from <address> + the contents of the Index Register LDX <address> 0000 0110 (IX). Copy the contents of this calculated address to ACC. LDR #n 0000 0111 Immediate addressing. Load number n to IX. STO <address> 0000 1111 Store the contents of ACC at the given address.

The following diagram shows the contents of a section of main memory and the Index Register (IX).

Part (b)

Each machine code instruction is encoded as 16-bits (8-bit op code followed by an 8-bit

operand).

Write the machine code for the following instructions:

LDM #17

LDX #97

[3]
Topic relevance

Why this question appears here

71% 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_s17_qp_11.pdf

Keep practising this topic