midw8080/m79amb.cpp: Invert PROM data using region flags. (#10207)

This commit is contained in:
0kmg 2022-08-11 07:51:24 -08:00 committed by GitHub
parent 42f62eb325
commit 5f2ae1149b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -214,7 +214,7 @@ void m79amb_state::m79amb(machine_config &config)
ROM_START( m79amb )
ROM_REGION( 0x2000, "maincpu", 0 )
ROM_REGION( 0x2000, "maincpu", ROMREGION_INVERT )
ROM_LOAD( "m79.10t", 0x0000, 0x0200, CRC(ccf30b1e) SHA1(c1a77f8dc81c491928f81121ca5c9b7f8753794f) )
ROM_LOAD( "m79.9t", 0x0200, 0x0200, CRC(daf807dd) SHA1(16cd9d553bfb111c8380966cbde39dbddd5fe58c) )
ROM_LOAD( "m79.8t", 0x0400, 0x0200, CRC(79fafa02) SHA1(440620f5be44febdd7c64014739dc71fb570cc92) )
@ -255,11 +255,6 @@ ROM_END
void m79amb_state::init_m79amb()
{
uint8_t *rom = memregion("maincpu")->base();
// PROM data is active low
for (int i = 0; i < 0x2000; i++)
rom[i] = ~rom[i];
static constexpr uint8_t lut_cross[0x20] = {
19, 20, 21, 23, 25, 27, 29, 37,
45, 53, 66, 82, 88, 95, 105, 111,