Fix validation and booting of cpc drivers (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-10-11 08:03:00 +00:00
parent 076063767d
commit 1f92cf5430
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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<floppy_connector>(":upd765a:0")->get_device();
floppy = machine().device<floppy_connector>(":upd765:0")->get_device();
if(floppy)
floppy->mon_w(!BIT(data, 0));
floppy = machine().device<floppy_connector>(":upd765a:1")->get_device();
floppy = machine().device<floppy_connector>(":upd765:1")->get_device();
if(floppy)
floppy->mon_w(!BIT(data, 0));
break;