![]() |
Routines |
| Prev: B451 | Up: Map | Next: B4A9 |
|
Used by the routine at GameMenu.
Plays a tune, but only if this routine has not played one before. Bit 0 of TunePlayedFlag is set the first time and nothing clears it. The tune stops when a key is pressed (see PlayMusic_WaitKey).
|
||||||||
|
Play only if TunePlayedFlag is clear.
|
||||||||
| PlayMusicOnce | B4A1 | LD HL,$5B31 | Point HL at TunePlayedFlag. | |||||
| B4A4 | LD A,(HL) | Return if TunePlayedFlag is set. | ||||||
| B4A5 | AND A | |||||||
| B4A6 | RET NZ | |||||||
| B4A7 | SET 0,(HL) | Set bit 0 of TunePlayedFlag. | ||||||
|
Continue on to PlayMusic_WaitKey.
View the equivalent code in;
|
||||||||
| Prev: B451 | Up: Map | Next: B4A9 |