Question 6(c)(i) 2016 · May-June · Paper 32 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (c)
(i)
Part (c)
(i)
Question 1
Question 1
Question 2
Question 2
Question 1
Question 1
Question 2
Question 4
Question 4
Question 4
Question 8
Question 8
Question 1
Question 2
Question 2
Question 8
Show text version of question
Question 6
Part (c)
(i)
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
(i)
Dry run the assembly language code. Start at LOOP and finish when EXIT is reached.
BITREG COUNT VALUE ACC B00001010 0 1
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 9608_s16_qp_32.pdf
