![]() |
Routines |
| Prev: 45758 | Up: Map | Next: 45786 |
|
Used by the routines at InitialiseGame and GameCompleted.
Plays a tune, which cannot be stopped. A tune is a list of notes (see PlayNote) which ends with 255.
The tunes played by this routine are:
|
||||||||||||||||||
|
Play each note until 255.
|
||||||||||||||||||
| PlayMusic | 45775 | LD A,(DE) | Fetch the next note. | |||||||||||||||
| 45776 | CP 255 | Jump to PlayMusic_Return if it is 255. | ||||||||||||||||
| 45778 | JR Z,PlayMusic_Return | |||||||||||||||||
| 45780 | CALL PlayNote | Call PlayNote. | ||||||||||||||||
| 45783 | JR PlayMusic | Jump to PlayMusic. | ||||||||||||||||
|
This entry point is used by the routine at PlayMusic_WaitKey.
|
||||||||||||||||||
| PlayMusic_Return | 45785 | RET | Return. | |||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||||
| Prev: 45758 | Up: Map | Next: 45786 |