comparison vdp.c @ 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 aa3e1bb338c9
children b42bcfa09cce
comparison
equal deleted inserted replaced
140:18796a3b0fe2 141:576f55711d8d
1091 value |= 0x200; 1091 value |= 0x200;
1092 } 1092 }
1093 if (context->fifo_cur == context->fifo_end) { 1093 if (context->fifo_cur == context->fifo_end) {
1094 value |= 0x100; 1094 value |= 0x100;
1095 } 1095 }
1096 if (context->flags & FLAG_DMA_RUN) { 1096 if ((context->regs[REG_MODE_2] & BIT_DMA_ENABLE) && (context->flags & FLAG_DMA_RUN)) {
1097 value |= 0x20; 1097 value |= 0x2;
1098 } 1098 }
1099 uint32_t line= context->cycles / MCLKS_LINE; 1099 uint32_t line= context->cycles / MCLKS_LINE;
1100 if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE)) { 1100 if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE)) {
1101 value |= 0x8; 1101 value |= 0x8;
1102 } 1102 }