From 570bb1cae509810f6e30b45ebdcf621462757549 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Sun, 26 Dec 2010 14:02:55 +0000 Subject: [PATCH] Work-around for CPU selection bug at 0x1005a4 in Godzilla, no whatsnew --- src/mame/machine/seicop.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mame/machine/seicop.c b/src/mame/machine/seicop.c index 19212100ce5..06001fc3365 100644 --- a/src/mame/machine/seicop.c +++ b/src/mame/machine/seicop.c @@ -1963,7 +1963,6 @@ static UINT16 u1,u2; copd2_table[command+4] == _5_ && copd2_table[command+5] == _6_ && copd2_table[command+6] == _7_ && copd2_table[command+7] == _8_ && \ u1 == _u1_ && u2 == _u2_) \ - static READ16_HANDLER( generic_cop_r ) { UINT16 retvalue; @@ -1982,8 +1981,17 @@ static READ16_HANDLER( generic_cop_r ) case 0x184/2: return cop_hit_val & 0xffff; + /* BCD */ + case 0x190/2: + case 0x192/2: + case 0x194/2: + case 0x196/2: + case 0x198/2: + return retvalue; + + /* needed by Godzilla for selecting a character ... rng? PIT? */ case 0x1a4/2: - return 0x0002; + return mame_rand(space->machine); case 0x1b0/2: return cop_status;