Prev: 63734 Up: Map Next: 63767
63749: Collect the identifier for the next lesson
Used by the routine at 26342. Returns with A holding the identifier (224-255) for the next lesson. If the next lesson is PLAYTIME, one of the 'special' PLAYTIMEs (243, 244 or 245) may be chosen in place of the main timetable entry.
Input
E Lesson number (0-63)
63749 LD D,254 Pick up the lesson identifier (224-255) from the main timetable
63751 LD A,(DE)
63752 CP 243 Is it PLAYTIME (243-255)?
63754 RET C Return if not
63755 LD A,(32746) 32746 holds the game mode indicator
63758 AND A Set the zero flag if we're in demo mode
63759 LD A,(DE) Restore the lesson identifier to A and return if we're in demo mode
63760 RET Z
63761 CALL 24993 A=random number
63764 JP 28211 Select a 'special' PLAYTIME occasionally
Prev: 63734 Up: Map Next: 63767