Routines |
Prev: 6DEF | Up: Map | Next: 6E3C |
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.
|
||||||||||
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 |
Prev: 6DEF | Up: Map | Next: 6E3C |