Prev: 9903 Up: Map Next: 9942
992A: Control Code 07:
ControlCode_07 992A PUSH BC Stash BC on the stack.
992B LD C,$00 Set initial speaker state in C to OFF.
992D LD B,$14 Set the repeat loop counter in B to 14.
ControlCode_07_OuterLoop 992F LD HL,$0014 Set the delay loop in HL to 0014.
ControlCode_07_DelayLoop 9932 DEC HL Decrease the delay loop by one.
9933 LD A,H Jump back to ControlCode_07_DelayLoop until the delay loop is zero.
9934 OR L
9935 JR NZ,ControlCode_07_DelayLoop
9937 LD A,C Flip the current speaker state.
9938 XOR %00010000
993A LD C,A
993B OUT ($FE),A Send it to the speaker.
993D DJNZ ControlCode_07_OuterLoop Decrease the repeat loop counter by one and loop back to ControlCode_07_OuterLoop until the repeat loop counter is zero.
993F JP ControlCode_Return_2 Jump to ControlCode_Return_2.
Prev: 9903 Up: Map Next: 9942