diff options
author | Mike Pavone <pavone@retrodev.com> | 2012-12-31 18:12:08 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2012-12-31 18:12:08 -0800 |
commit | e57c4ee8e3a7609b65247612025a56a8452efd5e (patch) | |
tree | 0bb9824726a66650c86062ec86a664220c046cb4 /vdp.c | |
parent | f5c3c43886f2a6db2d8c98b8523d08a27d17e11c (diff) |
Fix DMA in progress flag in VDP status register
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |