From e57c4ee8e3a7609b65247612025a56a8452efd5e Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Mon, 31 Dec 2012 18:12:08 -0800 Subject: Fix DMA in progress flag in VDP status register --- vdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index 20a0f2c..3c28852 100644 --- a/vdp.c +++ b/vdp.c @@ -1093,8 +1093,8 @@ uint16_t vdp_control_port_read(vdp_context * context) 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)) { -- cgit v1.2.3