Past-paper question · 2021 May-June · Paper 11 · Q3(c)(i)

Question 3(c)(i) 2021 · May-June · Paper 11 · 1 mark

Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Original past-paper question for 3(C)(I)
Reveal official mark-scheme answer

Official answer for Question 3

Part (c)

(i)

✓
1100 1001

Question 1

Mark scheme 9608_s21_ms_11.pdf →

Show text version of question

Question 3

Part (c)

(i)

Question 3

The 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 Explanation Op code Operand LDD <address> Direct addressing. Load the content of the location at the given address to ACC. LDI <address> Indirect addressing. The address to be used is at the given address. Load the contents of this second address to ACC. DEC <register> Subtract 1 from the contents of the register (ACC or IX). CMP <address> Compare the contents of ACC with the contents of <address>. JMP <address> Jump to the given address. JPE <address> Following a compare instruction, jump to <address> if the compare was True. STO <address> Store the contents of ACC at the given address. END Return control to the operating system.

The current contents of the main memory are:

Address Instruction 100 LDD 200 101 CMP 201 102 JPE 106 103 DEC ACC 104 STO 200 105 JMP 101 106 END

…

200 2 201 0 202 200

Question 7

Each instruction in the assembly language program is encoded in 16 bits (8-bit op code followed by an 8-bit operand).

(i)

The instruction CMP 201 has the operand 201.

Convert the operand 201 into 8-bit binary.

[1]
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_s21_qp_11.pdf

Keep practising this topic