diff options
author | David Haywood <mamehaze@users.noreply.github.com> | 2015-09-29 13:12:18 +0100 |
---|---|---|
committer | David Haywood <mamehaze@users.noreply.github.com> | 2015-09-29 13:12:18 +0100 |
commit | 549c5d172288d95a2f18cf21ac10bb21776b9c57 (patch) | |
tree | 36fcc046221bc30c86fd6b494ce0311ed0f670ff | |
parent | 804cd541ec0f84c39d09588a44fcdd738efc401e (diff) |
make this bootleg run (nw)
-rw-r--r-- | src/mame/drivers/trackfld.c | 12 | ||||
-rw-r--r-- | src/mame/includes/trackfld.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/mame/drivers/trackfld.c b/src/mame/drivers/trackfld.c index 86199b663c3..1fa7fef0ab3 100644 --- a/src/mame/drivers/trackfld.c +++ b/src/mame/drivers/trackfld.c @@ -1479,6 +1479,16 @@ DRIVER_INIT_MEMBER(trackfld_state,trackfld) { } +DRIVER_INIT_MEMBER(trackfld_state, trackfldnz) +{ + UINT8 *ROM = memregion("maincpu")->base(); + int i; + + /* decrypt program rom */ + for (i = 0x6000; i < 0x10000; i++) + ROM[i] = BITSWAP8(ROM[i], 6, 7, 5, 4, 3, 2, 1, 0); +} + DRIVER_INIT_MEMBER(trackfld_state,atlantol) { address_space &space = m_maincpu->space(AS_PROGRAM); @@ -1547,7 +1557,7 @@ GAME( 1983, hyprolym, trackfld, trackfld, trackfld, trackfld_state, trackfld, R GAME( 1983, hyprolymb, trackfld, hyprolyb, trackfld, trackfld_state, trackfld, ROT0, "bootleg", "Hyper Olympic (bootleg, set 1)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 1983, hyprolymba,trackfld, hyprolyb, trackfld, trackfld_state, trackfld, ROT0, "bootleg", "Hyper Olympic (bootleg, set 2)", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE ) GAME( 1996, atlantol, trackfld, atlantol, atlantol, trackfld_state, atlantol, ROT0, "bootleg", "Atlant Olimpic", MACHINE_SUPPORTS_SAVE ) -GAME( 1982, trackfldnz,trackfld, trackfld, trackfld, trackfld_state, trackfld, ROT0, "bootleg? (Goldberg Enterprizes Inc.)", "Track & Field (NZ bootleg?)", MACHINE_NOT_WORKING) +GAME( 1982, trackfldnz,trackfld, trackfld, trackfld, trackfld_state, trackfldnz,ROT0, "bootleg? (Goldberg Enterprizes Inc.)", "Track & Field (NZ bootleg?)", MACHINE_SUPPORTS_SAVE) // bootleg of the Centuri version GAME( 1988, mastkin, 0, mastkin, mastkin, trackfld_state, mastkin, ROT0, "Du Tech", "The Masters of Kin", MACHINE_WRONG_COLORS | MACHINE_SUPPORTS_SAVE ) diff --git a/src/mame/includes/trackfld.h b/src/mame/includes/trackfld.h index 93df7e95d2f..bac83ad0c3e 100644 --- a/src/mame/includes/trackfld.h +++ b/src/mame/includes/trackfld.h @@ -67,6 +67,7 @@ public: DECLARE_DRIVER_INIT(atlantol); DECLARE_DRIVER_INIT(wizzquiz); DECLARE_DRIVER_INIT(mastkin); + DECLARE_DRIVER_INIT(trackfldnz); UINT8 m_SN76496_latch; DECLARE_WRITE8_MEMBER( konami_SN76496_latch_w ) { m_SN76496_latch = data; }; |