mirror of
https://github.com/holub/mame
synced 2025-06-21 03:36:33 +03:00
snes.cpp: Do not update HDMA if enabled channels are the same (#5602) [AmatCoder]
Fixing Pilotwings (MT 06205)
This commit is contained in:
parent
047cfe2b3a
commit
a2365ce2d0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user