From e4c33b8d66dfe45e9155006d3cd46b81ea058af2 Mon Sep 17 00:00:00 2001 From: Robbbert Date: Thu, 15 Nov 2018 22:15:07 +1100 Subject: (nw) gamecom : fixed video read another way --- src/devices/cpu/sm8500/sm85ops.h | 5 ----- src/mame/drivers/gamecom.cpp | 5 +++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/devices/cpu/sm8500/sm85ops.h b/src/devices/cpu/sm8500/sm85ops.h index af881eec130..9b85903b4c8 100644 --- a/src/devices/cpu/sm8500/sm85ops.h +++ b/src/devices/cpu/sm8500/sm85ops.h @@ -1034,11 +1034,6 @@ case 0x3A: /* MOVW rr,@rr / MOV rr,(rr)+ / MOV rr,@ww / MOV rr,ww(rr) / MOV rr, switch( r2 & 0xC0 ) { case 0x00: mycycles += 11; 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 923eee775fa..2724610768b 100644 --- a/src/mame/drivers/gamecom.cpp +++ b/src/mame/drivers/gamecom.cpp @@ -24,7 +24,8 @@ 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. +- All carts appear to work, from my limited testing. +-- indy500 skips some speech just before the trial race starts. ***************************************************************************/ @@ -52,7 +53,7 @@ void gamecom_state::gamecom_mem_map(address_map &map) map(0x4000, 0x5FFF).bankr("bank2"); /* External ROM/Flash. Controlled by MMU2 */ map(0x6000, 0x7FFF).bankr("bank3"); /* External ROM/Flash. Controlled by MMU3 */ map(0x8000, 0x9FFF).bankr("bank4"); /* External ROM/Flash. Controlled by MMU4 */ - map(0xA000, 0xDFFF).ram().share("videoram"); /* VRAM */ + map(0xA000, 0xDFFF).writeonly().share("videoram").nopr(); /* VRAM - writeonly, returns 0 on read, as expected by lostwrld */ map(0xE000, 0xFFFF).ram().share("nvram"); /* Extended I/O, Extended RAM */ } -- cgit v1.2.3