Mercurial > repos > blastem
diff vdp.c @ 461:6221f8f534fa
Merge
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 10 Sep 2013 00:30:39 -0700 |
parents | 788ba843a731 c49ecf575784 |
children | 5677c053edd6 |
line wrap: on
line diff
--- a/vdp.c Tue Sep 10 00:29:46 2013 -0700 +++ b/vdp.c Tue Sep 10 00:30:39 2013 -0700 @@ -1521,7 +1521,7 @@ } 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)) { @@ -1533,6 +1533,7 @@ 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; }