summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-31 18:12:08 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-31 18:12:08 -0800
commite57c4ee8e3a7609b65247612025a56a8452efd5e (patch)
tree0bb9824726a66650c86062ec86a664220c046cb4
parentf5c3c43886f2a6db2d8c98b8523d08a27d17e11c (diff)
Fix DMA in progress flag in VDP status register
-rw-r--r--vdp.c4
1 files changed, 2 insertions, 2 deletions
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)) {