Question 7(b) 2015 · May-June · Paper 13 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (b)
Part (b)
Question 49
Question 36
Question 36
Question 37
Question 37
Question 49
Question 50
Question 50
Show text version of question
Question 7
Part (b)
Question 7
The table shows assembly language instructions for a processor which has one general purpose
register, the Accumulator (ACC).
Instruction Explanation Op code Operand
LDD <address> Direct addressing. Load contents of given address to ACC
STO <address> Store the contents of ACC at the given address
Indirect addressing. The address to be used is at the given LDI <address> address. Load the contents of this second address to ACC
Indexed addressing. Form the address from <address> + LDX <address> the contents of the index register. Copy the contents of this calculated address to ACC
INC <register> Add 1 to contents of the register (ACC)
JMP <address> Jump to the given address
END Return control to operating system
The diagram shows the contents of the memory.
Main memory
120 0000 1001
121 0111 0101
122 1011 0110
123 1110 0100
124 0111 1111
125 0000 0001
126 0100 0001
127 0110 1001
200 1000 1000
Question 15
Part (b)
Trace the assembly language program using the trace table.
300 LDD 321 301 INC 302 STO 323 303 LDI 307 304 INC 305 STO 322 306 END 307 320
320 49 321 36 322 0 323 0
Trace table:
Memory address Accumulator
49 36 0 0
effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.
To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.
Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.
Why this question appears here
76% 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_s15_qp_13.pdf
