![]() |
Routines |
| Prev: 39562 | Up: Map | Next: 39593 |
|
Used by the routine at ShowTitleScreen.
Plays a tune made of notes, which ends with 255. The tune stops as soon as a key is pressed.
|
||||||||
| PlayMusic_WaitKey | 39578 | XOR A | Select every keyboard row. | |||||
| 39579 | CALL ReadKeyboardPort | Read the keyboard. | ||||||
| 39582 | RET NZ | Return if a key is pressed. | ||||||
| 39583 | LD A,(DE) | Fetch a note. | ||||||
| 39584 | CP 255 | Jump to PlayMusic_Return if it is the end of the tune. | ||||||
| 39586 | JR Z,PlayMusic_Return | |||||||
| 39588 | CALL PlayNote | Play the note. | ||||||
| 39591 | JR PlayMusic_WaitKey | Jump back to PlayMusic_WaitKey for the next note. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 39562 | Up: Map | Next: 39593 |