Prev: 992A Up: Map Next: 9957
9942: Sound: Menu Tick
Used by the routines at MainMenu and AroundTheClock.
Sound_MenuTick 9942 LD C,$00 Set initial speaker state in C to OFF.
9944 LD B,$3C Set the repeat loop counter in B to 3C.
MenuTick_OuterLoop 9946 LD HL,$000A Set the delay loop in HL to 000A.
MenuTick_DelayLoop 9949 DEC HL Decrease the delay loop by one.
994A LD A,H Jump back to MenuTick_DelayLoop until the delay loop is zero.
994B OR L
994C JR NZ,MenuTick_DelayLoop
994E LD A,C Flip the current speaker state.
994F XOR %00010000
9951 LD C,A
9952 OUT ($FE),A Send it to the speaker.
9954 DJNZ MenuTick_OuterLoop Decrease the repeat loop counter by one and loop back to MenuTick_OuterLoop until the repeat loop counter is zero.
9956 RET Return.
Prev: 992A Up: Map Next: 9957