Skool Daze Routines
64016: Check whether CREAK is near a blackboard last written on by ERIC
Used by the routine at 63191. Returns with the zero flag set if CREAK is near a blackboard that was last written on by ERIC.
H 166 (MR CREAK)
64016 CALL 28968 Get identifier of closest blackboard in A
64019 CP 236 Is CREAK near the Reading Room blackboard?
64021 JR NZ,64027 Jump if not
64023 INC L L=98
64024 BIT 6,(HL) Return with the zero flag reset if CREAK's x-coordinate is >= 64, i.e. he's in the (blackboardless) Map Room
64026 RET NZ
64027 INC A DE=32749 (Reading Room blackboard) or 32751 (White Room blackboard
64028 LD E,A
64029 LD D,127
64031 LD A,(DE) A=number of character who last wrote on this board
64032 CP 172 Set the zero flag if it was ERIC
64034 RET