summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2018-11-14 15:28:12 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2018-11-14 15:28:12 +1100
commitbbafd5a02318dd2a0693f367d1f02d4caf4a274a (patch)
treeeb374383a07bfde2519cea712d144e1ea3a54ed1
parent6d5f14ac55eed3f3892a698dedb0de0c46169133 (diff)
gamecom : lostwrld works now.
-rw-r--r--hash/gamecom.xml2
-rw-r--r--src/devices/cpu/sm8500/sm85ops.h7
-rw-r--r--src/mame/drivers/gamecom.cpp7
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.
</part>
</software>
- <software name="lostwrld" supported="no">
+ <software name="lostwrld">
<description>The Lost World - Jurassic Park</description>
<year>1997</year>
<publisher>Tiger Electronics</publisher>
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.
***************************************************************************/