Past-paper question · 2016 May-June · Paper 32 · Q6(c)(i)

Question 6(c)(i) 2016 · May-June · Paper 32 · 4 marks

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

Official answer for Question 6

Part (c)

(i)

Part (c)

(i)

✓
BITREG
✓
COUNT
✓
VALUE
✓
ACC
✓
Mark as
✓
follows:
✓
B00001010
✓
0

Question 1

✓
B00001010
✓
B00000000
✓
1 mark for:

Question 1

✓
COUNT

Question 2

Question 2

✓
column
✓
B00001010
✓
VALUE
✓
B00000010
✓
column
✓
0
✓
First two

Question 1

Question 1

✓
values in
✓
ACC

Question 2

✓
column

Question 4

Question 4

✓
Rest of
✓
B00001010
✓
ACC
✓
B00000000
✓
column

Question 4

Question 8

Question 8

✓
B00001010
✓
B00001000

Question 1

Question 2

Question 2

Question 8

Mark scheme 9608_s16_ms_32.pdf →

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

[4]
Topic relevance

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

Keep practising this topic