Prev: 64780 Up: Map Next: 64802
64784: Play Menu Music Pulse Tail
Used by the routine at Play_MenuMusicTick.
Continuation of the Play_MenuMusic_PulseLoop tone loop when the fine delay is still non-zero. The opening JR Z is a never-taken timing pad (entry always has the zero flag clear).
Play_MenuMusic_PulseTail 64784 JR Z,Play_MenuMusic_PulseTail Never-taken timing pad (JR Z). Fall through with the zero flag clear.
Finish the fine-delay tail and return to the main pulse loop.
Play_MenuMusic_PulseTailBody 64786 EX AF,AF' Switch to the alternate accumulator.
64787 DEC L Decrease the coarse delay in L.
64788 JP Z,Play_MenuMusic_ReloadCoarse If the coarse delay expired, jump to Play_MenuMusic_ReloadCoarse.
This entry point is used by the routine at Play_MenuMusicTick.
Port write used when the coarse delay is still running.
Play_MenuMusic_PulseTailWrite 64791 OUT (254),A Write the speaker level to port 254.
64793 NOP Timing pad before the outer count test.
64794 NOP
64795 DJNZ Play_MenuMusic_PulseLoop Decrease B and loop to Play_MenuMusic_PulseLoop while the outer count remains.
64797 INC C Advance the phase counter in C.
64798 JP NZ,Play_MenuMusic_PulseWrite If the phase remains, jump to Play_MenuMusic_PulseWrite.
64801 RET Return.
Prev: 64780 Up: Map Next: 64802