diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-09-08 20:48:33 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-09-08 20:48:33 -0700 |
commit | 773d8bb91c3d4684e3e6a76e8584e6a97eda31ec (patch) | |
tree | 45b5d084a2b4fa8e0529147e7b78ec3de8880fcd | |
parent | 1b9e30c264d0af85666d89e8d62d054d847d2628 (diff) |
Revert change to VBLANK flag timing based on new direct color DMA test
-rw-r--r-- | vdp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1564,7 +1564,7 @@ uint16_t vdp_control_port_read(vdp_context * context) } uint32_t line= context->cycles / MCLKS_LINE; uint32_t linecyc = context->cycles % MCLKS_LINE; - if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE) || context->cycles < (context->latched_mode & BIT_H40 ? 16*4 : 16*5)) { + if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE)) { value |= 0x8; } if (linecyc < (context->latched_mode & BIT_H40 ? HBLANK_CLEAR_H40 : HBLANK_CLEAR_H32)) { @@ -1576,6 +1576,7 @@ uint16_t vdp_control_port_read(vdp_context * context) if (context->latched_mode & BIT_PAL) {//Not sure about this, need to verify value |= 0x1; } + //printf("status read at cycle %d returned %X\n", context->cycles, value); //TODO: Sprite overflow, sprite collision, odd frame flag return value; } |