mirror of
https://github.com/holub/mame
synced 2025-05-15 10:28:16 +03:00
Another simplification
This commit is contained in:
parent
d0b49e0782
commit
2ada5ff20a
@ -264,19 +264,14 @@ static MACHINE_RESET( aristmk5 )
|
|||||||
UINT8 *PRG;// = machine->region("prg_code")->base();
|
UINT8 *PRG;// = machine->region("prg_code")->base();
|
||||||
int i;
|
int i;
|
||||||
UINT8 op_mode;
|
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");
|
op_mode = input_port_read(machine, "ROM_LOAD");
|
||||||
|
|
||||||
if(op_mode == 0)
|
PRG = machine->region(rom_region[op_mode & 3])->base();
|
||||||
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();
|
|
||||||
|
|
||||||
for(i=0;i<0x300000;i++)
|
for(i=0;i<0x300000;i++)
|
||||||
ROM[i] = PRG[i];
|
ROM[i] = PRG[i];
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user