diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-09-17 19:10:00 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-09-17 19:10:00 -0700 |
commit | b5767c17b138cfb9b264dbc9cad38252cdd2731c (patch) | |
tree | 45d8bca6a5e088d251c764cc5abfba44aa0d7046 | |
parent | b1170b0ee50fdb523fdb65e6f99851fe67acd1c1 (diff) |
Set VBLANK flag in status register when display is disabled
-rw-r--r-- | vdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1544,7 +1544,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)) { + if (line >= (context->latched_mode & BIT_PAL ? PAL_ACTIVE : NTSC_ACTIVE) || !(context->regs[REG_MODE_2] & BIT_DISP_EN)) { value |= 0x8; } if (linecyc < (context->latched_mode & BIT_H40 ? HBLANK_CLEAR_H40 : HBLANK_CLEAR_H32)) { |