Question 4(a) 2016 · May-June · Paper 13 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 4
Part (a)
Part (a)
11001110
Show text version of question
Question 4
Part (a)
Question 4
The 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
LDD <address> Direct addressing. Load the contents of the given address to ACC. Indexed addressing. Form the address from <address> + the contents of the LDX <address> index register. Copy the contents of this calculated address to ACC. 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>.
JPE <address> Following a compare instruction, jump to <address> if the compare was True.
JPN <address> Following a compare instruction, jump to <address> if the compare was False.
JMP <address> Jump to the given address.
OUT Output to screen the character whose ASCII value is stored in ACC.
END Return control to the operating system.
The diagram shows the contents of the index register:
Index register: 1 1 0 0 1 1 0 1
Part (a)
Show the contents of the index register after the execution of the instruction:
INC IX
Index register:
Question 6
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_s16_qp_13.pdf
