![]() |
Routines |
| Prev: 54242 | Up: Map | Next: 54279 |
|
Used by the routine at 54289.
|
||||
| Door_Prep_01 | 54250 | LD HL,52756 | Door_Routine_01 | |
| 54253 | XOR A | Sets A=0 to set the zero flag. | ||
| 54254 | LD B,6 | Loop round six bytes (ie: 3 pointers). If all doors are closed, they will all contain 0000, and the zero flag will be kept. | ||
| Door_Prep_01_0 | 54256 | OR (HL) | ||
| 54257 | INC HL | |||
| 54258 | DJNZ Door_Prep_01_0 | |||
| 54260 | AND A | Are all the doors closed? | ||
| 54261 | POP BC | If not, wind the stack back to do an early return from the calling routine at 51943. | ||
| 54262 | RET NZ | |||
| 54263 | PUSH BC | Redo the stack. | ||
| 54264 | LD HL,55468 | Change the random number seeds, so things happen differently from here on. | ||
| 54267 | INC (HL) | |||
| 54268 | LD DE,1024 | Set up a pause interval (used by the calling routine at 54289). | ||
| 54271 | CALL 54279 | Is the phase complete? | ||
| 54274 | RET NC | No, so return. | ||
| 54275 | POP AF | Wind the stack back to do an early return from the calling routine at Prep_Display_Phase. | ||
| 54276 | POP AF | |||
| 54277 | AND A | Clear the carry flag. | ||
| 54278 | RET | |||
| Prev: 54242 | Up: Map | Next: 54279 |