![]() |
Routines |
| Prev: 26710 | Up: Map | Next: 26785 |
|
Used by the routines at TitleScreen and StartGame.
|
||||
|
Level 5 is the mothership level so run at full speed.
|
||||
| DifficultyDelay | 26768 | LD A,(25895) | Return if *Messaging_Header_LevelNumber is equal to 53 (ASCII "5"). | |
| 26771 | CP 53 | |||
| 26773 | RET Z | |||
| 26774 | PUSH BC | Stash BC on the stack. | ||
|
Loop 8*256 times.
|
||||
| 26775 | LD BC,8 | BC=0008. | ||
| DifficultyDelay_Loop | 26778 | DJNZ DifficultyDelay_Loop | Decrease the inner loop counter by one and loop back to DifficultyDelay_Loop until this counter is zero. | |
| 26780 | DEC C | Decrease the outer loop counter by one. | ||
| 26781 | JR NZ,DifficultyDelay_Loop | Jump to DifficultyDelay_Loop until the outer loop counter is zero. | ||
| 26783 | POP BC | Restore BC from the stack. | ||
| 26784 | RET | Return. | ||
| Prev: 26710 | Up: Map | Next: 26785 |