Prev: 28143 Up: Map Next: 28220
28211: Select a special PLAYTIME occasionally
Used by the routine at 63749. Three times out of eight, this routine returns with the identifier of a 'special' playtime (243, 244 or 245) in A; the rest of the time it returns with A holding the PLAYTIME identifier from the main timetable.
Input
A Random number
DE Address of the main timetable entry
28211 AND 7 A=random number between 238 and 245
28213 ADD A,238
28215 CP 243 Return if A is 243, 244, or 245 (one of the 'special' playtimes)
28217 RET NC
28218 LD A,(DE) Otherwise return with A holding the PLAYTIME identifier from the main timetable
28219 RET
Prev: 28143 Up: Map Next: 28220