![]() |
Routines |
| Prev: 40595 | Up: Map | Next: 40631 |
|
Used by the routine at RunGame.
Plays three rising sweeps of clicks and then the tune at FanfareTune.
|
||||
| PlayFanfare | 40611 | LD C,3 | Set the number of sweeps in C to 3. | |
| PlayFanfare_Sweep | 40613 | LD B,255 | Start the sweep with a length of 255. | |
| PlayFanfare_Click | 40615 | CALL PlayClick | Play a click. | |
| 40618 | DJNZ PlayFanfare_Click | Shorten the length and jump back until the sweep has finished. | ||
| PlayFanfare_Pause | 40620 | DJNZ PlayFanfare_Pause | Pause for a moment. | |
| 40622 | DEC C | Decrease the number of sweeps by one. | ||
| 40623 | JR NZ,PlayFanfare_Sweep | Jump back until all of the sweeps have been played. | ||
| 40625 | LD DE,40639 | Point DE at FanfareTune. | ||
| 40628 | JP PlayMusic | Jump to PlayMusic to play the tune. | ||
| Prev: 40595 | Up: Map | Next: 40631 |