Skip to content

Commit 7e48d03

Browse files
committed
acorn/aristmk5.cpp: Fixed set chips selector. It was limited to 7 entries before,
making some set chips unreachable.
1 parent 4609405 commit 7e48d03

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

src/mame/acorn/aristmk5.cpp

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,17 +1344,19 @@ INPUT_CHANGED_MEMBER(aristmk5_state::coin_start)
13441344
}
13451345

13461346
static INPUT_PORTS_START( aristmk5_usa )
1347-
/* This simulates the ROM swap */
1347+
// This simulates the ROM swap
13481348
PORT_START("ROM_LOAD")
1349-
PORT_CONFNAME( 0x07, 0x07, "System Mode" )
1350-
PORT_CONFSETTING( 0x00, "Set Chip v4.04.09" )
1351-
PORT_CONFSETTING( 0x01, "Set Chip v4.04.08" )
1352-
PORT_CONFSETTING( 0x02, "Set Chip v4.04.05" )
1353-
PORT_CONFSETTING( 0x03, "Set Chip v4.04.00" )
1354-
PORT_CONFSETTING( 0x04, "Set Chip v4.03.07" )
1355-
PORT_CONFSETTING( 0x05, "Set Chip v4.02.04" )
1356-
PORT_CONFSETTING( 0x06, "RAM Clear EPROM v1.0" )
1357-
PORT_CONFSETTING( 0x07, "Game Mode" )
1349+
PORT_CONFNAME( 0x0f, 0x09, "System Mode" )
1350+
PORT_CONFSETTING( 0x00, "Set Chip v4.04.09 alt" )
1351+
PORT_CONFSETTING( 0x01, "Set Chip v4.04.09" )
1352+
PORT_CONFSETTING( 0x02, "Set Chip v4.04.08" )
1353+
PORT_CONFSETTING( 0x03, "Set Chip v4.04.05" )
1354+
PORT_CONFSETTING( 0x04, "Set Chip v4.04.00" )
1355+
PORT_CONFSETTING( 0x05, "Set Chip v4.03.07" )
1356+
PORT_CONFSETTING( 0x06, "Set Chip v4.02.04 alt" )
1357+
PORT_CONFSETTING( 0x07, "Set Chip v4.02.04" )
1358+
PORT_CONFSETTING( 0x08, "RAM Clear EPROM v1.0" )
1359+
PORT_CONFSETTING( 0x09, "Game Mode" )
13581360

13591361
PORT_START("DSW1")
13601362
PORT_DIPNAME(0x0f, 0x0f, "Bank 1 - Denomination Values: Coin Value")
@@ -2330,11 +2332,11 @@ void aristmk5_state::machine_reset()
23302332

23312333
if (ioport("ROM_LOAD") != nullptr)
23322334
{
2333-
static const char *const rom_region[] = { "set_4.04.09", "set_4.04.08", "set_4.04.05", "set_4.04.00", "set_4.03.07", "set_4.02.04", "set_1.0", "game_prg" };
2335+
static const char *const rom_region[] = { "set_4.04.09_alt", "set_4.04.09", "set_4.04.08", "set_4.04.05", "set_4.04.00", "set_4.03.07", "set_4.02.04_alt", "set_4.02.04", "set_1.0", "game_prg" };
23342336

23352337
uint8_t op_mode = ioport("ROM_LOAD")->read();
23362338

2337-
PRG = memregion(rom_region[op_mode & 7])->base();
2339+
PRG = memregion(rom_region[op_mode & 0x0f])->base();
23382340

23392341
m_memc->space(0).install_rom(0x03400000, 0x037fffff, PRG);
23402342
m_memc->space(0).install_rom(0x03800000, 0x03bfffff, PRG);

0 commit comments

Comments
 (0)