![]() |
Routines |
| Prev: 49997 | Up: Map | Next: 50090 |
|
Used by the routine at UpdateEndingGhost.
Plays a tone that is one step lower every time it is called. It is played for the ghosts of the ending (see UpdateEndingGhost).
|
||||
| PlayEndingGhostSound | 50077 | LD HL,48121 | Point at the counter that holds the pitch of the sound. | |
| 50080 | INC (HL) | Raise it, so that the sound falls in pitch each time. | ||
| 50081 | LD A,(HL) | Fetch the counter. | ||
| 50082 | ADD A,64 | Add 64 to make the pitch higher than the lowest. | ||
| 50084 | LD B,A | Set the pitch. | ||
| 50085 | LD C,12 | Set the length of the tone. | ||
| 50087 | JP PlayTone | Jump to PlayTone to play the tone. | ||
|
View the equivalent code in;
|
||||
| Prev: 49997 | Up: Map | Next: 50090 |