Past-paper question · 2016 May-June · Paper 31 · Q6(c)(iii)

Question 6(c)(iii) 2016 · May-June · Paper 31 · 2 marks

Original past-paper question for 6(C)(III)
Original past-paper question for 6(C)(III)
Original past-paper question for 6(C)(III)
Original past-paper question for 6(C)(III)
Original past-paper question for 6(C)(III)
Original past-paper question for 6(C)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 6(C)(III)

Official answer for Question 6

Part (c)

(iii)

(iii)

✓
CMP #8

Question 1

✓
CMP #128

Question 1

Mark scheme 9608_s16_ms_31.pdf →

Show text version of question

Question 6

Part (c)

(iii)

Question 6

An intruder detection system for a large house has four sensors. An 8-bit memory location stores

the output from each sensor in its own bit position.

The bit value for each sensor shows:

  • 1 – the sensor has been triggered
  • 0 – the sensor has not been triggered

The bit positions are used as follows:

Not used Sensor 4 Sensor 3 Sensor 2 Sensor 1

The output from the intruder detection system is a loud alarm. Part of the assembly code is:

Op code Operand SENSORS: B00001010 COUNT: 0 VALUE: 1 LOOP: LDD SENSORS AND VALUE CMP #0 JPE ZERO LDD COUNT INC ACC STO COUNT ZERO: LDD VALUE CMP #8 JPE EXIT ADD VALUE STO VALUE JMP LOOP EXIT: LDD COUNT TEST: CMP … JGT ALARM

Question 15

(iii)

The intruder detection system is improved and now has eight sensors.

One instruction in the assembly language code will need to be amended.

Identify this instruction .......................................................................................................

Write the amended instruction ......................................................................................[2]

Question 16

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.

Topic relevance

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_s16_qp_31.pdf

Keep practising this topic