Previous 199869 Revisions Next

r34244 Wednesday 7th January, 2015 at 20:36:19 UTC by Wilbert Pol
pokey.c: Make acaid5200 pokey_seroc test pass. (nw)
[src/emu/sound]pokey.c

trunk/src/emu/sound/pokey.c
r242755r242756
251251   m_KBCODE = 0x09;         /* Atari 800 'no key' */
252252   m_SKCTL = SK_RESET;  /* let the RNG run after reset */
253253   m_SKSTAT = 0;
254   m_IRQST = 0;
254   /* This bit should probably get set later. Acid5200 pokey_setoc test tests this. */
255   m_IRQST = IRQ_SEROC;
255256   m_IRQEN = 0;
256257   m_AUDCTL = 0;
257258   m_p4 = 0;
r242755r242756
10101011      /* acknowledge one or more IRQST bits ? */
10111012      if( m_IRQST & ~data )
10121013      {
1013         /* reset IRQST bits that are masked now */
1014         m_IRQST &= data;
1014         /* reset IRQST bits that are masked now, except the SEROC bit (acid5200 pokey_seroc test) */
1015         m_IRQST &= (IRQ_SEROC | data);
10151016      }
10161017      /* store irq enable */
10171018      m_IRQEN = data;
1019      /* if SEROC irq is enabled trigger an irq (acid5200 pokey_seroc test) */
1020      if (m_IRQEN & m_IRQST & IRQ_SEROC)
1021      {
1022         if (!m_irq_f.isnull())
1023            m_irq_f(IRQ_SEROC);
1024      }
10181025      break;
10191026
10201027   case SKCTL_C:


Previous 199869 Revisions Next


© 1997-2024 The MAME Team