# HG changeset patch # User Mike Pavone # Date 1357006328 28800 # Node ID 576f55711d8defcba3c887a4fedfbd496fef641b # Parent 18796a3b0fe24312db8272cd9901b67a410202c2 Fix DMA in progress flag in VDP status register diff -r 18796a3b0fe2 -r 576f55711d8d vdp.c --- a/vdp.c Mon Dec 31 11:56:01 2012 -0800 +++ b/vdp.c Mon Dec 31 18:12:08 2012 -0800 @@ -1093,8 +1093,8 @@ if (context->fifo_cur == context->fifo_end) { value |= 0x100; } - if (context->flags & FLAG_DMA_RUN) { - value |= 0x20; + if ((context->regs[REG_MODE_2] & BIT_DMA_ENABLE) && (context->flags & FLAG_DMA_RUN)) { + value |= 0x2; } uint32_t line= context->cycles / MCLKS_LINE; if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE)) {