| Routines

32132: Make a teacher tell the kids to sit down

Used by the teachers' command lists 128, 130, 132 and 134. Makes the teacher tell the kids to sit down; also makes MR CREAK reveal his safe combination letter if he can see his year of birth written on the board.
Input
H | Teacher's character number (163-166)
32132 | CALL 63191 | Make MR CREAK reveal his safe combination letter if appropriate; also set BC=61889 (SILENCE! OR I'LL CANE THE LOT OF YOU)
32135 | LD A,H | A=teacher's character number (163-166)
32136 | SUB 163 | Is it MR WACKER?
32138 | JR Z,32152 | Jump if so
32140 | LD C,89 | BC=61785 (RIGHT! SIT DOWN MY LITTLE CHERUBS)
32142 | DEC A | Is it MR ROCKITT?
32143 | JR Z,32152 | Jump if so
32145 | LD C,123 | BC=61819 (COME ON CHAPS - SETTLE DOWN)
32147 | DEC A | Is it MR WITHIT?
32148 | JR Z,32152 | Jump if so
32150 | LD C,151 | It must be MR CREAK; set BC=61847 (BE QUIET AND SEATED YOU NASTY LITTLE BOYS)
32152 | CALL 32038 | Make the teacher speak
32155 | JP 25256 | Move to the next command in the command list