Question 3(b) 2016 · October-November · Paper 42 · 12 marks
Reveal official mark-scheme answer

Official answer for Question 3
Part (b)
Part (b)
1 mark per line
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 1
Question 42
Show text version of question
Question 3
Part (b)
Part (b)
Complete the program using op codes from the given instruction set.
Op Label Operand Comment code START: // initialise index register to zero // get first character of WORD // ensure it is in upper case using MASK1 // output character to screen // increment index register // load 1 into ACC // store in COUNT LOOP: // load next character from indexed address WORD // make lower case using MASK2 // output character to screen // increment COUNT starts here
// is COUNT = LENGTH ? // if FALSE, jump to LOOP // end of program COUNT: MASK1: // bit pattern for upper case MASK2: // bit pattern for lower case LENGTH: 4 WORD: B01100110 // ASCII code in binary for 'f' B01110010 // ASCII code in binary for 'r' B01000101 // ASCII code in binary for 'E' B01000100 // ASCII code in binary for 'D'
Question 14
Question 4 begins on page 15.
Question 15
Why this question appears here
82% assigned-topic match · Programming › Constructs
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_w16_qp_42.pdf
