Question 5(c) 2012 · May-June · Paper 31 · 9 marks
Reveal official mark-scheme answer
Official answer for Question 5
Part (c)
Part (c)
Question 22
Show text version of question
Question 5
Part (c)
Question 5
Question 4
Question 3
Question 2
Question 1
Question 12
5 The table shows the assembly language instructions for a processor which has one general For purpose register – the Accumulator. Examiner's Use
Instruction Explanation Op Code Operand
LDD <address> Load using direct addressing
STO <address> Store the contents of the Accumulator at the given address
LDI <address> Load using indirect addressing
LDX <address> Load using indexed addressing
INC Add 1 to the contents of the Accumulator
END End the program and return to the operating system
Part (c)
Trace this assembly language program using the trace table below. For
Examiner's 500 LDD 507 Use 501 INC 502 STO 509 503 LDD 508 504 INC 505 STO 510 506 END 507 22 508 170 509 0 510 0
Memory Address Accumulator 507 508 509 510 22 170 0 0
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 9691_s12_qp_31.pdf
