# HG changeset patch # User Mike Pavone # Date 1379470200 25200 # Node ID 1f3450d1129f559921fb53ec6a21dcc3754fadf7 # Parent 0737953132ad546c256f7b732dfd38f7246e4bc5 Set VBLANK flag in status register when display is disabled diff -r 0737953132ad -r 1f3450d1129f vdp.c --- a/vdp.c Tue Sep 17 09:45:14 2013 -0700 +++ b/vdp.c Tue Sep 17 19:10:00 2013 -0700 @@ -1544,7 +1544,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)) { + 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)) {