![]() |
Routines |
| Prev: C63D | Up: Map | Next: C661 |
|
Plays a tune. Each note is a byte, with the note in bits 0 to 5 (00 is a rest) and the length of the note minus one in bits 6 and 7. The tune ends with FF.
The tunes played by this routine are:
|
||||||||||||||||||||||
|
Play each note until FF.
|
||||||||||||||||||||||
| PlayMusic | C656 | LD A,(DE) | Fetch the next note. | |||||||||||||||||||
| C657 | CP $FF | Jump to PlayMusic_Return if it is FF. | ||||||||||||||||||||
| C659 | JR Z,PlayMusic_Return | |||||||||||||||||||||
| C65B | CALL PlayNote | Call PlayNote. | ||||||||||||||||||||
| C65E | JR PlayMusic | Jump to PlayMusic. | ||||||||||||||||||||
|
This entry point is used by the routine at PlayMusicOnce.
|
||||||||||||||||||||||
| PlayMusic_Return | C660 | RET | Return. | |||||||||||||||||||
|
View the equivalent code in;
|
||||||||||||||||||||||
| Prev: C63D | Up: Map | Next: C661 |