mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +03:00
02921 bkraidj, bkraidu, bkraiduj: [debug] Assertion
This commit is contained in:
parent
3b6cbfb0e0
commit
dfdaf98edc
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user