Prev: 63990 Up: Map Next: 64016
64004: Adjust the lesson length and prepare a character for the search for ERIC
Used by the routine at 63374. Before little boy no. 10, MR WACKER or MR ROCKITT goes off to look for ERIC (to deliver a message), the skool clock is adjusted to allow ERIC's chaser enough time to find him before the bell rings.
Input
A 255
H Character number (161, 163, 164)
64004 LD (32760),A Set the MSB of the lesson clock to 255 (so that the character looking for ERIC will have time to find him before the bell rings)
64007 CALL 25108 Update the SRB for the character's current animatory state
64010 LD L,96 Byte 96 of the character's buffer holds his animatory state
64012 AND 250 Adjust the character's animatory state to ensure that he is not midstride
64014 LD (HL),A
64015 RET
Prev: 63990 Up: Map Next: 64016