Prev: 72F2 Up: Map Next: 7311
7303: 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 00 to 03
PlayPatternedNoise 7303 ADD A,$02 Add 02 to A.
7305 ADD A,A Double the value.
7306 ADD A,A Double it again to get the number of clicks.
7307 LD C,A That is how many clicks are played.
7308 CPL Invert A.
7309 ADD A,$06 Add 06 to A.
730B AND %00011111 Keep the bits of A that are set in 1F.
730D LD E,A That is the click pattern.
730E JP PlayNoise Jump to PlayNoise.
Prev: 72F2 Up: Map Next: 7311