Exemple #1
0
 private void PPI1PortBChanged(object sender, I8255.PortChangedEventArgs args)
 {
     if (m_ppi1.IsPortBOutput)
     {
         m_eprom_address = (ushort)(m_eprom_address & 0xff00 | args.NewValue);
     }
 }
Exemple #2
0
 private void PPI1PortAChanged(object sender, I8255.PortChangedEventArgs args)
 {
     if (m_ppi1.IsPortAOutput)
     {
         m_eprom_data = args.NewValue;
     }
 }
Exemple #3
0
 private void PPI2PortAChanged(object sender, I8255.PortChangedEventArgs args)
 {
     if (m_ppi2.IsPortAOutput)
     {
         m_channel_divisor[3] = args.NewValue;
         AdvanceAudio();
     }
 }
Exemple #4
0
 private void PPI1PortCChanged(object sender, I8255.PortChangedEventArgs args)
 {
     if (m_ppi1.IsPortCLoOutput && m_ppi1.IsPortCHiOutput)
     {
         m_channel_divisor[2] = args.NewValue;
         AdvanceAudio();
     }
 }
Exemple #5
0
 private void PPI2PortBChanged(object sender, I8255.PortChangedEventArgs args)
 {
     if (m_ppi2.IsPortBOutput)
     {
         m_channel_volume[0] = m_dac_values[args.NewValue & 0x0f];
         m_channel_volume[1] = m_dac_values[(args.NewValue >> 4) & 0x0f];
         AdvanceAudio();
     }
 }
Exemple #6
0
        private void PPI1PortCChanged(object sender, I8255.PortChangedEventArgs args)
        {
            if (m_ppi1.IsPortCLoOutput)
            {
                m_eprom_address = (ushort)(m_eprom_address & 0xf0ff | ((args.NewValue << 8) & 0x0f));
            }

            if (m_ppi1.IsPortCHiOutput)
            {
                m_eprom_address = (ushort)(m_eprom_address & 0x0fff | ((args.NewValue << 8) & 0xf0));
            }
        }