Prev: 49442 Up: Map Next: 49475
49462: Sounds: Play Wave
Used by the routines at 49442, 49475 and 49497.
Input
B Play duration
D Delay duration
Flip speaker on (set bit 4).
Sounds_PlayWave 49462 LD A,%00010000 A=16 (speaker on = bit 4).
49464 OUT (254),A
Sounds_PlayWave_Loop 49466 DJNZ Sounds_PlayWave_Loop Decrease counter by one and loop back to Sounds_PlayWave_Loop until counter is zero.
Flip speaker off (unset bit 4).
49468 XOR A Speaker off.
49469 OUT (254),A
49471 LD B,D B=D.
PlayWave_Silence_Loop 49472 DJNZ PlayWave_Silence_Loop Decrease counter by one and loop back to PlayWave_Silence_Loop until counter is zero.
49474 RET Return.
Prev: 49442 Up: Map Next: 49475