From 2ada5ff20afcc2255cc32e37ae954371d154422f Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Tue, 1 Mar 2011 23:51:04 +0000 Subject: [PATCH] Another simplification --- src/mame/drivers/aristmk5.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/mame/drivers/aristmk5.c b/src/mame/drivers/aristmk5.c index 7f81d7e419e..61b465aaa7e 100644 --- a/src/mame/drivers/aristmk5.c +++ b/src/mame/drivers/aristmk5.c @@ -264,19 +264,14 @@ static MACHINE_RESET( aristmk5 ) UINT8 *PRG;// = machine->region("prg_code")->base(); int i; UINT8 op_mode; + static const char *const rom_region[] = { "set_chip_4.04", "set_chip_4.4", "game_prg", "game_prg" }; op_mode = input_port_read(machine, "ROM_LOAD"); - if(op_mode == 0) - PRG = machine->region("set_chip_4.04")->base(); - else if(op_mode == 1) - PRG = machine->region("set_chip_4.4")->base(); - else - PRG = machine->region("game_prg")->base(); + PRG = machine->region(rom_region[op_mode & 3])->base(); for(i=0;i<0x300000;i++) ROM[i] = PRG[i]; - } }