mirror of
https://github.com/holub/mame
synced 2025-05-24 23:05:32 +03:00
Fix taitowlf.c (pf2012) crash
This commit is contained in:
parent
a088d32b1b
commit
ea25feb719
@ -529,10 +529,8 @@ static IRQ_CALLBACK(irq_callback)
|
|||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static MACHINE_RESET(taitowlf)
|
static MACHINE_START(taitowlf)
|
||||||
{
|
{
|
||||||
memory_set_bankptr(1, memory_region(machine, "user1") + 0x30000);
|
|
||||||
|
|
||||||
cpu_set_irq_callback(machine->cpu[0], irq_callback);
|
cpu_set_irq_callback(machine->cpu[0], irq_callback);
|
||||||
|
|
||||||
taitowlf_devices.pit8254 = device_list_find_by_tag( machine->config->devicelist, PIT8254, "pit8254" );
|
taitowlf_devices.pit8254 = device_list_find_by_tag( machine->config->devicelist, PIT8254, "pit8254" );
|
||||||
@ -542,6 +540,11 @@ static MACHINE_RESET(taitowlf)
|
|||||||
taitowlf_devices.dma8237_2 = device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_2" );
|
taitowlf_devices.dma8237_2 = device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_2" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static MACHINE_RESET(taitowlf)
|
||||||
|
{
|
||||||
|
memory_set_bankptr(1, memory_region(machine, "user1") + 0x30000);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
*
|
*
|
||||||
@ -603,6 +606,7 @@ static MACHINE_DRIVER_START(taitowlf)
|
|||||||
MDRV_CPU_PROGRAM_MAP(taitowlf_map, 0)
|
MDRV_CPU_PROGRAM_MAP(taitowlf_map, 0)
|
||||||
MDRV_CPU_IO_MAP(taitowlf_io, 0)
|
MDRV_CPU_IO_MAP(taitowlf_io, 0)
|
||||||
|
|
||||||
|
MDRV_MACHINE_START(taitowlf)
|
||||||
MDRV_MACHINE_RESET(taitowlf)
|
MDRV_MACHINE_RESET(taitowlf)
|
||||||
|
|
||||||
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
MDRV_DEVICE_ADD( "pit8254", PIT8254 )
|
||||||
|
Loading…
Reference in New Issue
Block a user