Previous 199869 Revisions Next

r33332 Tuesday 11th November, 2014 at 01:59:03 UTC by Alex W. Jackson
Fix uPD7810 sound/hang regressions in some MAME drivers (nw)
[src/emu/cpu/upd7810]upd7810.c
[src/mame/drivers]fitfight.c homedata.c

trunk/src/emu/cpu/upd7810/upd7810.c
r241843r241844
19911991   switch (irqline) {
19921992   case INPUT_LINE_NMI:
19931993      /* NMI is falling edge sensitive */
1994      if ( m_nmi == ASSERT_LINE && state == CLEAR_LINE )
1994      if ( m_nmi == CLEAR_LINE && state == ASSERT_LINE )
19951995         IRR |= INTNMI;
19961996
19971997      m_nmi = state;
r241843r241844
20052005      break;
20062006   case UPD7810_INTF2:
20072007      /* INT2 is falling edge sensitive */
2008      if ( m_int2 == ASSERT_LINE && state == CLEAR_LINE )
2008      /* we store the physical state (inverse of the logical state) */
2009      /* to keep the handling of port C consistent with the upd7801 */
2010      if ( (!m_int2) == CLEAR_LINE && state == ASSERT_LINE )
20092011         IRR |= INTF2;
20102012
2011      m_int2 = state;
2013      m_int2 = !state;
20122014      break;
20132015   default:
20142016      logerror("upd7810_set_irq_line invalid irq line #%d\n", irqline);
trunk/src/mame/drivers/fitfight.c
r241843r241844
259259
260260INTERRUPT_GEN_MEMBER(fitfight_state::snd_irq)
261261{
262   device.execute().set_input_line(UPD7810_INTF2, HOLD_LINE);
262   generic_pulse_irq_line(device.execute(), UPD7810_INTF2, 1);
263263}
264264
265265
trunk/src/mame/drivers/homedata.c
r241843r241844
231231
232232INTERRUPT_GEN_MEMBER(homedata_state::upd7807_irq)
233233{
234   device.execute().set_input_line(UPD7810_INTF1, HOLD_LINE);
234   generic_pulse_irq_line(device.execute(), UPD7810_INTF1, 1);
235235}
236236
237237


Previous 199869 Revisions Next


© 1997-2024 The MAME Team