Question 5(b) 2016 · October-November · Paper 12 · 6 marks
Reveal official mark-scheme answer

Official answer for Question 5
Part (b)
Part (b)
ONE mark for each correct row.
Question 28
Question 41
Question 28
Question 29
Question 29
Question 41
Question 70
Question 70
Question 12
Show text version of question
Question 5
Part (b)
Question 5
The table shows assembly language instructions for a processor that has one general purpose
register, the Accumulator (ACC) and an index register (IX).
Instruction Explanation Op Code Operand Direct addressing. Load the contents of the given address to LDD <address> ACC. Index addressing. Form the address from <address> + LDX <address> the contents of the index register. Copy the contents of this calculated address to ACC. Indirect addressing. The address to be used is at the given LDI <address> address. Load the contents of this second address to ACC.
STO <address> Store the contents of ACC at the given address.
INC <register> Add 1 to contents of the register (ACC or IX).
ADD <address> Add the contents of the given address to the ACC.
END Return control to the operating system.
The diagram shows the contents of a section of main memory:
Main memory
100 0000 0010 101 1001 0011 102 0111 0011 103 0110 1011 104 0111 1110 105 1011 0001 106 0110 1000 107 0100 1011
…
200 1001 1110
Question 7
Part (b)
Complete the trace table below for the following assembly language program.
800 LDD 810
801 INC ACC
802 STO 812
803 LDD 811
804 ADD 812
805 STO 813
806 END
…
810 28 811 41 812 0 813 0
Trace table:
Memory address ACC
28 41 0 0
Question 9
Why this question appears here
86% 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_w16_qp_12.pdf
