summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Brian Troha <briantro@users.noreply.github.com>2012-02-18 22:33:49 +0000
committer Brian Troha <briantro@users.noreply.github.com>2012-02-18 22:33:49 +0000
commit04ba4a7e4e166c5148fd2cc635fc090c9d165e15 (patch)
tree093967e773f4f6dbe065f5f23e348affaddd6210 /src
parente3cd5e1e17cb6ac6be9307cb7836660ab442f056 (diff)
vamphalf.c: Added correct speed up to Diet Family [Dave Haywood]
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/vamphalf.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/drivers/vamphalf.c b/src/mame/drivers/vamphalf.c
index 935388d6d8d..af44f349452 100644
--- a/src/mame/drivers/vamphalf.c
+++ b/src/mame/drivers/vamphalf.c
@@ -18,6 +18,7 @@
Date Quiz Go Go Episode 2 (c) 2000 SemiCom
Mission Craft (c) 2000 Sun (version 2.4)
Mr. Dig (c) 2000 Sun
+ Diet Family (c) 2001 SemiCom
Final Godori (c) 2001 SemiCom (version 2.20.5915)
Wyvern Wings (c) 2001 SemiCom
Mr. Kicker (c) 2001 SemiCom [1]
@@ -43,7 +44,6 @@
Red Wyvern - A semi-sequel or update?
Same time era, but unknown hardware:
Gaia The last Choice of the Earth (c) 1998 (might be Byron Future Assault type hardware)
- Diet Family (c) 2001
Choice III: Joker's Dream (c) 2001
TODO:
@@ -2284,14 +2284,16 @@ static READ16_HANDLER( mrdig_speedup_r )
return state->m_wram[(0x00a99c / 2)+offset];
}
-static READ16_HANDLER( dtfamily_speedup_r ) /* WRONG!! Speed up */
+static READ16_HANDLER( dtfamily_speedup_r )
{
vamphalf_state *state = space->machine().driver_data<vamphalf_state>();
- if (cpu_get_pc(&space->device()) == 0x130c2)
+ int pc = cpu_get_pc(&space->device());
+
+ if (pc == 0x12fa6)
device_spin_until_interrupt(&space->device());
- return state->m_wram[0x780d8 / 2];
+ return state->m_wram[0xcc2a8 / 2];
}
@@ -2449,7 +2451,7 @@ static DRIVER_INIT( dquizgo2 )
static DRIVER_INIT( dtfamily )
{
vamphalf_state *state = machine.driver_data<vamphalf_state>();
- machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0x780d8, 0x780d9, FUNC(dtfamily_speedup_r) ); /* WRONG!! */
+ machine.device("maincpu")->memory().space(AS_PROGRAM)->install_legacy_read_handler(0xcc2a8, 0xcc2a9, FUNC(dtfamily_speedup_r) );
state->m_palshift = 0;
state->m_flip_bit = 1;