diff --git a/src/mame/machine/amiga.c b/src/mame/machine/amiga.c index 0c69854ce86..fea149da17f 100644 --- a/src/mame/machine/amiga.c +++ b/src/mame/machine/amiga.c @@ -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: