Prev: 7263 Up: Map Next: 7293
7275: Sound the tough attacker's hum
Used by the routine at update_tough_attacker.
Called by update_tough_attacker, the update routine of type $19, each pass. Silent on even passes; otherwise four cycles of half period $13 down to $10 (rising_sweep). With bit 6 of the record's +$16 set it would play three cycles of half period $1E to $1C instead, but only on a pass whose count AND 3 is 0 -- and every even pass has returned already, so that branch can never sound. Bit 6 was never set in the build's sessions; eight calls with it set, recorded for the Sounds page, were all silent.
Input
IX The attacker's record
sound_hum 7275 LD A,(pass_counter) Only on odd passes
7278 AND $01
727A RET Z
727B LD C,$04 Four short cycles, unless bit 6 of +$16
727D LD D,$0F
727F BIT 6,(IX+$16)
7283 JP Z,rising_sweep
7286 LD A,(pass_counter) Otherwise three lower cycles when the pass count AND 3 is 0, which no odd pass gives: never
7289 AND $03
728B RET NZ
728C LD C,$03
728E LD D,$1B
7290 JP rising_sweep
Prev: 7263 Up: Map Next: 7293