![]() |
Routines |
| Prev: B4A9 | Up: Map | Next: B4C5 |
|
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 | B4BA | LD A,(DE) | Fetch the next note. | |||||||||||||
| B4BB | CP $FF | Jump to PlayMusic_End if it is FF. | ||||||||||||||
| B4BD | JR Z,PlayMusic_End | |||||||||||||||
| B4BF | CALL PlayNote | Call PlayNote. | ||||||||||||||
| B4C2 | JR PlayMusic | Jump to PlayMusic. | ||||||||||||||
|
This entry point is used by the routine at PlayMusic_WaitKey.
|
||||||||||||||||
| PlayMusic_End | B4C4 | RET | Return. | |||||||||||||
|
View the equivalent code in;
|
||||||||||||||||
| Prev: B4A9 | Up: Map | Next: B4C5 |