![]() |
Routines |
| Prev: B63C | Up: Map | Next: B64A |
|
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 | B63F | ADD A,$40 | Add 40. | |||||
| B641 | CPL | Invert it. | ||||||
| B642 | RLCA | Rotate it twice. | ||||||
| B643 | RLCA | |||||||
| B644 | LD B,A | Keep the pitch in B. | ||||||
| B645 | LD C,$06 | Set the number of beeps to 06. | ||||||
| B647 | JP PlayWaveSequence | Jump to PlayWaveSequence. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B63C | Up: Map | Next: B64A |