![]() |
Routines |
| Prev: B253 | Up: Map | Next: B2BE |
|
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).
The tunes played by this routine are:
|
||||||||||||
|
Play only if TunePlayedFlag is clear.
|
||||||||||||
| PlayMusicOnce | B2B6 | LD HL,$5BD1 | Point HL at TunePlayedFlag. | |||||||||
| B2B9 | LD A,(HL) | Return if TunePlayedFlag is set. | ||||||||||
| B2BA | AND A | |||||||||||
| B2BB | RET NZ | |||||||||||
| B2BC | SET 0,(HL) | Set bit 0 of TunePlayedFlag. | ||||||||||
|
Continue on to PlayMusic_WaitKey.
View the equivalent code in;
|
||||||||||||
| Prev: B253 | Up: Map | Next: B2BE |