Prev: B47D Up: Map Next: B495
B489: Sound: the portcullis lands
Used by the routine at upd_9.
Sixteen blips of two waves each, their pitches read from somewhere in the first 8K -- the ROM -- chosen by the random byte and the frame counter, so each crash sounds different.
Input
IX the portcullis
sound_portcullis_crash B489 LD A,($5BA5) HL = a random address below $2000; 16 blips
B48C LD L,A
B48D LD A,($5BA2)
B490 AND $1F
B492 LD H,A
B493 LD E,$10
Prev: B47D Up: Map Next: B495