Prev: 9DC4 Up: Map Next: 9DE8
9DD7: Sound FX command 2
Tone.
Input
B Channel index + 1
IX Sound fx data
sound_fx_command_2 9DD7 LD A,(IX+$03) Get frequency LSB (starts at $70)
9DDA ADD A,$04 Add 4
9DDC LD (IX+$03),A Save again
9DDF JR Z,current_sound_fx_done If it rolled over then sound fx done
9DE1 AND $04 Else isolate bit 2 of frequency
9DE3 CPL Invert
9DE4 LD (IX+$00),A Save in byte 0 to switch between noise and mute
9DE7 RET
Prev: 9DC4 Up: Map Next: 9DE8