From bbafd5a02318dd2a0693f367d1f02d4caf4a274a Mon Sep 17 00:00:00 2001 From: Robbbert Date: Wed, 14 Nov 2018 15:28:12 +1100 Subject: gamecom : lostwrld works now. --- hash/gamecom.xml | 2 +- src/devices/cpu/sm8500/sm85ops.h | 7 ++++++- src/mame/drivers/gamecom.cpp | 7 +------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hash/gamecom.xml b/hash/gamecom.xml index 99ad908cb55..bed02979cb3 100644 --- a/hash/gamecom.xml +++ b/hash/gamecom.xml @@ -139,7 +139,7 @@ List of games which were planned but never finished or released. - + The Lost World - Jurassic Park 1997 Tiger Electronics diff --git a/src/devices/cpu/sm8500/sm85ops.h b/src/devices/cpu/sm8500/sm85ops.h index cd36b679263..af881eec130 100644 --- a/src/devices/cpu/sm8500/sm85ops.h +++ b/src/devices/cpu/sm8500/sm85ops.h @@ -1033,7 +1033,12 @@ case 0x3A: /* MOVW rr,@rr / MOV rr,(rr)+ / MOV rr,@ww / MOV rr,ww(rr) / MOV rr, mem_writeword( r1, mem_readword( s2 ) ); switch( r2 & 0xC0 ) { case 0x00: mycycles += 11; break; - case 0x40: mycycles += 16; break; + case 0x40: mycycles += 16; + // lostwrld expects reads from videoram to return 0. It is unknown if this should happen just in this case, + // or all the time, or in some other special circumstance. + if ((s2 >= 0xc000) && (s2 <= 0xdfff)) + mem_writeword( r1, 0 ); + break; case 0x80: mycycles += ( ( r2 & 0x07 ) ? 18 : 14 ); break; case 0xC0: mycycles += 16; break; } diff --git a/src/mame/drivers/gamecom.cpp b/src/mame/drivers/gamecom.cpp index 8bd6c52c96c..923eee775fa 100644 --- a/src/mame/drivers/gamecom.cpp +++ b/src/mame/drivers/gamecom.cpp @@ -24,12 +24,7 @@ Todo: Game Status: - Inbuilt ROM and PDA functions all work - Due to an irritating message, the NVRAM is commented out in the machine config -- All carts appear to work except: -- - Lost World: freeze just after entering Stage 2 (the nest). -- --- If you do nothing it freezes at the point where the stegasaurus - should turn around. So, straight away start moving to the right - and you can keep playing. -- Weblink and Internet are of no use as there is nothing to connect to. +- All carts appear to work. ***************************************************************************/ -- cgit v1.2.3