![]() |
Routines |
| Prev: 46161 | Up: Map | Next: 46173 |
|
Used by the routines at RunGame, PlaySoundFromXPosition, PlaySoundFromYPosition and PlaySoundFromPosition.
Plays six cycles of a tone whose pitch is worked out from the value in A.
|
||||||||
|
Turn the value into a pitch and play six beeps.
|
||||||||
| PlaySoundFromHeight_PlaySoundFromValue | 46164 | CPL | Invert the value. | |||||
| 46165 | RLCA | Multiply it by four to get the pitch. | ||||||
| 46166 | RLCA | |||||||
| 46167 | LD B,A | Set B to the pitch. | ||||||
| 46168 | LD C,6 | Set the number of cycles. | ||||||
| 46170 | JP PlayWaveSequence | Play the tone. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46161 | Up: Map | Next: 46173 |