![]() |
Routines |
| Prev: B451 | Up: Map | Next: B45D |
|
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 | B454 | CPL | Invert the value. | |||||
| B455 | RLCA | Multiply it by four to get the pitch. | ||||||
| B456 | RLCA | |||||||
| B457 | LD B,A | Set B to the pitch. | ||||||
| B458 | LD C,$06 | Set the number of cycles. | ||||||
| B45A | JP PlayWaveSequence | Play the tone. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B451 | Up: Map | Next: B45D |