Prev: A3E5 Up: Map Next: A3FE
A3EF: Sound $64 (being caught), one frame of it
Called once a frame while the sound lasts. The pitch is taken from however much of the countdown is left, so the note slides as it plays rather than holding steady, and the same handler gives a different sweep for a different starting count.
Input
IX The sound's record
SOUND_CAUGHT A3EF DEC (IX+$01) One frame less to go; at zero the sound is over.
A3F2 JR Z,END_SOUND
A3F4 LD A,(IX+$01) What is left of the count is how many cycles to sound.
A3F7 LD C,A
A3F8 XOR $43 And, folded about $43, the pitch -- so it glides.
A3FA LD B,A
A3FB JP BEEP_BC Into BEEP, entered below its own first instruction so the cycle count survives.
Prev: A3E5 Up: Map Next: A3FE