Question 7(d)(ii) 2021 · May-June · Paper 33 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (d)
(ii)
Question 3
Show text version of question
Question 7
Part (d)
(ii)
Question 7
Four shipping containers are used to store goods on the dockside at a port. The temperature
inside each container should be kept between 5 and 8 degrees Celsius inclusive. Each container has a temperature sensor.
- turning on the heater and turning off the air conditioning unit when the temperature falls below
- turning off the heater and turning on the air conditioning unit when the temperature rises
5 degrees
above 8 degrees. The following table shows assembly language instructions for the container computer system that has one general purpose register, the Accumulator (ACC).
Instruction Explanation Label Op code Operand LDM &n Load the hexadecimal number n to ACC Load the contents of the location at the given LDD <address> address to ACC Store the contents of ACC at the given STO <address> address Bitwise AND operation of the contents of ACC AND &n with the hexadecimal number n Bits in ACC are shifted denary number n LSL #n places to the left. Zeros are introduced at the right hand end Compare the contents of ACC with the CMP &n hexadecimal number n Following a compare instruction, jump to JPE <address> <address> or <label> if the compare was True <label>: <op code> <operand> Labels an instruction
If the bit for a container’s heater and the bit for the same container’s air conditioning unit are both set to 1, a routine at label ERROR is executed. This routine has not been provided.
(ii)
Write the assembly language instructions to check for an error in the container 4 system.
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
.....................................................................................................................................
Question 16
reasonable 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 Assessment International Education Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cambridgeinternational.org after the live examination series.
Cambridge Assessment International Education is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of the University of Cambridge Local Examinations Syndicate (UCLES), which itself is 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_s21_qp_33.pdf
