(MESS) tdv2324: Floppy modernization. (nw)

This commit is contained in:
Curt Coder 2012-12-18 15:36:41 +00:00
parent 394ee300e4
commit 6c2f23ebd0
2 changed files with 42 additions and 61 deletions

View File

@ -353,32 +353,6 @@ static Z80DART_INTERFACE( sio_intf )
};
//-------------------------------------------------
// wd17xx_interface fdc_intf
//-------------------------------------------------
static const floppy_interface tdv2324_floppy_interface =
{
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
FLOPPY_STANDARD_8_DSDD,
LEGACY_FLOPPY_OPTIONS_NAME(default),
"floppy_8",
NULL
};
static const wd17xx_interface fdc_intf =
{
DEVCB_NULL,
DEVCB_NULL,
DEVCB_NULL,
{ FLOPPY_0, NULL, NULL, NULL }
};
//-------------------------------------------------
// tms9927_interface vtac_intf
//-------------------------------------------------
@ -391,6 +365,15 @@ static const tms9927_interface vtac_intf =
};
//-------------------------------------------------
// SLOT_INTERFACE( tdv2324_floppies )
//-------------------------------------------------
static SLOT_INTERFACE_START( tdv2324_floppies )
SLOT_INTERFACE( "8dsdd", FLOPPY_8_DSDD )
SLOT_INTERFACE_END
//**************************************************************************
// MACHINE CONFIGURATION
@ -432,8 +415,9 @@ static MACHINE_CONFIG_START( tdv2324, tdv2324_state )
MCFG_PIT8253_ADD(P8253_5_0_TAG, pit0_intf)
MCFG_PIT8253_ADD(P8253_5_1_TAG, pit1_intf)
MCFG_Z80SIO2_ADD(MK3887N4_TAG, 8000000/2, sio_intf)
MCFG_FD1797_ADD(FD1797PL02_TAG, fdc_intf)
MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, tdv2324_floppy_interface)
MCFG_FD1797x_ADD(FD1797PL02_TAG, 8000000/4)
MCFG_FLOPPY_DRIVE_ADD(FD1797PL02_TAG":0", tdv2324_floppies, "8dsdd", NULL, floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD(FD1797PL02_TAG":1", tdv2324_floppies, "8dsdd", NULL, floppy_image_device::default_floppy_formats)
// internal ram
MCFG_RAM_ADD(RAM_TAG)

View File

@ -7,13 +7,11 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
#include "cpu/m6800/m6800.h"
#include "formats/basicdsk.h"
#include "imagedev/flopdrv.h"
#include "imagedev/harddriv.h"
#include "machine/pit8253.h"
#include "machine/pic8259.h"
#include "machine/ram.h"
#include "machine/wd17xx.h"
#include "machine/wd_fdc.h"
#include "machine/z80dart.h"
#include "video/tms9927.h"
@ -79,7 +77,6 @@ public:
// video state
required_shared_ptr<UINT8> m_video_ram;
UINT32 screen_update_tdv2324(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};