![]() |
Routines |
| Prev: 46652 | Up: Map | Next: 46666 |
|
Used by the routines at HandleEndingRobotBottom, PlaySoundFromXPosition, PlaySoundFromYPosition and PlaySoundFromPosition.
Plays six beeps of a tone whose pitch is worked out from the value in A. PlaySoundFromHeight uses the height, PlaySoundFromXPosition the x position, PlaySoundFromYPosition the y position and PlaySoundFromPosition the sum of the three coordinates.
|
||||||||
|
Turn the value into a pitch and play six beeps.
|
||||||||
| PlaySoundFromHeight_PlaySoundFromValue | 46655 | ADD A,64 | Add 64. | |||||
| 46657 | CPL | Invert it. | ||||||
| 46658 | RLCA | Rotate it twice. | ||||||
| 46659 | RLCA | |||||||
| 46660 | LD B,A | Keep the pitch in B. | ||||||
| 46661 | LD C,6 | Set the number of beeps to 6. | ||||||
| 46663 | JP PlayWaveSequence | Jump to PlayWaveSequence. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 46652 | Up: Map | Next: 46666 |