Prev: C17A Up: Map Next: C1A8
C18C: Routine at C18C
C18C LD A,$18 A=18.
C18E LD L,$01 L=01.
C190 EX AF,AF' Exchange the AF register with the shadow AF register.
C191 LD DE,$01FF DE=01FF.
C194 PUSH DE Stash DE on the stack.
C195 CALL Sounds_PlaySquareWave_Loop Call Sounds_PlaySquareWave_Loop.
C198 POP DE Restore DE from the stack.
C199 LD A,E E-=L.
C19A SUB L
C19B LD E,A
C19C JR NC,$C194 Jump to C194 if the result is non-negative.
C19E LD A,$04 L+=04.
C1A0 ADD A,L
C1A1 LD L,A
C1A2 EX AF,AF' Exchange the AF register with the shadow AF register.
C1A3 DEC A Decrease A by one.
C1A4 JR NZ,$C190 Jump to C190 if A is not zero.
C1A6 DI Disable interrupts.
C1A7 RET Return.
Prev: C17A Up: Map Next: C1A8