Fixed an un-inited bankswitch problem in the Seibu Audio driver, gives preliminary working sound in Denjin Makai [Angelo Salese]

This commit is contained in:
Angelo Salese 2010-12-19 14:30:40 +00:00
parent a16977ce2a
commit f8087bd2ca

View File

@ -338,6 +338,9 @@ MACHINE_RESET( seibu_sound )
update_irq_lines(machine, VECTOR_INIT); update_irq_lines(machine, VECTOR_INIT);
if (romlength > 0x10000) if (romlength > 0x10000)
memory_configure_bank(machine, "bank1", 0, (romlength - 0x10000) / 0x8000, rom + 0x10000, 0x8000); memory_configure_bank(machine, "bank1", 0, (romlength - 0x10000) / 0x8000, rom + 0x10000, 0x8000);
/* Denjin Makai definitely needs this at start-up, it never writes to the bankswitch */
memory_set_bank(machine, "bank1", 0);
} }
/***************************************************************************/ /***************************************************************************/
@ -406,7 +409,7 @@ WRITE16_HANDLER( seibu_main_word_w )
main2sub[offset] = data; main2sub[offset] = data;
break; break;
case 4: case 4:
if (strcmp(space->machine->gamedrv->name, "sdgndmps") == 0) if (strcmp(space->machine->gamedrv->name, "sdgndmps") == 0 || strcmp(space->machine->gamedrv->name, "denjinmk") == 0)
update_irq_lines(space->machine, RST10_ASSERT); update_irq_lines(space->machine, RST10_ASSERT);
update_irq_lines(space->machine, RST18_ASSERT); update_irq_lines(space->machine, RST18_ASSERT);
break; break;