mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
galaxold.cpp: correct coin counter for scramb3 set (nw)
This commit is contained in:
parent
5e969f3605
commit
40d9f2adfb
@ -356,7 +356,7 @@ READ8_MEMBER(galaxold_state::scramb2_port0_r){ return (ioport("IN0")->read() >>
|
||||
READ8_MEMBER(galaxold_state::scramb2_port1_r){ return (ioport("IN1")->read() >> offset) & 0x1; }
|
||||
READ8_MEMBER(galaxold_state::scramb2_port2_r){ return (ioport("IN2")->read() >> offset) & 0x1; }
|
||||
|
||||
void galaxold_state::scramb2_map(address_map &map)
|
||||
void galaxold_state::scramb_common_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x3fff).rom();
|
||||
map(0x4000, 0x47ff).ram();
|
||||
@ -370,7 +370,6 @@ void galaxold_state::scramb2_map(address_map &map)
|
||||
map(0x6000, 0x6007).r(FUNC(galaxold_state::scramb2_port0_r)); // reads from 8 addresses, 1 bit per address
|
||||
map(0x6800, 0x6807).r(FUNC(galaxold_state::scramb2_port1_r)); // reads from 8 addresses, 1 bit per address
|
||||
map(0x6801, 0x6801).w(FUNC(galaxold_state::galaxold_nmi_enable_w));
|
||||
map(0x6802, 0x6802).w(FUNC(galaxold_state::galaxold_coin_counter_w));
|
||||
map(0x6804, 0x6804).w(FUNC(galaxold_state::galaxold_stars_enable_w));
|
||||
map(0x6806, 0x6806).w(FUNC(galaxold_state::galaxold_flip_screen_x_w));
|
||||
map(0x6807, 0x6807).w(FUNC(galaxold_state::galaxold_flip_screen_y_w));
|
||||
@ -381,6 +380,18 @@ void galaxold_state::scramb2_map(address_map &map)
|
||||
map(0x7800, 0x7800).w("cust", FUNC(galaxian_sound_device::pitch_w));
|
||||
}
|
||||
|
||||
void galaxold_state::scramb2_map(address_map &map)
|
||||
{
|
||||
scramb_common_map(map);
|
||||
map(0x6802, 0x6802).w(FUNC(galaxold_state::galaxold_coin_counter_w));
|
||||
}
|
||||
|
||||
void galaxold_state::scramb3_map(address_map &map)
|
||||
{
|
||||
scramb_common_map(map);
|
||||
map(0x6003, 0x6003).w(FUNC(galaxold_state::galaxold_coin_counter_w));
|
||||
}
|
||||
|
||||
READ8_MEMBER( galaxold_state::scrambler_protection_2_r )
|
||||
{
|
||||
// if this doesn't return a value the code is happy with then it jumps out of ROM space after reading the port
|
||||
@ -2358,6 +2369,13 @@ MACHINE_CONFIG_START(galaxold_state::scramb2)
|
||||
MCFG_VIDEO_START_OVERRIDE(galaxold_state,scrambold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
MACHINE_CONFIG_START(galaxold_state::scramb3)
|
||||
scramb2(config);
|
||||
|
||||
/* basic machine hardware */
|
||||
MCFG_DEVICE_MODIFY("maincpu")
|
||||
MCFG_DEVICE_PROGRAM_MAP(scramb3_map)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
MACHINE_CONFIG_START(galaxold_state::scrambler)
|
||||
galaxian(config);
|
||||
@ -3621,7 +3639,7 @@ GAME( 1982, ckongcv, ckong, ckongg, ckonggx, galaxold_state, init_ckon
|
||||
GAME( 1982, ckongis, ckong, ckongg, ckonggx, galaxold_state, init_ckonggx, ROT90, "bootleg", "Crazy Kong (bootleg on Galaxian hardware, encrypted, set 3)", MACHINE_NOT_WORKING )
|
||||
GAME( 1981, scramblb, scramble, scramblb, scramblb, galaxold_state, empty_init, ROT90, "bootleg", "Scramble (bootleg on Galaxian hardware)", MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, scramb2, scramble, scramb2, scramb2, galaxold_state, empty_init, ROT90, "bootleg", "Scramble (bootleg, set 1)", MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, scramb3, scramble, scramb2, scramb2, galaxold_state, empty_init, ROT90, "bootleg", "Scramble (bootleg, set 2)", MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, scramb3, scramble, scramb3, scramb2, galaxold_state, empty_init, ROT90, "bootleg", "Scramble (bootleg, set 2)", MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, scrambler, scramble, scrambler, scrambler, galaxold_state, empty_init, ROT90, "bootleg (Reben S.A.)", "Scramble (Reben S.A. Spanish bootleg)", MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1981, 4in1, 0, _4in1, 4in1, galaxold_state, init_4in1, ROT90, "Armenia / Food and Fun", "4 Fun in 1", MACHINE_IMPERFECT_SOUND | MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1982, bagmanmc, bagman, bagmanmc, bagmanmc, galaxold_state, empty_init, ROT90, "bootleg", "Bagman (bootleg on Moon Cresta hardware, set 1)", MACHINE_IMPERFECT_COLORS | MACHINE_NO_COCKTAIL | MACHINE_SUPPORTS_SAVE )
|
||||
|
@ -5,10 +5,10 @@
|
||||
Galaxian hardware family (old)
|
||||
|
||||
This include file is used by the following drivers:
|
||||
- dambustr.c
|
||||
- galaxold.c
|
||||
- scramble.c
|
||||
- scobra.c
|
||||
- dambustr.cpp
|
||||
- galaxold.cpp
|
||||
- scramble.cpp
|
||||
- scobra.cpp
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
@ -290,6 +290,7 @@ public:
|
||||
void scramblb(machine_config &config);
|
||||
void porter(machine_config &config);
|
||||
void scramb2(machine_config &config);
|
||||
void scramb3(machine_config &config);
|
||||
void ozon1(machine_config &config);
|
||||
void mooncrst(machine_config &config);
|
||||
void guttang(machine_config &config);
|
||||
@ -320,7 +321,9 @@ public:
|
||||
void racknrol_map(address_map &map);
|
||||
void racknrol_io(address_map &map);
|
||||
void rockclim_map(address_map &map);
|
||||
void scramb_common_map(address_map &map);
|
||||
void scramb2_map(address_map &map);
|
||||
void scramb3_map(address_map &map);
|
||||
void scramblb_map(address_map &map);
|
||||
void scrambler_map(address_map &map);
|
||||
void spcwarp(address_map &map);
|
||||
|
Loading…
Reference in New Issue
Block a user