Question 7(d) 2018 · May-June · Paper 32 · 8 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Show text version of question
Question 7
Part (d)
Question 7
Question 6
Question 5
Question 4
Question 3
Question 2
Question 1
0 Byte 1 Byte 2 The fish tank number is indicated by setting one of the bits in Byte 1 to 1. For example, fish tank number 5 is indicated by setting bit 5 to 1. Bit 7 of Byte 1 is a flag: • the flag’s initial value is zero • when the reading has been processed, the flag’s value is set to 1 Bit 0 of Byte 1 is unused. Byte 2 contains the temperature reading as a two’s complement integer.
(i)
After a temperature reading has been taken, the bytes contain the following data.
Question 7
Question 6
Question 5
Question 4
Question 3
Question 2
Question 1
0 0 0 0 0
Question 1
0 0 0 0 0 0 0
Question 1
0
Question 1
Question 1
Byte 1 Byte 2 Analyse the data contained in the two bytes. ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... ........................................................................................................................................... .......................................................................................................................................[3]
Question 12
(ii)
The system receives a temperature reading of − 2 from fish tank number 4. Complete the bytes to show the values for this reading after it has been processed.
Question 7
Question 6
Question 5
Question 4
Question 3
Question 2
Question 1
0 Byte 1 Byte 2
Part (d)
A hardware device to affect the temperature of each tank is on or off depending on the value
of a bit in memory location 6753. If bit 4 is 1, then the hardware device in fish tank 4 is on. Write assembly language instructions to set bit 4 of memory location 6753 to 1 without changing any other bits. Use the instruction set provided. ................................................................................................................................................... ................................................................................................................................................... ................................................................................................................................................... ...............................................................................................................................................[3] Instruction set Instruction Explanation Op code Operand LDD <address> Direct addressing. Load the contents of the location at the given address to ACC. STO <address> Store the contents of ACC at the given address. AND #n Bitwise AND operation of the contents of ACC with the operand. AND <address> Bitwise AND operation of the contents of ACC with the contents of <address>. XOR #n Bitwise XOR operation of the contents of ACC with the operand. OR #n Bitwise OR operation of the contents of ACC with the operand. OR <address> Bitwise OR operation of the contents of ACC with the contents of <address>. <address> can be an absolute address or a symbolic address. 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 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
87% 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_s18_qp_32.pdf
