From 1f92cf5430442b09773cb82baf1b7e9463a58bbf Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 11 Oct 2012 08:03:00 +0000 Subject: [PATCH] Fix validation and booting of cpc drivers (no whatsnew) --- src/mess/drivers/amstrad.c | 1 + src/mess/machine/amstrad.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mess/drivers/amstrad.c b/src/mess/drivers/amstrad.c index 9bd11eec6d0..944ef9a0a40 100644 --- a/src/mess/drivers/amstrad.c +++ b/src/mess/drivers/amstrad.c @@ -1026,6 +1026,7 @@ static MACHINE_CONFIG_DERIVED( aleste, amstrad ) MCFG_PALETTE_INIT_OVERRIDE(amstrad_state,aleste) MCFG_MC146818_ADD( "rtc", MC146818_IGNORE_CENTURY ) + MCFG_DEVICE_REMOVE("upd765") MCFG_I8272A_ADD("upd765", true) MCFG_FLOPPY_DRIVE_ADD("upd765:0", aleste_floppies, "525hd", 0, aleste_floppy_formats) diff --git a/src/mess/machine/amstrad.c b/src/mess/machine/amstrad.c index 7ff1af47572..7151e397db5 100644 --- a/src/mess/machine/amstrad.c +++ b/src/mess/machine/amstrad.c @@ -2118,10 +2118,10 @@ The exception is the case where none of b7-b0 are reset (i.e. port &FBFF), which * "1" the FDD motor will be active. * "0" the FDD motor will be in-active.*/ floppy_image_device *floppy; - floppy = machine().device(":upd765a:0")->get_device(); + floppy = machine().device(":upd765:0")->get_device(); if(floppy) floppy->mon_w(!BIT(data, 0)); - floppy = machine().device(":upd765a:1")->get_device(); + floppy = machine().device(":upd765:1")->get_device(); if(floppy) floppy->mon_w(!BIT(data, 0)); break;