From a2365ce2d09377ea23ed9b4f3e4e3d8cb7cc6c75 Mon Sep 17 00:00:00 2001 From: AmatCoder Date: Sun, 8 Sep 2019 18:43:50 +0200 Subject: snes.cpp: Do not update HDMA if enabled channels are the same (#5602) [AmatCoder] Fixing Pilotwings (MT 06205) --- src/mame/machine/snes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mame/machine/snes.cpp b/src/mame/machine/snes.cpp index f931e79d81e..0e232318516 100644 --- a/src/mame/machine/snes.cpp +++ b/src/mame/machine/snes.cpp @@ -560,7 +560,7 @@ WRITE8_MEMBER( snes_state::snes_w_io ) SNES_CPU_REG(MDMAEN) = 0; /* Once DMA is done we need to reset all bits to 0 */ return; case HDMAEN: /* HDMA channel designation */ - if (data) //if a HDMA is enabled, data is inited at the next scanline + if (data != SNES_CPU_REG(HDMAEN)) //if a HDMA is enabled, data is inited at the next scanline timer_set(m_screen->time_until_pos(m_ppu->current_vert() + 1), TIMER_RESET_HDMA); SNES_CPU_REG(HDMAEN) = data; return; -- cgit v1.2.3