summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-09-10 00:30:39 -0700
committerMike Pavone <pavone@retrodev.com>2013-09-10 00:30:39 -0700
commitec1959edf864cf98de267cb0f17b8b2f044a8762 (patch)
tree08378dcf375b910ad1267990d8520e4dda3e4d93 /vdp.c
parent929bc24ebe9477fec8993be92b24dd0a96d001cd (diff)
parent773d8bb91c3d4684e3e6a76e8584e6a97eda31ec (diff)
Merge
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index af14ef4..04fd705 100644
--- a/vdp.c
+++ b/vdp.c
@@ -1521,7 +1521,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)) {
@@ -1533,6 +1533,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;
}