Prev: 49430 Up: Map Next: 49462
49442: Routine at C122
Used by the routines at Sounds_StartGame, 49512 and Sounds_Shot.
49442 LD A,C A=C.
49443 XOR E Reset the bits from E.
49444 ADD A,A A+=A.
49445 LD B,A B=A.
49446 AND %00001111 Keep only bits 0-3.
49448 LD D,A D=A.
49449 LD A,B A=B.
49450 AND %00001100 Keep only bits 2-3.
49452 ADD A,8 A+=8.
49454 LD B,A B=A.
49455 CALL Sounds_PlayWave Call Sounds_PlayWave.
49458 DEC C Decrease C by one.
49459 JR NZ,49442 Jump to 49442 until C is zero.
49461 RET Return.
Prev: 49430 Up: Map Next: 49462