(MESS) Added LOF bit in Amiga emulation, used by Twintris to boot

This commit is contained in:
Angelo Salese 2012-11-29 03:47:47 +00:00
parent 8c5ff3fe3e
commit e6c66ec990

View File

@ -1163,8 +1163,11 @@ READ16_HANDLER( amiga_custom_r )
return CUSTOM_REG(REG_DMACON);
case REG_VPOSR:
CUSTOM_REG(REG_VPOSR) &= 0xff00;
CUSTOM_REG(REG_VPOSR) &= 0x7f00;
CUSTOM_REG(REG_VPOSR) |= amiga_gethvpos(*space.machine().primary_screen) >> 16;
if(CUSTOM_REG(REG_BPLCON0) & BPLCON0_LACE && space.machine().primary_screen->frame_number() & 0x1)
CUSTOM_REG(REG_VPOSR) |= 0x8000; // LOF bit
return CUSTOM_REG(REG_VPOSR);
case REG_VHPOSR: