Prev: D64E Up: Map Next: D673
D665: Play Object Sound
Never used. Makes a tone of a pitch that depends on the type of an object.
Input
IX Object record
PlayObjectSound D665 LD A,(IX+$00) Fetch the type of the object.
D668 CPL Invert it.
D669 RRCA Rotate it so that its lowest three bits are in bits 5 to 7.
D66A RRCA
D66B RRCA
D66C AND %11100000 Keep only those bits.
D66E LD B,A Put the pitch in B.
D66F LD C,$06 Set the length of the tone to six cycles.
D671 JR PlayWaveSequence Jump to PlayWaveSequence to make the tone.
View the equivalent code in;
Prev: D64E Up: Map Next: D673