From 13fff98e5f0a173c03eb08f98325d6f3928a2b1f Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 30 Dec 2008 06:08:55 +0000 Subject: [PATCH] 02773: all gamecstl.c sets: [debug] Assertion --- src/mame/drivers/gamecstl.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/mame/drivers/gamecstl.c b/src/mame/drivers/gamecstl.c index d73ef380dce..53a22f8696a 100644 --- a/src/mame/drivers/gamecstl.c +++ b/src/mame/drivers/gamecstl.c @@ -578,12 +578,8 @@ static IRQ_CALLBACK(irq_callback) return r; } -static MACHINE_RESET(gamecstl) +static MACHINE_START(gamecstl) { - memory_set_bankptr(machine, 1, memory_region(machine, "user1") + 0x30000); - - cpu_set_irq_callback(machine->cpu[0], irq_callback); - gamecstl_devices.pit8254 = device_list_find_by_tag( machine->config->devicelist, PIT8254, "pit8254" ); gamecstl_devices.pic8259_1 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_1" ); gamecstl_devices.pic8259_2 = device_list_find_by_tag( machine->config->devicelist, PIC8259, "pic8259_2" ); @@ -591,6 +587,13 @@ static MACHINE_RESET(gamecstl) gamecstl_devices.dma8237_2 = device_list_find_by_tag( machine->config->devicelist, DMA8237, "dma8237_2" ); } +static MACHINE_RESET(gamecstl) +{ + memory_set_bankptr(machine, 1, memory_region(machine, "user1") + 0x30000); + + cpu_set_irq_callback(machine->cpu[0], irq_callback); +} + /************************************************************* * @@ -652,6 +655,7 @@ static MACHINE_DRIVER_START(gamecstl) MDRV_CPU_PROGRAM_MAP(gamecstl_map, 0) MDRV_CPU_IO_MAP(gamecstl_io, 0) + MDRV_MACHINE_START(gamecstl) MDRV_MACHINE_RESET(gamecstl) MDRV_PCI_BUS_ADD("pcibus", 0)