![]() |
Routines |
| Prev: A1B2 | Up: Map | Next: A1CC |
|
Plays a piece of music. Each byte of the music is a note, or FF at the end. Bits 0-5 of a note are its number in the table at NoteTable (00 for a rest). Bits 6-7 are not used.
The tunes played by this routine are:
|
||||||||||||||||||
| PlayMusic | A1C1 | LD A,(DE) | Fetch the next byte of the music. | |||||||||||||||
| A1C2 | CP $FF | Jump to PlayMusic_Return if the music has ended. | ||||||||||||||||
| A1C4 | JR Z,PlayMusic_Return | |||||||||||||||||
| A1C6 | CALL PlayNote | Play the note. | ||||||||||||||||
| A1C9 | JR PlayMusic | Jump back for the next note. | ||||||||||||||||
|
This entry point is used by the routine at PlayMusic_WaitKey.
|
||||||||||||||||||
| PlayMusic_Return | A1CB | RET | Return. | |||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||||
| Prev: A1B2 | Up: Map | Next: A1CC |