![]() |
Routines |
| Prev: 9E93 | Up: Map | Next: 9EB7 |
|
Used by the routine at RunGame.
Plays three rising sweeps of clicks and then the tune at FanfareTune.
|
||||
| PlayFanfare | 9EA3 | LD C,$03 | Set the number of sweeps in C to 03. | |
| PlayFanfare_Sweep | 9EA5 | LD B,$FF | Start the sweep with a length of FF. | |
| PlayFanfare_Click | 9EA7 | CALL PlayClick | Play a click. | |
| 9EAA | DJNZ PlayFanfare_Click | Shorten the length and jump back until the sweep has finished. | ||
| PlayFanfare_Pause | 9EAC | DJNZ PlayFanfare_Pause | Pause for a moment. | |
| 9EAE | DEC C | Decrease the number of sweeps by one. | ||
| 9EAF | JR NZ,PlayFanfare_Sweep | Jump back until all of the sweeps have been played. | ||
| 9EB1 | LD DE,$9EBF | Point DE at FanfareTune. | ||
| 9EB4 | JP PlayMusic | Jump to PlayMusic to play the tune. | ||
| Prev: 9E93 | Up: Map | Next: 9EB7 |