Question 3(c)(ii) 2021 · May-June · Paper 11 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 3
Part (c)
(ii)
Question 1
Show text version of question
Question 3
Part (c)
(ii)
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).
(ii)
State the maximum number of op codes that can be represented using eight bits.
.....................................................................................................................................
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_s21_qp_11.pdf
