Skool Daze Routines
63749: Collect identifier for 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-245) may be chosen in place of the main timetable entry.
E Lesson number (0-63)
63749 LD D,254 Pick up the lesson identifier (224-255) in A
63751 LD A,(DE)
63752 CP 243 Is it PLAYTIME (243-255)?
63754 RET C Return if not
63755 LD A,(32746) Set the zero flag if we're in demo mode
63758 AND A
63759 LD A,(DE) Restore the lesson identifier to A and return if we're in demo mode
63760 RET Z
63761 CALL 24993 Get random number in A
63764 JP 28211 Select a "special" PLAYTIME occasionally