changeset 141:576f55711d8d

Fix DMA in progress flag in VDP status register
author Mike Pavone <pavone@retrodev.com>
date Mon, 31 Dec 2012 18:12:08 -0800
parents 18796a3b0fe2
children b42bcfa09cce
files vdp.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)) {