Prev: 9E01 Up: Map Next: 9E75
9E5C: Sound FX command 7
Noise. When mines appear. Generates $FD, $F5, $ED, $E5, ..., and up again.
Input
B Channel index + 1
IX Sound fx data
sound_fx_command_7 9E5C LD A,(IX+$02) Get byte 2 (starts with $00)
9E5F ADD A,(IX+$03) Add byte 3 (starts with $FC = -4)
9E62 JR Z,current_sound_fx_done If zero then sound FX done
9E64 CP $30 If >= $30
9E66 JR NC,sound_fx_command_7_0 Then skip next
9E68 LD (IX+$03),$04 Byte 3 = 4
sound_fx_command_7_0 9E6C LD (IX+$02),A Byte 2 = byte 2 + byte 3 from before
9E6F OR $05 Set bits 0 and 3
9E71 LD (IX+$04),A Save in attenuation/noise control
9E74 RET
Prev: 9E01 Up: Map Next: 9E75