Prev: 44686 Up: Map Next: 44713
44696: Play Static
Used by the routine at MakeBulletHole.
Plays a burst of noise by using the first 128 bytes of the ROM as the length of each pulse.
Use the first 128 bytes of the ROM as pulse lengths.
PlayStatic 44696 LD HL,0 Point HL at the start of the ROM.
44699 LD C,128 Set the number of pulses.
Play each pulse.
PlayStatic_Loop 44701 LD A,(HL) Fetch a byte of the ROM.
44702 INC HL Move on to the next byte.
44703 AND %00111111 Keep the bottom six bits.
44705 LD B,A Use them as the length of the pulse.
44706 CALL PlaySquareWave Play the pulse.
44709 DEC C Count down the pulses.
44710 JR NZ,PlayStatic_Loop Loop back until all of the pulses have been played.
44712 RET Return.
Prev: 44686 Up: Map Next: 44713