From e6c66ec990523c78de81afa4ddac4b3191ffca6b Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Thu, 29 Nov 2012 03:47:47 +0000 Subject: [PATCH] (MESS) Added LOF bit in Amiga emulation, used by Twintris to boot --- src/mame/machine/amiga.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: