Prev: A2B6 Up: Map Next: A2F3
A2BB: Send data for all channels to PSG
Used by the routine at sound_player.
all_channels_data_to_psg A2BB LD A,$9F Mute channel 1
A2BD LD C,$90 Tone 1 attenuation
A2BF LD D,$80 Tone 1 frequency
A2C1 LD IX,(ptr_psg_tone_1_data) IX=tune_data_buffer_2
A2C5 CALL tone_data_to_psg Play tone or mute
A2C8 LD A,$BF Mute channel 2
A2CA LD C,$B0 Tone 2 attenuation
A2CC LD D,$A0 Tone 2 frequency
A2CE LD IX,(ptr_psg_tone_2_data) IX=tune_data_buffer_3
A2D2 CALL tone_data_to_psg Play tone or mute
A2D5 LD A,$DF Mute channel 3
A2D7 LD C,$D0 Tone 3 attenuation
A2D9 LD D,$C0 Tone 3 frequency
A2DB LD IX,(ptr_psg_tone_3_data) IX=tune_data_buffer_4
A2DF CALL tone_data_to_psg Play tone or mute
A2E2 LD A,$FF Mute noise
A2E4 LD C,$F0 Noise attenuation
A2E6 LD IX,(ptr_psg_noise_data) IX=tune_data_buffer_1
A2EA LD E,(IX+$00) Get byte 0
A2ED INC E If it was zero
A2EE JR NZ,noise_data_to_psg Then jump ahead
A2F0 OUT ($FF),A Else mute
A2F2 RET
Prev: A2B6 Up: Map Next: A2F3