| Routines

6E33: Select a special PLAYTIME occasionally

Used by the routine at F905. Three times out of eight, this routine returns with the identifier of a 'special' playtime (0xF3, 0xF4 or 0xF5) 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
6E33 | AND $07 | A=random number between 0xEE and 0xF5
6E35 | ADD A,$EE
6E37 | CP $F3 | Return if A is 0xF3, 0xF4, or 0xF5 (one of the 'special' playtimes)
6E39 | RET NC
6E3A | LD A,(DE) | Otherwise return with A holding the PLAYTIME identifier from the main timetable
6E3B | RET