![]() |
Routines |
| Prev: 49334 | Up: Map | Next: 49370 |
|
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 | 49359 | LD A,(DE) | Fetch the next note. | |||||||||||||
| 49360 | CP 255 | Jump to PlayMusic_Return if it is 255. | ||||||||||||||
| 49362 | JR Z,PlayMusic_Return | |||||||||||||||
| 49364 | CALL PlayNote | Play the note using PlayNote. | ||||||||||||||
| 49367 | JR PlayMusic | Loop back for the next note. | ||||||||||||||
|
This entry point is used by the routine at PlayMusic_WaitKey.
|
||||||||||||||||
| PlayMusic_Return | 49369 | RET | Return. | |||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: 49334 | Up: Map | Next: 49370 |