Prev: 41176 Up: Map Next: 41191
41179: Check Character Schedule
Used by the routine at Game_Initialisation.
Compares HL with the schedule time at IY+6-7.
Input
HL Current game time
Output
F Carry flag is set if the character should be skipped
CheckCharacterSchedule 41179 LD E,(IY+6) Read this character's place in the schedule.
41182 LD D,(IY+7)
41185 LD A,H Read the high byte of the pointer.
41186 CP D See whether the two values match.
41187 RET NZ Return if they differ.
41188 LD A,L Read the low byte of the pointer.
41189 CP E See whether the two values match.
41190 RET Return.
Prev: 41176 Up: Map Next: 41191