02921 bkraidj, bkraidu, bkraiduj: [debug] Assertion

This commit is contained in:
Phil Bennett 2009-02-18 22:52:21 +00:00
parent 3b6cbfb0e0
commit dfdaf98edc

View File

@ -1004,9 +1004,15 @@ static void toaplan2_scroll_reg_data_w(running_machine *machine, offs_t offset,
if ((toaplan2_sub_cpu == CPU_2_Z80) && (data == 3))
{
/* HACK! When tilted, sound CPU needs to be reset. */
const device_config *ym;
if (ym = device_list_find_by_tag(machine->config->devicelist, SOUND, "ym"))
{
cpu_set_input_line(machine->cpu[1], INPUT_LINE_RESET, PULSE_LINE);
devtag_reset(machine, SOUND, "ym");
if (!strcmp(device_get_info_string(ym, DEVINFO_STR_NAME), "YM3812"))
{
cpu_set_input_line(machine->cpu[1], INPUT_LINE_RESET, PULSE_LINE);
devtag_reset(machine, SOUND, "ym");
}
}
}