Prev: 29426 Up: Map Next: 29457
29443: Play Patterned Noise
Used by the routine at UpdateCrystalStack.
Plays noise for which the number of clicks and the pattern depend on a number.
Input
A Number from 0 to 3
PlayPatternedNoise 29443 ADD A,2 Add 2 to A.
29445 ADD A,A Double the value.
29446 ADD A,A Double it again to get the number of clicks.
29447 LD C,A That is how many clicks are played.
29448 CPL Invert A.
29449 ADD A,6 Add 6 to A.
29451 AND %00011111 Keep the bits of A that are set in 31.
29453 LD E,A That is the click pattern.
29454 JP PlayNoise Jump to PlayNoise.
Prev: 29426 Up: Map Next: 29457