Prev: 41586 Up: Map Next: 41892
41856: Messaging: Around The Clock Timer
Used by the routine at InterruptRoutine.
Print the current timer value.
Messaging_AroundTheClock_Timer 41856 CALL PrintString_Loop Call PrintString_Loop.
41859 DEFB 16,7 INK: WHITE.
41861 DEFB 17,0 PAPER: BLACK.
41863 DEFB 18,1 FLASH: ON.
41865 DEFB 22,11,3 PRINT AT: 11, 3.
AroundTheClock_Timer 41868 DEFM "00" "00".
41870 DEFB 255 Terminator.
Note; this is identical to Sound_MenuTick.
41871 LD C,0 Set initial speaker state in C to OFF.
41873 LD B,60 Set the repeat loop counter in B to 60.
AroundTheClock_Timer_OuterLoop 41875 LD HL,10 Set the delay loop in HL to 0010.
AroundTheClock_Timer_DelayLoop 41878 DEC HL Decrease the delay loop by one.
41879 LD A,H Jump back to AroundTheClock_Timer_DelayLoop until the delay loop is zero.
41880 OR L
41881 JR NZ,AroundTheClock_Timer_DelayLoop
41883 LD A,C Flip the current speaker state.
41884 XOR %00010000
41886 LD C,A
41887 OUT (254),A Send it to the speaker.
41889 DJNZ AroundTheClock_Timer_OuterLoop Decrease the repeat loop counter by one and loop back to AroundTheClock_Timer_OuterLoop until the repeat loop counter is zero.
41891 RET Return.
Prev: 41586 Up: Map Next: 41892