![]() |
Routines |
| Prev: C0B6 | Up: Map | Next: C0DA |
|
Plays a tune, which cannot be stopped. A tune is a list of notes (see PlayNote) which ends with FF.
The tunes played by this routine are:
|
||||||||||||||||
|
Play each note until FF.
|
||||||||||||||||
| PlayMusic | C0CF | LD A,(DE) | Fetch the next note. | |||||||||||||
| C0D0 | CP $FF | Jump to PlayMusic_Return if it is FF. | ||||||||||||||
| C0D2 | JR Z,PlayMusic_Return | |||||||||||||||
| C0D4 | CALL PlayNote | Play the note using PlayNote. | ||||||||||||||
| C0D7 | JR PlayMusic | Loop back for the next note. | ||||||||||||||
|
This entry point is used by the routine at PlayMusic_WaitKey.
|
||||||||||||||||
| PlayMusic_Return | C0D9 | RET | Return. | |||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: C0B6 | Up: Map | Next: C0DA |