Prev: C116 Up: Map Next: C136
C122: Routine at C122
Used by the routines at Sounds_StartGame, C168 and Sounds_Shot.
C122 LD A,C A=C.
C123 XOR E Reset the bits from E.
C124 ADD A,A A+=A.
C125 LD B,A B=A.
C126 AND %00001111 Keep only bits 0-3.
C128 LD D,A D=A.
C129 LD A,B A=B.
C12A AND %00001100 Keep only bits 2-3.
C12C ADD A,$08 A+=08.
C12E LD B,A B=A.
C12F CALL Sounds_PlayWave Call Sounds_PlayWave.
C132 DEC C Decrease C by one.
C133 JR NZ,$C122 Jump to C122 until C is zero.
C135 RET Return.
Prev: C116 Up: Map Next: C136