Prev: 46161 Up: Map Next: 46173
46164: Play Sound From Value
Plays six cycles of a tone whose pitch is worked out from the value in A.
Input
A Value that the pitch is made from
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