Prev: 7204 Up: Map Next: 7217
720A: Sound the wreck's debris
Used by the routine at update_debris.
Called by update_debris, the update routine of type $15 (debris), for each piece each pass while the death byte (death_count) is below 10. The piece's path step (+$15, bits 0-5) halved picks the note, so the sound changes as the pieces fly.
The entry at warble is the warble itself, also used by the death sound (sound_death): for A of 16 or more, and for 7 and 8, nothing; otherwise four cycles alternating between two half periods, B = 2 x A + $48 and that XOR $2A.
sound_debris 720A LD A,(death_count) Not once the death byte is 10 or more
720D CP $0A
720F RET NC
7210 LD A,(IX+$15) The piece's path step, halved
7213 AND $3F
7215 RR A
Prev: 7204 Up: Map Next: 7217