| Routines

FA10: Check whether MR CREAK is near a blackboard last written on by ERIC

Used by the routine at F6D7. Returns with the zero flag set if MR CREAK is near a blackboard that was last written on by ERIC.
Input
H | 0xA6 (MR CREAK)
FA10 | CALL $7128 | A=identifier of the blackboard nearest to CREAK
FA13 | CP $EC | Is CREAK on the top floor?
FA15 | JR NZ,$FA1B | Jump if not
FA17 | INC L | L=0x62 (which byte holds CREAK's x-coordinate)
FA18 | BIT 6,(HL) | Return with the zero flag reset if CREAK's x-coordinate is >= 64, i.e. he's standing at the doorway of the (blackboardless) Map Room (which never happens, because CREAK never teaches in that room)
FA1A | RET NZ
FA1B | INC A | DE=7FED (Reading Room blackboard) or 7FEF (White Room blackboard)
FA1C | LD E,A
FA1D | LD D,$7F
FA1F | LD A,(DE) | A=number of the character who last wrote on this board
FA20 | CP $AC | Set the zero flag if it was ERIC
FA22 | RET |