Prev: 39210 Up: Map Next: 39255
39234: Sound: Menu Tick
Used by the routines at MainMenu and AroundTheClock.
Sound_MenuTick 39234 LD C,0 Set initial speaker state in C to OFF.
39236 LD B,60 Set the repeat loop counter in B to 60.
MenuTick_OuterLoop 39238 LD HL,10 Set the delay loop in HL to 0010.
MenuTick_DelayLoop 39241 DEC HL Decrease the delay loop by one.
39242 LD A,H Jump back to MenuTick_DelayLoop until the delay loop is zero.
39243 OR L
39244 JR NZ,MenuTick_DelayLoop
39246 LD A,C Flip the current speaker state.
39247 XOR %00010000
39249 LD C,A
39250 OUT (254),A Send it to the speaker.
39252 DJNZ MenuTick_OuterLoop Decrease the repeat loop counter by one and loop back to MenuTick_OuterLoop until the repeat loop counter is zero.
39254 RET Return.
Prev: 39210 Up: Map Next: 39255