mirror of
https://github.com/holub/mame
synced 2025-07-06 18:39:28 +03:00
nes_apu: remove wrongly placed dpcm irq clear
This commit is contained in:
parent
7603db3379
commit
14c680e940
@ -451,7 +451,6 @@ static inline void apu_dpcmreset(apu_t::dpcm_t *chan)
|
||||
chan->address = 0xc000 + u16(chan->regs[2] << 6);
|
||||
chan->length = u16(chan->regs[3] << 4) + 1;
|
||||
chan->bits_left = chan->length << 3;
|
||||
chan->irq_occurred = false;
|
||||
chan->enabled = true; /* Fixed * Proper DPCM channel ENABLE/DISABLE flag behaviour*/
|
||||
}
|
||||
|
||||
@ -492,7 +491,6 @@ void nesapu_device::apu_dpcm(apu_t::dpcm_t *chan)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
chan->bits_left--;
|
||||
bit_pos = 7 - (chan->bits_left & 7);
|
||||
if (7 == bit_pos)
|
||||
@ -633,7 +631,8 @@ void nesapu_device::write(offs_t offset, u8 value)
|
||||
/* DMC */
|
||||
case apu_t::WRE0:
|
||||
m_APU.dpcm.regs[0] = value;
|
||||
if (!(value & 0x80)) {
|
||||
if (!(value & 0x80))
|
||||
{
|
||||
m_APU.dpcm.irq_occurred = false;
|
||||
if (!m_APU.frame_irq_occurred)
|
||||
m_irq_handler(false);
|
||||
|
Loading…
Reference in New Issue
Block a user