mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
cassette config moved inline (nw)
This commit is contained in:
parent
3f73720885
commit
22457cd9ce
@ -22,16 +22,10 @@ const device_type A1BUS_CASSETTE = &device_creator<a1bus_cassette_device>;
|
||||
|
||||
/* sound output */
|
||||
|
||||
static const cassette_interface apple1_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
"apple1_cass"
|
||||
};
|
||||
|
||||
MACHINE_CONFIG_FRAGMENT( cassette )
|
||||
MCFG_CASSETTE_ADD("cassette", apple1_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
MCFG_CASSETTE_INTERFACE("apple1_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
ROM_START( cassette )
|
||||
|
@ -71,11 +71,6 @@ static ADDRESS_MAP_START( adam_ddp_io, AS_IO, 8, adam_digital_data_pack_device )
|
||||
AM_RANGE(M6801_PORT4, M6801_PORT4) AM_READ(p4_r) AM_WRITENOP
|
||||
ADDRESS_MAP_END
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface adam_cassette_interface
|
||||
//-------------------------------------------------
|
||||
|
||||
static const struct CassetteOptions adam_cassette_options =
|
||||
{
|
||||
2, /* channels */
|
||||
@ -83,15 +78,6 @@ static const struct CassetteOptions adam_cassette_options =
|
||||
44100 /* sample frequency */
|
||||
};
|
||||
|
||||
static const cassette_interface adam_cassette_interface =
|
||||
{
|
||||
coleco_adam_cassette_formats,
|
||||
&adam_cassette_options,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
"adam_cass"
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// MACHINE_DRIVER( adam_ddp )
|
||||
//-------------------------------------------------
|
||||
@ -101,8 +87,17 @@ static MACHINE_CONFIG_FRAGMENT( adam_ddp )
|
||||
MCFG_CPU_PROGRAM_MAP(adam_ddp_mem)
|
||||
MCFG_CPU_IO_MAP(adam_ddp_io)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", adam_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette2", adam_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(coleco_adam_cassette_formats)
|
||||
MCFG_CASSETTE_CREATE_OPTS(&adam_cassette_options)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MCFG_CASSETTE_INTERFACE("adam_cass")
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette2")
|
||||
MCFG_CASSETTE_FORMATS(coleco_adam_cassette_formats)
|
||||
MCFG_CASSETTE_CREATE_OPTS(&adam_cassette_options)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MCFG_CASSETTE_INTERFACE("adam_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
@ -22,25 +22,15 @@ const device_type C1530 = &device_creator<c1530_device>;
|
||||
const device_type C1531 = &device_creator<c1531_device>;
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface cbm_cassette_interface
|
||||
//-------------------------------------------------
|
||||
|
||||
const cassette_interface cbm_cassette_interface =
|
||||
{
|
||||
cbm_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state) (CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
"cbm_cass"
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// MACHINE_CONFIG( c2n )
|
||||
//-------------------------------------------------
|
||||
|
||||
static MACHINE_CONFIG_FRAGMENT( c2n )
|
||||
MCFG_CASSETTE_ADD("cassette", cbm_cassette_interface )
|
||||
MCFG_CASSETTE_ADD("cassette" )
|
||||
MCFG_CASSETTE_FORMATS(cbm_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MCFG_CASSETTE_INTERFACE("cbm_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
@ -18,16 +18,6 @@
|
||||
#define VERBOSE 0
|
||||
#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
|
||||
|
||||
/* Default cassette_interface for drivers only wav files */
|
||||
const cassette_interface default_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
CASSETTE_PLAY,
|
||||
"cass"
|
||||
};
|
||||
|
||||
|
||||
// device type definition
|
||||
const device_type CASSETTE = &device_creator<cassette_image_device>;
|
||||
|
||||
@ -36,9 +26,13 @@ const device_type CASSETTE = &device_creator<cassette_image_device>;
|
||||
//-------------------------------------------------
|
||||
|
||||
cassette_image_device::cassette_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
|
||||
: device_t(mconfig, CASSETTE, "Cassette", tag, owner, clock, "cassette_image", __FILE__)
|
||||
, device_image_interface(mconfig, *this)
|
||||
, m_state(CASSETTE_STOPPED)
|
||||
: device_t(mconfig, CASSETTE, "Cassette", tag, owner, clock, "cassette_image", __FILE__),
|
||||
device_image_interface(mconfig, *this),
|
||||
m_state(CASSETTE_STOPPED),
|
||||
m_formats(cassette_default_formats),
|
||||
m_create_opts(NULL),
|
||||
m_default_state(CASSETTE_PLAY),
|
||||
m_interface(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
@ -58,20 +52,6 @@ cassette_image_device::~cassette_image_device()
|
||||
|
||||
void cassette_image_device::device_config_complete()
|
||||
{
|
||||
// inherit a copy of the static data
|
||||
const cassette_interface *intf = reinterpret_cast<const cassette_interface *>(static_config());
|
||||
if (intf != NULL)
|
||||
*static_cast<cassette_interface *>(this) = *intf;
|
||||
|
||||
// or initialize to defaults if none provided
|
||||
else
|
||||
{
|
||||
memset(&m_formats, 0, sizeof(m_formats));
|
||||
memset(&m_create_opts, 0, sizeof(m_create_opts));
|
||||
memset(&m_default_state, 0, sizeof(m_default_state));
|
||||
memset(&m_interface, 0, sizeof(m_interface));
|
||||
}
|
||||
|
||||
m_extension_list[0] = '\0';
|
||||
for (int i = 0; m_formats[i]; i++ )
|
||||
image_specify_extension( m_extension_list, 256, m_formats[i]->extensions );
|
||||
|
@ -37,20 +37,9 @@ enum cassette_state
|
||||
TYPE DEFINITIONS
|
||||
***************************************************************************/
|
||||
|
||||
// ======================> cassette_interface
|
||||
|
||||
struct cassette_interface
|
||||
{
|
||||
const struct CassetteFormat* const *m_formats;
|
||||
const struct CassetteOptions *m_create_opts;
|
||||
cassette_state m_default_state;
|
||||
const char * m_interface;
|
||||
};
|
||||
|
||||
// ======================> cassette_image_device
|
||||
|
||||
class cassette_image_device : public device_t,
|
||||
public cassette_interface,
|
||||
public device_image_interface
|
||||
{
|
||||
public:
|
||||
@ -58,6 +47,11 @@ public:
|
||||
cassette_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
|
||||
virtual ~cassette_image_device();
|
||||
|
||||
static void static_set_formats(device_t &device, const struct CassetteFormat* const *formats) { downcast<cassette_image_device &>(device).m_formats = formats; }
|
||||
static void static_set_create_opts(device_t &device, const struct CassetteOptions *create_opts) { downcast<cassette_image_device &>(device).m_create_opts = create_opts; }
|
||||
static void static_set_default_state(device_t &device, cassette_state default_state) { downcast<cassette_image_device &>(device).m_default_state = default_state; }
|
||||
static void static_set_interface(device_t &device, const char *_interface) { downcast<cassette_image_device &>(device).m_interface = _interface; }
|
||||
|
||||
// image-level overrides
|
||||
virtual bool call_load();
|
||||
virtual bool call_create(int format_type, option_resolution *format_options);
|
||||
@ -110,6 +104,10 @@ private:
|
||||
double m_speed; // speed multiplier for tape speeds other than standard 1.875ips (used in adam driver)
|
||||
int m_direction; // direction select
|
||||
char m_extension_list[256];
|
||||
const struct CassetteFormat* const *m_formats;
|
||||
const struct CassetteOptions *m_create_opts;
|
||||
cassette_state m_default_state;
|
||||
const char * m_interface;
|
||||
};
|
||||
|
||||
// device type definition
|
||||
@ -121,14 +119,22 @@ typedef device_type_iterator<&device_creator<cassette_image_device>, cassette_im
|
||||
/***************************************************************************
|
||||
DEVICE CONFIGURATION MACROS
|
||||
***************************************************************************/
|
||||
#define MCFG_CASSETTE_ADD(_tag, _config) \
|
||||
MCFG_DEVICE_ADD(_tag, CASSETTE, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
#define MCFG_CASSETTE_ADD(_tag) \
|
||||
MCFG_DEVICE_ADD(_tag, CASSETTE, 0)
|
||||
|
||||
#define MCFG_CASSETTE_MODIFY(_tag, _config) \
|
||||
MCFG_DEVICE_MODIFY(_tag) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
#define MCFG_CASSETTE_MODIFY(_tag) \
|
||||
MCFG_DEVICE_MODIFY(_tag)
|
||||
|
||||
#define MCFG_CASSETTE_FORMATS(_formats) \
|
||||
cassette_image_device::static_set_formats(*device, _formats);
|
||||
|
||||
extern const cassette_interface default_cassette_interface;
|
||||
#define MCFG_CASSETTE_CREATE_OPTS(_create_opts) \
|
||||
cassette_image_device::static_set_create_opts(*device, _create_opts);
|
||||
|
||||
#define MCFG_CASSETTE_DEFAULT_STATE(_state) \
|
||||
cassette_image_device::static_set_default_state(*device, (cassette_state) (_state));
|
||||
|
||||
#define MCFG_CASSETTE_INTERFACE(_interface) \
|
||||
cassette_image_device::static_set_interface(*device, _interface);
|
||||
|
||||
#endif /* CASSETTE_H */
|
||||
|
@ -245,10 +245,6 @@ int floppy_get_count(running_machine &machine);
|
||||
MCFG_DEVICE_ADD(_tag, LEGACY_FLOPPY, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_DRIVE_MODIFY(_tag, _config) \
|
||||
MCFG_DEVICE_MODIFY(_tag) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(_config) \
|
||||
MCFG_DEVICE_ADD(FLOPPY_0, LEGACY_FLOPPY, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
@ -259,36 +255,10 @@ int floppy_get_count(running_machine &machine);
|
||||
MCFG_DEVICE_ADD(FLOPPY_3, LEGACY_FLOPPY, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_4_DRIVES_MODIFY(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_0) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_1) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_2) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_3) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_4_DRIVES_REMOVE() \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_0) \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_1) \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_2) \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_3)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(_config) \
|
||||
MCFG_DEVICE_ADD(FLOPPY_0, LEGACY_FLOPPY, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
MCFG_DEVICE_ADD(FLOPPY_1, LEGACY_FLOPPY, 0) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_2_DRIVES_MODIFY(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_0) \
|
||||
MCFG_DEVICE_CONFIG(_config) \
|
||||
MCFG_DEVICE_MODIFY(FLOPPY_1) \
|
||||
MCFG_DEVICE_CONFIG(_config)
|
||||
|
||||
#define MCFG_LEGACY_FLOPPY_2_DRIVES_REMOVE() \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_0) \
|
||||
MCFG_DEVICE_REMOVE(FLOPPY_1)
|
||||
|
||||
#endif /* __FLOPDRV_H__ */
|
||||
|
@ -1895,14 +1895,6 @@ static INPUT_PORTS_START( a2600 )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
static const cassette_interface a2600_cassette_interface =
|
||||
{
|
||||
a26_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"a2600_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_FRAGMENT(a2600_cartslot)
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
MCFG_CARTSLOT_EXTENSION_LIST("bin,a26")
|
||||
@ -1954,7 +1946,10 @@ static MACHINE_CONFIG_START( a2600, a2600_state )
|
||||
|
||||
MCFG_FRAGMENT_ADD(a2600_cartslot)
|
||||
MCFG_SOFTWARE_LIST_FILTER("cart_list", "NTSC")
|
||||
MCFG_CASSETTE_ADD( "cassette", a2600_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(a26_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("a2600_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1998,7 +1993,10 @@ static MACHINE_CONFIG_START( a2600p, a2600_state )
|
||||
|
||||
MCFG_FRAGMENT_ADD(a2600_cartslot)
|
||||
MCFG_SOFTWARE_LIST_FILTER("cart_list", "PAL")
|
||||
MCFG_CASSETTE_ADD( "cassette", a2600_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(a26_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("a2600_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
@ -598,7 +598,7 @@ static MACHINE_CONFIG_START( a5105, a5105_state )
|
||||
MCFG_DEVICE_ADD("z80pio", Z80PIO, XTAL_15MHz / 4)
|
||||
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE("maincpu", 0))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
MCFG_UPD765A_ADD("upd765a", true, true)
|
||||
MCFG_FLOPPY_DRIVE_ADD("upd765a:0", a5105_floppies, "525qd", a5105_state::floppy_formats)
|
||||
|
@ -257,7 +257,7 @@ static MACHINE_CONFIG_START( a6809, a6809_state )
|
||||
|
||||
MCFG_DEVICE_ADD("keyboard", GENERIC_KEYBOARD, 0)
|
||||
MCFG_GENERIC_KEYBOARD_CB(WRITE8(a6809_state, kbd_put))
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("a6809_c", a6809_state, a6809_c, attotime::from_hz(4800))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("a6809_p", a6809_state, a6809_p, attotime::from_hz(40000))
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -398,19 +398,6 @@ static const z80_daisy_config abc80_daisy_chain[] =
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface abc80_cassette_interface
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface abc80_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// ABC80_KEYBOARD_INTERFACE( kb_intf )
|
||||
//-------------------------------------------------
|
||||
@ -546,7 +533,8 @@ static MACHINE_CONFIG_START( abc80, abc80_state )
|
||||
MCFG_Z80PIO_IN_PB_CB(READ8(abc80_state, pio_pb_r))
|
||||
MCFG_Z80PIO_OUT_PB_CB(WRITE8(abc80_state, pio_pb_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", abc80_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_DEVICE_ADD(ABC80_KEYBOARD_TAG, ABC80_KEYBOARD, 0)
|
||||
MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(WRITELINE(abc80_state, keydown_w))
|
||||
|
@ -764,19 +764,6 @@ static const z80_daisy_config abc800_daisy_chain[] =
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface cass_intf
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface cass_intf =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// MACHINE INITIALIZATION
|
||||
//**************************************************************************
|
||||
@ -1054,7 +1041,8 @@ static MACHINE_CONFIG_START( abc800c, abc800c_state )
|
||||
MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
|
||||
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", cass_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
|
||||
@ -1128,7 +1116,8 @@ static MACHINE_CONFIG_START( abc800m, abc800m_state )
|
||||
MCFG_Z80DART_OUT_TXDB_CB(DEVWRITELINE(ABC_KEYBOARD_PORT_TAG, abc_keyboard_port_device, txd_w))
|
||||
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", cass_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
|
||||
@ -1204,7 +1193,8 @@ static MACHINE_CONFIG_START( abc802, abc802_state )
|
||||
MCFG_Z80DART_OUT_RTSB_CB(WRITELINE(abc802_state, mux80_40_w))
|
||||
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", cass_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(Z80DART_TAG, z80dart_device, rxa_w))
|
||||
|
@ -149,7 +149,7 @@ static MACHINE_CONFIG_START( ac1, ac1_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( ac1_32, ac1 )
|
||||
|
@ -530,19 +530,6 @@ UINT32 ace_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, con
|
||||
// DEVICE CONFIGURATION
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface ace_cassette_interface
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface ace_cassette_interface =
|
||||
{
|
||||
ace_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// ay8910_interface psg_intf
|
||||
//-------------------------------------------------
|
||||
@ -724,7 +711,10 @@ static MACHINE_CONFIG_START( ace, ace_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
// devices
|
||||
MCFG_CASSETTE_ADD("cassette", ace_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(ace_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
|
||||
MCFG_SNAPSHOT_ADD("snapshot", ace_state, ace, "ace", 1)
|
||||
|
||||
MCFG_DEVICE_ADD(I8255_TAG, I8255A, 0)
|
||||
|
@ -258,7 +258,7 @@ static MACHINE_CONFIG_START( acrnsys1, acrnsys1_state )
|
||||
MCFG_INS8154_OUT_A_CB(WRITE8(acrnsys1_state, ins8154_b1_port_a_w))
|
||||
MCFG_INS8154_OUT_B_CB(WRITE8(acrnsys1_state, acrnsys1_led_segment_w))
|
||||
MCFG_DEVICE_ADD("ic8_7445", TTL74145, 0)
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("acrnsys1_c", acrnsys1_state, acrnsys1_c, attotime::from_hz(4800))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("acrnsys1_p", acrnsys1_state, acrnsys1_p, attotime::from_hz(40000))
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -140,30 +140,6 @@ static INPUT_PORTS_START( aim65 )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
DEVICE INTERFACES
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
// Deck 1 can play and record
|
||||
static const cassette_interface aim65_1_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
// Deck 2 can only record
|
||||
static const cassette_interface aim65_2_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_RECORD | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
/***************************************************************************
|
||||
MACHINE DRIVERS
|
||||
***************************************************************************/
|
||||
@ -292,8 +268,13 @@ static MACHINE_CONFIG_START( aim65, aim65_state )
|
||||
MCFG_PIA_WRITEPA_HANDLER(WRITE8(aim65_state, aim65_pia_a_w))
|
||||
MCFG_PIA_WRITEPB_HANDLER(WRITE8(aim65_state, aim65_pia_b_w))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", aim65_1_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette2", aim65_2_cassette_interface )
|
||||
// Deck 1 can play and record
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
// Deck 2 can only record
|
||||
MCFG_CASSETTE_ADD( "cassette2" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_RECORD | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_CARTSLOT_ADD("z26")
|
||||
MCFG_CARTSLOT_EXTENSION_LIST("z26")
|
||||
|
@ -243,14 +243,6 @@ static HD44780_PIXEL_UPDATE(sr16_pixel_update)
|
||||
bitmap.pix16(line*9 + y, pos*6 + x) = state;
|
||||
}
|
||||
|
||||
static const cassette_interface hr16_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
"hr16_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( hr16, alesis_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu",I8031, XTAL_12MHz)
|
||||
@ -270,7 +262,9 @@ static MACHINE_CONFIG_START( hr16, alesis_state )
|
||||
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
|
||||
MCFG_PALETTE_INIT_OWNER(alesis_state, alesis)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", hr16_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
MCFG_CASSETTE_INTERFACE("hr16_cass")
|
||||
|
||||
MCFG_HD44780_ADD("hd44780")
|
||||
MCFG_HD44780_LCD_SIZE(2, 16)
|
||||
|
@ -444,14 +444,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(alphatro_state::timer_p)
|
||||
}
|
||||
}
|
||||
|
||||
static const cassette_interface alphatro_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state) (CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"alphatro_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( alphatro, alphatro_state )
|
||||
|
||||
/* basic machine hardware */
|
||||
@ -489,7 +481,10 @@ static MACHINE_CONFIG_START( alphatro, alphatro_state )
|
||||
MCFG_DEVICE_ADD("usart_clock", CLOCK, 19218) // 19218 to load a real tape, 19222 to load a tape made by this driver
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(alphatro_state, write_usart_clock))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", alphatro_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("alphatro_cass")
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_c", alphatro_state, timer_c, attotime::from_hz(4800))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_p", alphatro_state, timer_p, attotime::from_hz(40000))
|
||||
|
||||
|
@ -803,14 +803,6 @@ speed of 3.8 MHz */
|
||||
*/
|
||||
|
||||
|
||||
static const cassette_interface amstrad_cassette_interface =
|
||||
{
|
||||
cdt_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state) (CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"cpc_cass"
|
||||
};
|
||||
|
||||
static SLOT_INTERFACE_START( amstrad_floppies )
|
||||
SLOT_INTERFACE( "3ssdd", FLOPPY_3_SSDD )
|
||||
SLOT_INTERFACE_END
|
||||
@ -898,7 +890,11 @@ static MACHINE_CONFIG_START( amstrad_nofdc, amstrad_state )
|
||||
/* snapshot */
|
||||
MCFG_SNAPSHOT_ADD("snapshot", amstrad_state, amstrad, "sna", 0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", amstrad_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(cdt_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("cpc_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","cpc_cass")
|
||||
|
||||
MCFG_DEVICE_ADD("exp", CPC_EXPANSION_SLOT, 0)
|
||||
@ -989,7 +985,10 @@ static MACHINE_CONFIG_START( cpcplus, amstrad_state )
|
||||
/* snapshot */
|
||||
MCFG_SNAPSHOT_ADD("snapshot", amstrad_state, amstrad, "sna", 0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", amstrad_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(cdt_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("cpc_cass")
|
||||
|
||||
MCFG_UPD765A_ADD("upd765", true, true)
|
||||
|
||||
|
@ -476,16 +476,6 @@ static INPUT_PORTS_START( apfimag )
|
||||
PORT_BIT(0xff, 0xff, IPT_UNUSED)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
static const cassette_interface apf_cassette_interface =
|
||||
{
|
||||
apf_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY),
|
||||
NULL
|
||||
};
|
||||
|
||||
static LEGACY_FLOPPY_OPTIONS_START(apfimag)
|
||||
LEGACY_FLOPPY_OPTION(apfimag, "apd", "APF disk image", basicdsk_identify_default, basicdsk_construct_default, NULL,
|
||||
HEADS([1])
|
||||
@ -566,7 +556,10 @@ static MACHINE_CONFIG_DERIVED( apfimag, apfm1000 )
|
||||
MCFG_PIA_READPB_HANDLER(READ8(apf_state, pia1_portb_r))
|
||||
MCFG_PIA_WRITEPB_HANDLER(WRITE8(apf_state, pia1_portb_w))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", apf_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(apf_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
|
||||
MCFG_FD1771_ADD("fdc", default_wd17xx_interface )
|
||||
MCFG_LEGACY_FLOPPY_2_DRIVES_ADD(apfimag_floppy_interface)
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -142,14 +142,6 @@ static INPUT_PORTS_START( apogee )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Rus/Lat") PORT_CODE(KEYCODE_LALT) PORT_CODE(KEYCODE_RALT)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const cassette_interface apogee_cassette_interface =
|
||||
{
|
||||
rka_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"apogee_cass"
|
||||
};
|
||||
|
||||
static const INT16 speaker_levels[] = {-32767, -10922, 10922, 32767};
|
||||
|
||||
static const speaker_interface apogee_speaker_interface =
|
||||
@ -270,7 +262,11 @@ static MACHINE_CONFIG_START( apogee, apogee_state )
|
||||
MCFG_I8257_OUT_IOW_2_CB(DEVWRITE8("i8275", i8275_device, dack_w))
|
||||
MCFG_I8257_REVERSE_RW_MODE(1)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", apogee_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rka_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("apogee_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","apogee")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -939,14 +939,6 @@ PALETTE_INIT_MEMBER(apple2_state,apple2)
|
||||
palette.set_pen_colors(0, apple2_palette, ARRAY_LENGTH(apple2_palette));
|
||||
}
|
||||
|
||||
static const cassette_interface apple2_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static SLOT_INTERFACE_START(apple2_slot0_cards)
|
||||
SLOT_INTERFACE("lang", A2BUS_LANG) /* Apple II Language Card */
|
||||
SLOT_INTERFACE_END
|
||||
@ -1064,7 +1056,8 @@ static MACHINE_CONFIG_DERIVED( apple2, apple2_common )
|
||||
/* At the moment the RAM bank $C000-$FFFF is available only if you choose */
|
||||
/* default configuration: on real machine is present also in configurations */
|
||||
/* with less memory, provided that the language card is installed */
|
||||
MCFG_CASSETTE_ADD( "cassette", apple2_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( apple2p, apple2_common )
|
||||
@ -1079,7 +1072,8 @@ static MACHINE_CONFIG_DERIVED( apple2p, apple2_common )
|
||||
/* At the moment the RAM bank $C000-$FFFF is available only if you choose */
|
||||
/* default configuration: on real machine is present also in configurations */
|
||||
/* with less memory, provided that the language card is installed */
|
||||
MCFG_CASSETTE_ADD( "cassette", apple2_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( apple2e, apple2_common )
|
||||
@ -1090,7 +1084,8 @@ static MACHINE_CONFIG_DERIVED( apple2e, apple2_common )
|
||||
MCFG_RAM_DEFAULT_SIZE("128K")
|
||||
MCFG_RAM_EXTRA_OPTIONS("64K")
|
||||
MCFG_RAM_DEFAULT_VALUE(0x00)
|
||||
MCFG_CASSETTE_ADD( "cassette", apple2_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
|
||||
/* keyboard controller */
|
||||
MCFG_DEVICE_MODIFY("ay3600")
|
||||
@ -1115,7 +1110,8 @@ static MACHINE_CONFIG_DERIVED( tk2000, apple2_common )
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
MCFG_RAM_DEFAULT_SIZE("64K")
|
||||
MCFG_RAM_DEFAULT_VALUE(0x00)
|
||||
MCFG_CASSETTE_ADD( "cassette", apple2_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
|
||||
// TK2000 doesn't have slots, and it doesn't emulate a language card
|
||||
// C05A maps RAM from C100-FFFF, C05B maps ROM
|
||||
|
@ -831,14 +831,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(applix_state::cass_timer)
|
||||
}
|
||||
}
|
||||
|
||||
static const cassette_interface applix_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( applix, applix_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 7500000)
|
||||
@ -891,7 +883,9 @@ static MACHINE_CONFIG_START( applix, applix_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", applix_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_WD1772x_ADD("fdc", XTAL_16MHz / 2) //connected to Z80H clock pin
|
||||
MCFG_FLOPPY_DRIVE_ADD("fdc:0", applix_floppies, "35dd", applix_state::floppy_formats)
|
||||
MCFG_FLOPPY_DRIVE_ADD("fdc:1", applix_floppies, "35dd", applix_state::floppy_formats)
|
||||
|
@ -347,14 +347,6 @@ static const ay8910_interface aquarius_ay8910_interface =
|
||||
DEVCB_NULL
|
||||
};
|
||||
|
||||
static const cassette_interface aquarius_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( aquarius, aquarius_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, XTAL_3_579545MHz) // ???
|
||||
@ -386,7 +378,8 @@ static MACHINE_CONFIG_START( aquarius, aquarius_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", aquarius_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
/* cartridge */
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
|
@ -90,14 +90,6 @@ FLOPPY_FORMATS_MEMBER( asst128_state::asst128_formats )
|
||||
FLOPPY_ASST128_FORMAT
|
||||
FLOPPY_FORMATS_END
|
||||
|
||||
static const cassette_interface asst128_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static DEVICE_INPUT_DEFAULTS_START( asst128 )
|
||||
DEVICE_INPUT_DEFAULTS("DSW0", 0x30, 0x20)
|
||||
DEVICE_INPUT_DEFAULTS_END
|
||||
@ -112,7 +104,8 @@ static MACHINE_CONFIG_START( asst128, asst128_state )
|
||||
MCFG_DEVICE_INPUT_DEFAULTS(asst128)
|
||||
|
||||
MCFG_DEVICE_REMOVE("mb:cassette")
|
||||
MCFG_CASSETTE_ADD("mb:cassette", asst128_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("mb:cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_ISA8_SLOT_ADD("mb:isa", "isa_cga", pc_isa8_cards, "cga_mc1502", true)
|
||||
MCFG_ISA8_SLOT_ADD("mb:isa", "isa_lpt", pc_isa8_cards, "lpt", true)
|
||||
|
@ -602,9 +602,6 @@ static const floppy_interface atom_floppy_interface =
|
||||
"floppy_5_25"
|
||||
};
|
||||
|
||||
/*-------------------------------------------------
|
||||
cassette_interface atom_cassette_interface
|
||||
-------------------------------------------------*/
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(atom_state::cassette_output_tick)
|
||||
{
|
||||
@ -615,14 +612,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(atom_state::cassette_output_tick)
|
||||
m_hz2400 = !m_hz2400;
|
||||
}
|
||||
|
||||
static const cassette_interface atom_cassette_interface =
|
||||
{
|
||||
atom_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state) (CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/*-------------------------------------------------
|
||||
mc6847_interface vdg_intf
|
||||
-------------------------------------------------*/
|
||||
@ -823,7 +812,10 @@ static MACHINE_CONFIG_START( atom, atom_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", atom_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(atom_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_QUICKLOAD_ADD("quickload", atom_state, atom_atm, "atm", 0)
|
||||
|
||||
/* cartridge */
|
||||
@ -907,7 +899,9 @@ static MACHINE_CONFIG_START( atombb, atom_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", atom_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(atom_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -578,14 +578,6 @@ INTERRUPT_GEN_MEMBER(bbc_state::bbcb_vsync)
|
||||
//};
|
||||
|
||||
|
||||
static const cassette_interface bbc_cassette_interface =
|
||||
{
|
||||
bbc_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY),
|
||||
"bbc_cass"
|
||||
};
|
||||
|
||||
|
||||
WRITE_LINE_MEMBER(bbc_state::bbcb_acia6850_irq_w)
|
||||
{
|
||||
@ -697,7 +689,10 @@ static MACHINE_CONFIG_START( bbca, bbc_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", bbc_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(bbc_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("bbc_cass")
|
||||
|
||||
/* software lists */
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_ls_a", "bbca_cass")
|
||||
@ -930,7 +925,10 @@ static MACHINE_CONFIG_START( bbcm, bbc_state )
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", bbc_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(bbc_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("bbc_cass")
|
||||
|
||||
/* cartridges */
|
||||
MCFG_CARTSLOT_ADD("cart1")
|
||||
|
@ -313,7 +313,7 @@ static MACHINE_CONFIG_START( binbug, binbug_state )
|
||||
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("keyboard", keyboard)
|
||||
|
||||
/* Cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
@ -550,7 +550,7 @@ static MACHINE_CONFIG_START( dg680, dg680_state )
|
||||
MCFG_GENERIC_KEYBOARD_CB(WRITE8(dg680_state, kbd_put))
|
||||
|
||||
/* Cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
@ -155,16 +155,6 @@ static INPUT_PORTS_START( bk0010 )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
/* Machine driver */
|
||||
static const cassette_interface bk0010_cassette_interface =
|
||||
{
|
||||
/*rk8_cassette_formats*/cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"bk0010_cass"
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( bk0010, bk_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", T11, 3000000)
|
||||
@ -188,7 +178,10 @@ static MACHINE_CONFIG_START( bk0010, bk_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", bk0010_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("bk0010_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","bk0010")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -373,7 +373,7 @@ static MACHINE_CONFIG_START( bmjr, bmjr_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
/* Devices */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/* ROM definition */
|
||||
|
@ -1009,7 +1009,7 @@ static MACHINE_CONFIG_START( bml3_common, bml3_state )
|
||||
MCFG_DEVICE_ADD("acia_clock", CLOCK, 9600) // 600 baud x 16(divider) = 9600
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(bml3_state, write_acia_clock))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
/* Audio */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
@ -186,14 +186,6 @@ void bob85_state::machine_reset()
|
||||
{
|
||||
}
|
||||
|
||||
static const cassette_interface bob85_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
WRITE_LINE_MEMBER( bob85_state::sod_w )
|
||||
{
|
||||
m_cass->output(state ? +1.0 : -1.0);
|
||||
@ -216,7 +208,8 @@ static MACHINE_CONFIG_START( bob85, bob85_state )
|
||||
MCFG_DEFAULT_LAYOUT(layout_bob85)
|
||||
|
||||
// devices
|
||||
MCFG_CASSETTE_ADD("cassette", bob85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/* ROM definition */
|
||||
|
@ -246,14 +246,6 @@ void c80_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface c80_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED ),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( c80, c80_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD(Z80_TAG, Z80, 2500000) /* U880D */
|
||||
@ -275,7 +267,9 @@ static MACHINE_CONFIG_START( c80, c80_state )
|
||||
MCFG_DEVICE_ADD(Z80PIO2_TAG, Z80PIO, 2500000)
|
||||
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", c80_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED )
|
||||
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
@ -293,7 +293,7 @@ static MACHINE_CONFIG_START( cd2650, cd2650_state )
|
||||
/* Devices */
|
||||
MCFG_DEVICE_ADD(KEYBOARD_TAG, GENERIC_KEYBOARD, 0)
|
||||
MCFG_GENERIC_KEYBOARD_CB(WRITE8(cd2650_state, kbd_put))
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/* ROM definition */
|
||||
|
@ -482,14 +482,6 @@ static const ay8910_interface cgenie_ay8910_interface =
|
||||
};
|
||||
|
||||
|
||||
static const cassette_interface cgenie_cassette_interface =
|
||||
{
|
||||
cgenie_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
NULL
|
||||
};
|
||||
|
||||
// This is currently broken
|
||||
static LEGACY_FLOPPY_OPTIONS_START(cgenie )
|
||||
LEGACY_FLOPPY_OPTION( cgd, "cgd", "Colour Genie disk image", basicdsk_identify_default, basicdsk_construct_default, NULL,
|
||||
@ -540,7 +532,9 @@ static MACHINE_CONFIG_START( cgenie_common, cgenie_state )
|
||||
MCFG_SOUND_CONFIG(cgenie_ay8910_interface)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.75)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", cgenie_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(cgenie_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
|
||||
MCFG_FD1793_ADD("wd179x", cgenie_wd17xx_interface ) // TODO confirm type
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
#include "bus/coco/coco_pak.h"
|
||||
#include "bus/coco/coco_fdc.h"
|
||||
#include "bus/coco/coco_multi.h"
|
||||
|
||||
#include "formats/coco_cas.h"
|
||||
|
||||
//**************************************************************************
|
||||
// ADDRESS MAPS
|
||||
@ -299,7 +299,9 @@ static MACHINE_CONFIG_START( coco, coco12_state )
|
||||
|
||||
MCFG_SAM6883_ADD(SAM_TAG, XTAL_3_579545MHz, coco12_state::sam6883_config)
|
||||
MCFG_SAM6883_RES_CALLBACK(READ8(coco12_state, sam_read))
|
||||
MCFG_CASSETTE_ADD("cassette", coco_state::coco_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(coco_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, "printer")
|
||||
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(PIA1_TAG, pia6821_device, ca1_w))
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "includes/coco3.h"
|
||||
#include "cpu/m6809/m6809.h"
|
||||
#include "cpu/m6809/hd6309.h"
|
||||
#include "formats/coco_cas.h"
|
||||
#include "coco3.lh"
|
||||
|
||||
|
||||
@ -269,7 +270,9 @@ static MACHINE_CONFIG_START( coco3, coco3_state )
|
||||
MCFG_PIA_IRQA_HANDLER(WRITELINE(coco_state, pia1_firq_a))
|
||||
MCFG_PIA_IRQB_HANDLER(WRITELINE(coco_state, pia1_firq_b))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", coco_state::coco_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(coco_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, "printer")
|
||||
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(PIA1_TAG, pia6821_device, ca1_w))
|
||||
|
@ -585,25 +585,11 @@ WRITE8_MEMBER( compis_state::ppi_pc_w )
|
||||
m_isbx0->opt0_w(BIT(data, 7));
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface compis_cassette_interface
|
||||
//-------------------------------------------------
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER( compis_state::tape_tick )
|
||||
{
|
||||
m_maincpu->tmrin0_w(m_cassette->input() > 0.0);
|
||||
}
|
||||
|
||||
static const cassette_interface compis_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// MACHINE INITIALIZATION
|
||||
//**************************************************************************
|
||||
@ -709,7 +695,9 @@ static MACHINE_CONFIG_START( compis, compis_state )
|
||||
MCFG_MM58274C_MODE24(0) // 12 hour
|
||||
MCFG_MM58274C_DAY1(1) // monday
|
||||
|
||||
MCFG_CASSETTE_ADD(CASSETTE_TAG, compis_cassette_interface)
|
||||
MCFG_CASSETTE_ADD(CASSETTE_TAG)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", compis_state, tape_tick, attotime::from_hz(44100))
|
||||
|
||||
MCFG_RS232_PORT_ADD(RS232_A_TAG, default_rs232_devices, NULL)
|
||||
|
@ -514,19 +514,6 @@ WRITE8_MEMBER( comx35_state::sc_w )
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface cassette_intf
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface cassette_intf =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// COMX_EXPANSION_INTERFACE( expansion_intf )
|
||||
//-------------------------------------------------
|
||||
@ -634,7 +621,8 @@ static MACHINE_CONFIG_START( pal, comx35_state )
|
||||
MCFG_CDP1871_D11_CALLBACK(IOPORT("D11"))
|
||||
MCFG_CDP1871_DA_CALLBACK(INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF3))
|
||||
MCFG_QUICKLOAD_ADD("quickload", comx35_state, comx35_comx, "comx", 0)
|
||||
MCFG_CASSETTE_ADD("cassette", cassette_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
// expansion bus
|
||||
MCFG_COMX_EXPANSION_SLOT_ADD(EXPANSION_TAG, comx_expansion_cards, "eb")
|
||||
@ -683,7 +671,8 @@ static MACHINE_CONFIG_START( ntsc, comx35_state )
|
||||
MCFG_CDP1871_D11_CALLBACK(IOPORT("D11"))
|
||||
MCFG_CDP1871_DA_CALLBACK(INPUTLINE(CDP1802_TAG, COSMAC_INPUT_LINE_EF3))
|
||||
MCFG_QUICKLOAD_ADD("quickload", comx35_state, comx35_comx, "comx", 0)
|
||||
MCFG_CASSETTE_ADD("cassette", cassette_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
// expansion bus
|
||||
MCFG_COMX_EXPANSION_SLOT_ADD(EXPANSION_TAG, comx_expansion_cards, "eb")
|
||||
|
@ -500,14 +500,6 @@ QUICKLOAD_LOAD_MEMBER( cosmicos_state, cosmicos )
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface cosmicos_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( cosmicos, cosmicos_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_1_75MHz)
|
||||
@ -544,7 +536,8 @@ static MACHINE_CONFIG_START( cosmicos, cosmicos_state )
|
||||
|
||||
/* devices */
|
||||
MCFG_QUICKLOAD_ADD("quickload", cosmicos_state, cosmicos, "bin", 0)
|
||||
MCFG_CASSETTE_ADD("cassette", cosmicos_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -307,7 +307,7 @@ static MACHINE_CONFIG_START( cp1, cp1_state )
|
||||
|
||||
MCFG_DEFAULT_LAYOUT(layout_cp1)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", default_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
|
||||
MCFG_QUICKLOAD_ADD("quickload", cp1_state, quickload, "obj", 1)
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -686,30 +686,6 @@ WRITE_LINE_MEMBER( laser2001_state::pia_cb2_w )
|
||||
}
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
cassette_interface crvision_cassette_interface
|
||||
-------------------------------------------------*/
|
||||
|
||||
static const cassette_interface crvision_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/*-------------------------------------------------
|
||||
cassette_interface lasr2001_cassette_interface
|
||||
-------------------------------------------------*/
|
||||
|
||||
static const cassette_interface lasr2001_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
MACHINE INITIALIZATION
|
||||
***************************************************************************/
|
||||
@ -873,7 +849,9 @@ static MACHINE_CONFIG_START( creativision, crvision_state )
|
||||
MCFG_PIA_WRITEPA_HANDLER(WRITE8(crvision_state, pia_pa_w))
|
||||
MCFG_PIA_WRITEPB_HANDLER(DEVWRITE8(SN76489_TAG, sn76496_base_device, write))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", crvision_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
|
||||
MCFG_CENTRONICS_BUSY_HANDLER(DEVWRITELINE("cent_status_in", input_buffer_device, write_bit7))
|
||||
|
||||
@ -954,7 +932,8 @@ static MACHINE_CONFIG_START( lasr2001, laser2001_state )
|
||||
MCFG_PIA_CA2_HANDLER(WRITELINE(laser2001_state, pia_ca2_w))
|
||||
MCFG_PIA_CB2_HANDLER(WRITELINE(laser2001_state, pia_cb2_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", lasr2001_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_CENTRONICS_ADD("centronics", centronics_printers, "printer")
|
||||
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(laser2001_state, write_centronics_busy))
|
||||
|
@ -337,14 +337,6 @@ void d6800_state::machine_reset()
|
||||
|
||||
/* Machine Drivers */
|
||||
|
||||
static const cassette_interface d6800_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
QUICKLOAD_LOAD_MEMBER( d6800_state, d6800 )
|
||||
{
|
||||
address_space &space = m_maincpu->space(AS_PROGRAM);
|
||||
@ -418,7 +410,9 @@ static MACHINE_CONFIG_START( d6800, d6800_state )
|
||||
MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line))
|
||||
MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("maincpu", m6800_cpu_device, irq_line))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", d6800_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("d6800_c", d6800_state, d6800_c, attotime::from_hz(4800))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("d6800_p", d6800_state, d6800_p, attotime::from_hz(40000))
|
||||
|
||||
|
@ -161,14 +161,6 @@ static INPUT_PORTS_START (dai)
|
||||
PORT_BIT(0xcb, IP_ACTIVE_HIGH, IPT_UNUSED)
|
||||
INPUT_PORTS_END
|
||||
|
||||
static const cassette_interface dai_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout dai_charlayout =
|
||||
{
|
||||
@ -230,7 +222,8 @@ static MACHINE_CONFIG_START( dai, dai_state )
|
||||
MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", dai_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* tms5501 */
|
||||
MCFG_DEVICE_ADD("tms5501", TMS5501, 2000000)
|
||||
|
@ -238,7 +238,7 @@ static MACHINE_CONFIG_START( dauphin, dauphin_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("dauphin_c", dauphin_state, dauphin_c, attotime::from_hz(4000))
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "includes/dragon.h"
|
||||
#include "includes/dgnalpha.h"
|
||||
#include "imagedev/cassette.h"
|
||||
#include "formats/coco_cas.h"
|
||||
#include "cpu/m6809/m6809.h"
|
||||
#include "bus/coco/coco_232.h"
|
||||
#include "bus/coco/coco_orch90.h"
|
||||
@ -155,7 +156,10 @@ static MACHINE_CONFIG_START( dragon_base, dragon_state )
|
||||
|
||||
MCFG_SAM6883_ADD(SAM_TAG, XTAL_4_433619MHz, dragon_state::sam6883_config)
|
||||
MCFG_SAM6883_RES_CALLBACK(READ8(dragon_state, sam_read))
|
||||
MCFG_CASSETTE_ADD("cassette", dragon_state::coco_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(coco_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_DEVICE_ADD(PRINTER_TAG, PRINTER, 0)
|
||||
|
||||
// video hardware
|
||||
|
@ -170,14 +170,6 @@ ROM_START(electron)
|
||||
/* 3c000 15 available for cartridges with a language ROM */
|
||||
ROM_END
|
||||
|
||||
static const cassette_interface electron_cassette_interface =
|
||||
{
|
||||
uef_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( electron, electron_state )
|
||||
MCFG_CPU_ADD( "maincpu", M6502, 2000000 )
|
||||
MCFG_CPU_PROGRAM_MAP( electron_mem)
|
||||
@ -199,7 +191,9 @@ static MACHINE_CONFIG_START( electron, electron_state )
|
||||
MCFG_SOUND_ADD( "beeper", BEEP, 0 )
|
||||
MCFG_SOUND_ROUTE( ALL_OUTPUTS, "mono", 1.00 )
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", electron_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(uef_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
MCFG_CARTSLOT_EXTENSION_LIST("bin")
|
||||
|
@ -215,14 +215,6 @@ void elf2_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface elf_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
QUICKLOAD_LOAD_MEMBER( elf2_state, elf )
|
||||
{
|
||||
int size = image.length();
|
||||
@ -274,7 +266,9 @@ static MACHINE_CONFIG_START( elf2, elf2_state )
|
||||
MCFG_DEVICE_ADD(DM9368_L_TAG, DM9368, 0)
|
||||
MCFG_OUTPUT_NAME("digit1")
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", elf_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_QUICKLOAD_ADD("quickload", elf2_state, elf, "bin", 0)
|
||||
|
||||
/* internal ram */
|
||||
|
@ -509,14 +509,6 @@ MACHINE_RESET_MEMBER(elwro800_state,elwro800)
|
||||
m_maincpu->space(AS_PROGRAM).set_direct_update_handler(direct_update_delegate(FUNC(elwro800_state::elwro800_direct_handler), this));
|
||||
}
|
||||
|
||||
static const cassette_interface elwro800jr_cassette_interface =
|
||||
{
|
||||
tzx_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
INTERRUPT_GEN_MEMBER(elwro800_state::elwro800jr_interrupt)
|
||||
{
|
||||
device.execute().set_input_line(0, HOLD_LINE);
|
||||
@ -597,7 +589,9 @@ static MACHINE_CONFIG_START( elwro800, elwro800_state )
|
||||
MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", elwro800jr_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(tzx_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
MCFG_FLOPPY_DRIVE_ADD("upd765:0", elwro800jr_floppies, "525hd", floppy_image_device::default_floppy_formats)
|
||||
MCFG_FLOPPY_DRIVE_ADD("upd765:1", elwro800jr_floppies, "525hd", floppy_image_device::default_floppy_formats)
|
||||
|
@ -460,26 +460,6 @@ static INPUT_PORTS_START( ep64 )
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// DEVICE CONFIGURATION
|
||||
//**************************************************************************
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface cass_intf
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface cass_intf =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED),
|
||||
"ep64_cass"
|
||||
};
|
||||
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// MACHINE INITIALIZATION
|
||||
//**************************************************************************
|
||||
@ -545,8 +525,13 @@ static MACHINE_CONFIG_START( ep64, ep64_state )
|
||||
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
|
||||
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(DAVE_TAG, dave_device, int2_w))
|
||||
|
||||
MCFG_CASSETTE_ADD(CASSETTE1_TAG, cass_intf)
|
||||
MCFG_CASSETTE_ADD(CASSETTE2_TAG, cass_intf)
|
||||
MCFG_CASSETTE_ADD(CASSETTE1_TAG)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MCFG_CASSETTE_INTERFACE("ep64_cass")
|
||||
|
||||
MCFG_CASSETTE_ADD(CASSETTE2_TAG)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_MUTED)
|
||||
MCFG_CASSETTE_INTERFACE("ep64_cass")
|
||||
|
||||
// internal RAM
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -198,14 +198,6 @@ WRITE8_MEMBER( eti660_state::pia_pa_w )
|
||||
|
||||
/* Machine Drivers */
|
||||
|
||||
static const cassette_interface eti660_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( eti660, eti660_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_8_867238MHz/5)
|
||||
@ -233,7 +225,8 @@ static MACHINE_CONFIG_START( eti660, eti660_state )
|
||||
MCFG_PIA_READPA_HANDLER(READ8(eti660_state, pia_pa_r))
|
||||
MCFG_PIA_WRITEPA_HANDLER(WRITE8(eti660_state, pia_pa_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", eti660_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -175,14 +175,6 @@ void exp85_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface exp85_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( exp85, exp85_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD(I8085A_TAG, I8085A, XTAL_6_144MHz)
|
||||
@ -202,7 +194,8 @@ static MACHINE_CONFIG_START( exp85, exp85_state )
|
||||
MCFG_DEVICE_ADD(I8355_TAG, I8355, XTAL_6_144MHz/2)
|
||||
MCFG_I8355_IN_PA_CB(READ8(exp85_state, i8355_a_r))
|
||||
MCFG_I8355_OUT_PA_CB(WRITE8(exp85_state, i8355_a_w))
|
||||
MCFG_CASSETTE_ADD("cassette", exp85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, "terminal")
|
||||
MCFG_DEVICE_CARD_DEVICE_INPUT_DEFAULTS("terminal", terminal)
|
||||
|
@ -475,15 +475,6 @@ TIMER_DEVICE_CALLBACK_MEMBER( fc100_state::timer_p)
|
||||
}
|
||||
}
|
||||
|
||||
static const cassette_interface fc100_cassette_interface =
|
||||
{
|
||||
fc100_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state) (CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//******************** MACHINE ******************************
|
||||
|
||||
void fc100_state::machine_start()
|
||||
@ -560,7 +551,10 @@ static MACHINE_CONFIG_START( fc100, fc100_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.50)
|
||||
|
||||
/* Devices */
|
||||
MCFG_CASSETTE_ADD("cassette", fc100_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fc100_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_DEVICE_ADD("uart", I8251, 0)
|
||||
MCFG_I8251_TXD_HANDLER(WRITELINE(fc100_state, txdata_callback))
|
||||
MCFG_DEVICE_ADD("uart_clock", CLOCK, XTAL_4_9152MHz/16/16) // gives 19200
|
||||
|
@ -1991,14 +1991,6 @@ static const ay8910_interface ay8910_config =
|
||||
DEVCB_NULL /* portB write */
|
||||
};
|
||||
|
||||
static const cassette_interface fm7_cassette_interface =
|
||||
{
|
||||
fm7_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"fm7_cass"
|
||||
};
|
||||
|
||||
static const floppy_interface fm7_floppy_interface =
|
||||
{
|
||||
FLOPPY_STANDARD_5_25_DSHD,
|
||||
@ -2041,7 +2033,10 @@ static MACHINE_CONFIG_START( fm7, fm7_state )
|
||||
MCFG_PALETTE_ADD("palette", 8)
|
||||
MCFG_PALETTE_INIT_OWNER(fm7_state, fm7)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", fm7_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fm7_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fm7_cass")
|
||||
|
||||
MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
|
||||
|
||||
@ -2092,7 +2087,10 @@ static MACHINE_CONFIG_START( fm8, fm7_state )
|
||||
MCFG_PALETTE_ADD("palette", 8)
|
||||
MCFG_PALETTE_INIT_OWNER(fm7_state, fm7)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", fm7_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fm7_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fm7_cass")
|
||||
|
||||
MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
|
||||
|
||||
@ -2144,7 +2142,10 @@ static MACHINE_CONFIG_START( fm77av, fm7_state )
|
||||
MCFG_PALETTE_ADD("palette", 8 + 4096)
|
||||
MCFG_PALETTE_INIT_OWNER(fm7_state, fm7)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", fm7_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fm7_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fm7_cass")
|
||||
|
||||
MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
|
||||
|
||||
@ -2199,7 +2200,10 @@ static MACHINE_CONFIG_START( fm11, fm7_state )
|
||||
MCFG_PALETTE_ADD("palette", 8)
|
||||
MCFG_PALETTE_INIT_OWNER(fm7_state, fm7)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", fm7_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fm7_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fm7_cass")
|
||||
|
||||
MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
|
||||
|
||||
@ -2247,7 +2251,10 @@ static MACHINE_CONFIG_START( fm16beta, fm7_state )
|
||||
MCFG_PALETTE_ADD("palette", 8)
|
||||
MCFG_PALETTE_INIT_OWNER(fm7_state, fm7)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", fm7_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(fm7_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fm7_cass")
|
||||
|
||||
MCFG_MB8877_ADD("fdc",fm7_mb8877a_interface)
|
||||
|
||||
|
@ -153,16 +153,6 @@ static const ay8910_interface galaxy_ay_interface =
|
||||
|
||||
#define XTAL 6144000
|
||||
|
||||
|
||||
static const cassette_interface galaxy_cassette_interface =
|
||||
{
|
||||
gtp_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"galaxy_cass"
|
||||
};
|
||||
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout galaxy_charlayout =
|
||||
{
|
||||
@ -211,7 +201,11 @@ static MACHINE_CONFIG_START( galaxy, galaxy_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", galaxy_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(gtp_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("galaxy_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","galaxy")
|
||||
|
||||
/* internal ram */
|
||||
@ -252,7 +246,11 @@ static MACHINE_CONFIG_START( galaxyp, galaxy_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", galaxy_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(gtp_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("galaxy_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","galaxy")
|
||||
|
||||
/* internal ram */
|
||||
|
@ -305,15 +305,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(h8_state::h8_p)
|
||||
}
|
||||
}
|
||||
|
||||
static const cassette_interface h8_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
//(cassette_state) (CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
(cassette_state) (CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"h8_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( h8, h8_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", I8080, H8_CLOCK)
|
||||
@ -339,7 +330,10 @@ static MACHINE_CONFIG_START( h8, h8_state )
|
||||
MCFG_DEVICE_ADD("cassette_clock", CLOCK, 4800)
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(h8_state, write_cassette_clock))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", h8_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("h8_cass")
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("h8_c", h8_state, h8_c, attotime::from_hz(4800))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("h8_p", h8_state, h8_p, attotime::from_hz(40000))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("h8_timer", h8_state, h8_irq_pulse, attotime::from_hz(H8_IRQ_PULSE))
|
||||
|
@ -379,15 +379,6 @@ MACHINE_RESET_MEMBER(hec2hrp_state,hec2mdhrx)
|
||||
hector_reset(1, 0);
|
||||
}
|
||||
|
||||
/* Cassette definition */
|
||||
static const cassette_interface hector_cassette_interface =
|
||||
{
|
||||
hector_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* Discrete Sound */
|
||||
static DISCRETE_SOUND_START( hec2hrp )
|
||||
DISCRETE_INPUT_LOGIC(NODE_01)
|
||||
@ -450,7 +441,9 @@ static MACHINE_CONFIG_START( hec2hr, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
/* Gestion cassette*/
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -494,7 +487,9 @@ static MACHINE_CONFIG_START( hec2hrp, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
/* Gestion cassette*/
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -552,7 +547,9 @@ static MACHINE_CONFIG_START( hec2mx40, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
/* Gestion cassette*/
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -605,7 +602,9 @@ static MACHINE_CONFIG_START( hec2hrx, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
// Gestion cassette
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -654,7 +653,9 @@ static MACHINE_CONFIG_START( hec2mdhrx, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
// Gestion cassette
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -708,7 +709,9 @@ static MACHINE_CONFIG_START( hec2mx80, hec2hrp_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
/* Gestion cassette*/
|
||||
MCFG_CASSETTE_ADD( "cassette", hector_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
|
@ -756,7 +756,7 @@ static MACHINE_CONFIG_START( homelab, homelab_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_QUICKLOAD_ADD("quickload", homelab_state, homelab, "htp", 2)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
@ -787,7 +787,7 @@ static MACHINE_CONFIG_START( homelab3, homelab_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_QUICKLOAD_ADD("quickload", homelab_state, homelab, "htp", 2)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
@ -822,7 +822,7 @@ static MACHINE_CONFIG_START( brailab4, homelab_state )
|
||||
MCFG_DEVICE_ADD("mea8000", MEA8000, 0)
|
||||
MCFG_MEA8000_DAC("speech")
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_QUICKLOAD_ADD("quickload", homelab_state, homelab, "htp", 18)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -306,14 +306,6 @@ void amu880_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface amu880_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout amu880_charlayout =
|
||||
{
|
||||
@ -367,7 +359,9 @@ static MACHINE_CONFIG_START( amu880, amu880_state )
|
||||
MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(amu880_state, cassette_w))
|
||||
MCFG_Z80DART_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", amu880_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape", amu880_state, tape_tick, attotime::from_hz(44100))
|
||||
|
||||
/* internal ram */
|
||||
|
@ -853,7 +853,7 @@ static MACHINE_CONFIG_START( hx20, hx20_state )
|
||||
MCFG_MC146818_ADD(MC146818_TAG, XTAL_4_194304Mhz)
|
||||
MCFG_MC146818_IRQ_HANDLER(WRITELINE(hx20_state, rtc_irq_w))
|
||||
MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
|
||||
MCFG_CASSETTE_ADD(CASSETTE_TAG, default_cassette_interface)
|
||||
MCFG_CASSETTE_ADD(CASSETTE_TAG)
|
||||
MCFG_EPSON_SIO_ADD("sio", "tf20")
|
||||
MCFG_EPSON_SIO_RX(WRITELINE(hx20_state, sio_rx_w))
|
||||
MCFG_EPSON_SIO_PIN(WRITELINE(hx20_state, sio_pin_w))
|
||||
|
@ -547,14 +547,6 @@ static GFXDECODE_START( pcjr )
|
||||
GFXDECODE_ENTRY( "gfx1", 0x0000, pc_8_charlayout, 3, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
static const cassette_interface pcjr_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
const ins8250_interface pcjr_com_interface =
|
||||
{
|
||||
DEVCB_DEVICE_LINE_MEMBER("serport", rs232_port_device, write_txd),
|
||||
@ -657,7 +649,8 @@ static MACHINE_CONFIG_START( ibmpcjr, pcjr_state)
|
||||
MCFG_PC_JOY_ADD("pc_joy")
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", pcjr_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_UPD765A_ADD("fdc", false, false)
|
||||
|
||||
|
@ -416,7 +416,7 @@ static MACHINE_CONFIG_START( instruct, instruct_state )
|
||||
MCFG_QUICKLOAD_ADD("quickload", instruct_state, instruct, "pgm", 1)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
@ -97,15 +97,6 @@ static ADDRESS_MAP_START(interact_mem, AS_PROGRAM, 8, interact_state )
|
||||
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* Cassette definition */
|
||||
static const cassette_interface interact_cassette_interface =
|
||||
{
|
||||
hector_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MASK_SPEAKER),
|
||||
"interact_cass"
|
||||
};
|
||||
|
||||
/* Discrete Sound */
|
||||
static DISCRETE_SOUND_START( hec2hrp )
|
||||
DISCRETE_INPUT_LOGIC(NODE_01)
|
||||
@ -165,7 +156,11 @@ static MACHINE_CONFIG_START( interact, interact_state )
|
||||
MCFG_SOUND_CONFIG_DISCRETE( hec2hrp )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", interact_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MASK_SPEAKER)
|
||||
MCFG_CASSETTE_INTERFACE("interact_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","interact")
|
||||
|
||||
/* printer */
|
||||
@ -208,7 +203,10 @@ static MACHINE_CONFIG_START( hector1, interact_state )
|
||||
MCFG_SOUND_CONFIG_DISCRETE( hec2hrp )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", interact_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(hector_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MASK_SPEAKER)
|
||||
MCFG_CASSETTE_INTERFACE("interact_cass")
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
|
@ -137,16 +137,6 @@ static const ay8910_interface intv_ay8914_ecs_interface =
|
||||
DEVCB_NULL
|
||||
};
|
||||
|
||||
/*
|
||||
static const cassette_interface ecs_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED),
|
||||
NULL
|
||||
};
|
||||
*/
|
||||
|
||||
/* graphics output */
|
||||
|
||||
static const gfx_layout intvkbd_charlayout =
|
||||
@ -855,7 +845,7 @@ static MACHINE_CONFIG_DERIVED( intvecs, intv )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.33)
|
||||
|
||||
/* cassette */
|
||||
//MCFG_CASSETTE_ADD( "cassette", ecs_cassette_interface )
|
||||
//MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -361,14 +361,6 @@ UINT32 iq151_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const cassette_interface iq151_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
"iq151_cass"
|
||||
};
|
||||
|
||||
static SLOT_INTERFACE_START(iq151_cart)
|
||||
SLOT_INTERFACE("video32", IQ151_VIDEO32) // video32
|
||||
SLOT_INTERFACE("video64", IQ151_VIDEO64) // video64
|
||||
@ -416,7 +408,10 @@ static MACHINE_CONFIG_START( iq151, iq151_state )
|
||||
MCFG_I8255_IN_PORTC_CB(READ8(iq151_state, ppi_portc_r))
|
||||
MCFG_I8255_OUT_PORTC_CB(WRITE8(iq151_state, ppi_portc_w))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", iq151_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
MCFG_CASSETTE_INTERFACE("iq151_cass")
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", iq151_state, cassette_timer, attotime::from_hz(2000))
|
||||
|
||||
/* cartridge */
|
||||
|
@ -293,13 +293,6 @@ WRITE_LINE_MEMBER(jr100_state::jr100_via_write_cb2)
|
||||
{
|
||||
m_cassette->output(state ? -1.0 : +1.0);
|
||||
}
|
||||
static const cassette_interface jr100_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(jr100_state::sound_tick)
|
||||
{
|
||||
@ -402,7 +395,8 @@ static MACHINE_CONFIG_START( jr100, jr100_state )
|
||||
MCFG_SOUND_ADD("beeper", BEEP, 0)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS,"mono",0.50)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", jr100_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("sound_tick", jr100_state, sound_tick, attotime::from_hz(XTAL_14_31818MHz / 16))
|
||||
|
||||
|
@ -681,14 +681,6 @@ void jtc_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface jtc_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout jtces23_charlayout =
|
||||
{
|
||||
@ -739,7 +731,8 @@ static MACHINE_CONFIG_START( basic, jtc_state )
|
||||
MCFG_SOUND_ROUTE(1, "mono", 0.25)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD("cassette", jtc_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
|
||||
|
@ -87,14 +87,6 @@ extern SLOT_INTERFACE_START(kc85_exp)
|
||||
SLOT_INTERFACE_END
|
||||
|
||||
|
||||
static const cassette_interface kc_cassette_interface =
|
||||
{
|
||||
kc_cassette_formats,
|
||||
NULL,
|
||||
CASSETTE_PLAY,
|
||||
"kc_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( kc85_3, kc_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, KC85_3_CLOCK)
|
||||
@ -141,7 +133,10 @@ static MACHINE_CONFIG_START( kc85_3, kc_state )
|
||||
/* devices */
|
||||
MCFG_QUICKLOAD_ADD("quickload", kc_state, kc, "kcc", 2)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", kc_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(kc_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("kc_cass")
|
||||
|
||||
/* cartridge slot */
|
||||
MCFG_DEVICE_ADD("m8", KCCART_SLOT, 0)
|
||||
@ -222,7 +217,10 @@ static MACHINE_CONFIG_START( kc85_4, kc85_4_state )
|
||||
/* devices */
|
||||
MCFG_QUICKLOAD_ADD("quickload", kc_state, kc, "kcc", 2)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", kc_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(kc_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("kc_cass")
|
||||
|
||||
/* cartridge slot */
|
||||
MCFG_DEVICE_ADD("m8", KCCART_SLOT, 0)
|
||||
|
@ -313,15 +313,6 @@ void kim1_state::machine_reset()
|
||||
}
|
||||
|
||||
|
||||
static const cassette_interface kim1_cassette_interface =
|
||||
{
|
||||
kim1_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( kim1, kim1_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M6502, 1000000) /* 1 MHz */
|
||||
@ -346,7 +337,10 @@ static MACHINE_CONFIG_START( kim1, kim1_state )
|
||||
|
||||
MCFG_DEVICE_ADD("miot_u3", MOS6530, 1000000)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", kim1_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(kim1_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("led_timer", kim1_state, kim1_update_leds, attotime::from_hz(60))
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", kim1_state, kim1_cassette_input, attotime::from_hz(44100))
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -1309,14 +1309,6 @@ void tandy200_state::machine_start()
|
||||
save_item(NAME(m_tp));
|
||||
}
|
||||
|
||||
static const cassette_interface kc85_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
WRITE_LINE_MEMBER( kc85_state::kc85_sod_w )
|
||||
{
|
||||
m_cassette->output(state ? +1.0 : -1.0);
|
||||
@ -1378,7 +1370,8 @@ static MACHINE_CONFIG_START( kc85, kc85_state )
|
||||
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(kc85_state, write_centronics_busy))
|
||||
MCFG_CENTRONICS_SELECT_HANDLER(WRITELINE(kc85_state, write_centronics_select))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", kc85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* option ROM cartridge */
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
@ -1429,7 +1422,8 @@ static MACHINE_CONFIG_START( pc8201, pc8201_state )
|
||||
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(kc85_state, write_centronics_busy))
|
||||
MCFG_CENTRONICS_SELECT_HANDLER(WRITELINE(kc85_state, write_centronics_select))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", kc85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* option ROM cartridge */
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
@ -1489,7 +1483,9 @@ static MACHINE_CONFIG_START( trsm100, trsm100_state )
|
||||
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(IM6402_TAG, im6402_device, write_rri))
|
||||
|
||||
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
|
||||
MCFG_CASSETTE_ADD("cassette", kc85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
// MCFG_MC14412_ADD(MC14412_TAG, XTAL_1MHz)
|
||||
|
||||
/* option ROM cartridge */
|
||||
@ -1558,7 +1554,8 @@ static MACHINE_CONFIG_START( tandy200, tandy200_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", kc85_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_DISABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
/* option ROM cartridge */
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
|
@ -321,14 +321,6 @@ void lc80_state::machine_start()
|
||||
|
||||
/* Machine Driver */
|
||||
|
||||
static const cassette_interface lc80_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( lc80, lc80_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD(Z80_TAG, Z80, 900000) /* UD880D */
|
||||
@ -360,7 +352,8 @@ static MACHINE_CONFIG_START( lc80, lc80_state )
|
||||
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
MCFG_Z80PIO_IN_PB_CB(READ8(lc80_state, pio2_pb_r))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", lc80_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
MCFG_RAM_DEFAULT_SIZE("1K")
|
||||
@ -398,7 +391,8 @@ static MACHINE_CONFIG_START( lc80_2, lc80_state )
|
||||
MCFG_Z80PIO_OUT_INT_CB(INPUTLINE(Z80_TAG, INPUT_LINE_IRQ0))
|
||||
MCFG_Z80PIO_IN_PB_CB(READ8(lc80_state, pio2_pb_r))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", lc80_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -298,7 +298,7 @@ static MACHINE_CONFIG_START( lola8a, lola8a_state )
|
||||
MCFG_PALETTE_INIT_OWNER(lola8a_state, lola8a)
|
||||
|
||||
/* Cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
MACHINE_CONFIG_END
|
||||
|
@ -415,15 +415,6 @@ static INPUT_PORTS_START (lviv)
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
static const cassette_interface lviv_cassette_interface =
|
||||
{
|
||||
lviv_lvt_format,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED),
|
||||
"lviv_cass"
|
||||
};
|
||||
|
||||
|
||||
/* machine definition */
|
||||
static MACHINE_CONFIG_START( lviv, lviv_state )
|
||||
/* basic machine hardware */
|
||||
@ -471,7 +462,11 @@ static MACHINE_CONFIG_START( lviv, lviv_state )
|
||||
/* snapshot */
|
||||
MCFG_SNAPSHOT_ADD("snapshot", lviv_state, lviv, "sav", 0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", lviv_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(lviv_lvt_format)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("lviv_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","lviv")
|
||||
|
||||
/* internal ram */
|
||||
|
@ -395,25 +395,6 @@ static INPUT_PORTS_START( m5 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_NAME("Reset") PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(ESC)) /* 1st line, 1st key from right! */
|
||||
INPUT_PORTS_END
|
||||
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// DEVICE CONFIGURATION
|
||||
//**************************************************************************
|
||||
|
||||
//-------------------------------------------------
|
||||
// cassette_interface cassette_intf
|
||||
//-------------------------------------------------
|
||||
|
||||
static const cassette_interface cassette_intf =
|
||||
{
|
||||
sordm5_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// TMS9928a_interface vdp_intf
|
||||
//-------------------------------------------------
|
||||
@ -615,7 +596,9 @@ static MACHINE_CONFIG_START( m5, m5_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", cassette_intf)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(sordm5_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
|
||||
MCFG_DEVICE_ADD(I8255A_TAG, I8255, 0)
|
||||
MCFG_I8255_IN_PORTA_CB(READ8(m5_state, ppi_pa_r))
|
||||
|
@ -654,14 +654,6 @@ static SLOT_INTERFACE_START( mbee_floppies )
|
||||
SLOT_INTERFACE_END
|
||||
|
||||
|
||||
static const cassette_interface mbee_cassette_interface =
|
||||
{
|
||||
mbee_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( mbee, mbee_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, XTAL_12MHz / 6) /* 2 MHz */
|
||||
@ -711,7 +703,9 @@ static MACHINE_CONFIG_START( mbee, mbee_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mbee_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(mbee_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -767,7 +761,9 @@ static MACHINE_CONFIG_START( mbeeic, mbee_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mbee_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(mbee_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( mbeepc, mbeeic )
|
||||
|
@ -477,22 +477,6 @@ INPUT_PORTS_END
|
||||
MACHINE DRIVERS
|
||||
***************************************************************************/
|
||||
|
||||
static const cassette_interface mc10_cassette_interface =
|
||||
{
|
||||
coco_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static const cassette_interface alice32_cassette_interface =
|
||||
{
|
||||
alice32_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"alice32_cass"
|
||||
};
|
||||
|
||||
static const mc6847_interface mc10_mc6847_intf =
|
||||
{
|
||||
"screen",
|
||||
@ -515,7 +499,9 @@ static MACHINE_CONFIG_START( mc10, mc10_state )
|
||||
MCFG_SOUND_ADD("dac", DAC, 0)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", mc10_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(coco_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
@ -550,7 +536,10 @@ static MACHINE_CONFIG_START( alice32, mc10_state )
|
||||
MCFG_SOUND_ADD("dac", DAC, 0)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", alice32_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_FORMATS(alice32_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("alice32_cass")
|
||||
|
||||
/* printer */
|
||||
MCFG_DEVICE_ADD("printer", PRINTER, 0)
|
||||
|
@ -424,14 +424,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(mc1000_state::ne555_tick)
|
||||
m_maincpu->set_input_line(INPUT_LINE_IRQ0, param);
|
||||
}
|
||||
|
||||
static const cassette_interface mc1000_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static const mc6847_interface mc1000_mc6847_intf =
|
||||
{
|
||||
SCREEN_TAG,
|
||||
@ -466,7 +458,9 @@ static MACHINE_CONFIG_START( mc1000, mc1000_state )
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
/* devices */
|
||||
MCFG_CASSETTE_ADD("cassette", mc1000_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_CENTRONICS_ADD(CENTRONICS_TAG, centronics_printers, "printer")
|
||||
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(mc1000_state, write_centronics_busy))
|
||||
|
||||
|
@ -31,14 +31,6 @@
|
||||
* onboard devices:
|
||||
*/
|
||||
|
||||
static const cassette_interface mc1502_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
// Timer
|
||||
|
||||
/* check if any keys are pressed, raise IRQ1 if so */
|
||||
@ -313,7 +305,8 @@ static MACHINE_CONFIG_START( mc1502, mc1502_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mc1502_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("flop_list","mc1502_flop")
|
||||
// MCFG_SOFTWARE_LIST_ADD("cass_list","mc1502_cass")
|
||||
|
@ -374,7 +374,7 @@ static MACHINE_CONFIG_START( mekd2, mekd2_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
/* Cartslot ?? does not come with one.. */
|
||||
MCFG_CARTSLOT_ADD("cart")
|
||||
|
@ -252,7 +252,7 @@ static MACHINE_CONFIG_START( microtan, microtan_state )
|
||||
MCFG_QUICKLOAD_ADD("quickload", microtan_state, microtan, "hex", 0.5)
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
/* acia */
|
||||
MCFG_DEVICE_ADD("acia", MOS6551, 0)
|
||||
|
@ -138,16 +138,6 @@ static INPUT_PORTS_START( mikro80 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
INPUT_PORTS_END
|
||||
|
||||
/* Machine driver */
|
||||
static const cassette_interface mikro80_cassette_interface =
|
||||
{
|
||||
rk8_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout mikro80_charlayout =
|
||||
{
|
||||
@ -194,7 +184,9 @@ static MACHINE_CONFIG_START( mikro80, mikro80_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mikro80_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rk8_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( radio99, mikro80 )
|
||||
|
@ -139,16 +139,6 @@ static INPUT_PORTS_START( mikrosha )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_KEYBOARD) PORT_NAME("Shift") PORT_CODE(KEYCODE_LSHIFT) PORT_CODE(KEYCODE_RSHIFT) PORT_CHAR(UCHAR_SHIFT_1)
|
||||
INPUT_PORTS_END
|
||||
|
||||
/* Machine driver */
|
||||
static const cassette_interface mikrosha_cassette_interface =
|
||||
{
|
||||
rkm_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"mikrosha_cass"
|
||||
};
|
||||
|
||||
|
||||
WRITE_LINE_MEMBER(mikrosha_state::mikrosha_pit_out2)
|
||||
{
|
||||
}
|
||||
@ -243,7 +233,11 @@ static MACHINE_CONFIG_START( mikrosha, mikrosha_state )
|
||||
MCFG_I8257_OUT_IOW_2_CB(DEVWRITE8("i8275", i8275_device, dack_w))
|
||||
MCFG_I8257_REVERSE_RW_MODE(1)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mikrosha_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rkm_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("mikrosha_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","mikrosha")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -197,7 +197,7 @@ static MACHINE_CONFIG_START( mkit09, mkit09_state )
|
||||
MCFG_PIA_IRQA_HANDLER(DEVWRITELINE("maincpu", m6809e_device, irq_line))
|
||||
MCFG_PIA_IRQB_HANDLER(DEVWRITELINE("maincpu", m6809e_device, irq_line))
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/* ROM definition */
|
||||
|
@ -273,16 +273,6 @@ static const z80_daisy_config mpf1_daisy_chain[] =
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
/* Cassette Interface */
|
||||
|
||||
static const cassette_interface mpf1_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* Machine Initialization */
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(mpf1_state::check_halt_callback)
|
||||
@ -330,7 +320,8 @@ static MACHINE_CONFIG_START( mpf1, mpf1_state )
|
||||
MCFG_I8255_OUT_PORTB_CB(WRITE8(mpf1_state, ppi_pb_w))
|
||||
MCFG_I8255_OUT_PORTC_CB(WRITE8(mpf1_state, ppi_pc_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", mpf1_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_DEFAULT_LAYOUT(layout_mpf1)
|
||||
@ -362,7 +353,8 @@ static MACHINE_CONFIG_START( mpf1b, mpf1_state )
|
||||
MCFG_I8255_OUT_PORTB_CB(WRITE8(mpf1_state, ppi_pb_w))
|
||||
MCFG_I8255_OUT_PORTC_CB(WRITE8(mpf1_state, ppi_pc_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", mpf1_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
/* video hardware */
|
||||
MCFG_DEFAULT_LAYOUT(layout_mpf1b)
|
||||
@ -400,7 +392,8 @@ static MACHINE_CONFIG_START( mpf1p, mpf1_state )
|
||||
MCFG_I8255_OUT_PORTB_CB(WRITE8(mpf1_state, ppi_pb_w))
|
||||
MCFG_I8255_OUT_PORTC_CB(WRITE8(mpf1_state, ppi_pc_w))
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", mpf1_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
|
||||
/* sound hardware */
|
||||
MCFG_SPEAKER_STANDARD_MONO("mono")
|
||||
|
@ -1062,15 +1062,6 @@ static const ay8910_interface msx_ay8910_interface =
|
||||
#define MSX_VISIBLE_XBORDER_PIXELS 8
|
||||
#define MSX_VISIBLE_YBORDER_PIXELS 24
|
||||
|
||||
static const cassette_interface msx_cassette_interface =
|
||||
{
|
||||
fmsx_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY),
|
||||
"msx_cass"
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_FRAGMENT( msx_cartslot_1 )
|
||||
MCFG_CARTSLOT_ADD("cart1")
|
||||
MCFG_CARTSLOT_EXTENSION_LIST("mx1,rom")
|
||||
@ -1224,7 +1215,10 @@ static MACHINE_CONFIG_START( msx, msx_state )
|
||||
MCFG_OUTPUT_LATCH_BIT1_HANDLER(DEVWRITELINE("centronics", centronics_device, write_strobe))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", msx_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("msx_cass")
|
||||
|
||||
/* Software lists */
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","msx1_cass")
|
||||
@ -1313,7 +1307,10 @@ static MACHINE_CONFIG_START( msx2, msx_state )
|
||||
MCFG_OUTPUT_LATCH_BIT1_HANDLER(DEVWRITELINE("centronics", centronics_device, write_strobe))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", msx_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("msx_cass")
|
||||
|
||||
/* real time clock */
|
||||
MCFG_DEVICE_ADD("rtc", RP5C01, XTAL_32_768kHz)
|
||||
@ -1378,7 +1375,10 @@ static MACHINE_CONFIG_START( msx2p, msx_state )
|
||||
MCFG_OUTPUT_LATCH_BIT1_HANDLER(DEVWRITELINE("centronics", centronics_device, write_strobe))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", msx_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(fmsx_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
|
||||
MCFG_CASSETTE_INTERFACE("msx_cass")
|
||||
|
||||
/* real time clock */
|
||||
MCFG_DEVICE_ADD("rtc", RP5C01, XTAL_32_768kHz)
|
||||
|
@ -256,9 +256,6 @@ static const z80_daisy_config rs128_daisy_chain[] =
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
/*-------------------------------------------------
|
||||
cassette_interface mtx_cassette_interface
|
||||
-------------------------------------------------*/
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(mtx_state::cassette_tick)
|
||||
{
|
||||
@ -267,14 +264,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(mtx_state::cassette_tick)
|
||||
m_z80ctc->trg3(data);
|
||||
}
|
||||
|
||||
static const cassette_interface mtx_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/*-------------------------------------------------
|
||||
mtx_tms9928a_interface
|
||||
-------------------------------------------------*/
|
||||
@ -332,7 +321,9 @@ static MACHINE_CONFIG_START( mtx512, mtx_state )
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
MCFG_SNAPSHOT_ADD("snapshot", mtx_state, mtx, "mtx", 1)
|
||||
MCFG_CASSETTE_ADD("cassette", mtx_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("cassette_timer", mtx_state, cassette_tick, attotime::from_hz(44100))
|
||||
|
||||
/* internal ram */
|
||||
|
@ -549,7 +549,7 @@ static MACHINE_CONFIG_START( mycom, mycom_state )
|
||||
|
||||
/* Devices */
|
||||
MCFG_MSM5832_ADD("rtc", XTAL_32_768kHz)
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_FD1771x_ADD("fdc", XTAL_16MHz / 16)
|
||||
MCFG_FLOPPY_DRIVE_ADD("fdc:0", mycom_floppies, "525sd", floppy_image_device::default_floppy_formats)
|
||||
MCFG_FLOPPY_DRIVE_ADD("fdc:1", mycom_floppies, "525sd", floppy_image_device::default_floppy_formats)
|
||||
|
@ -802,14 +802,6 @@ static const floppy_interface mz2000_floppy_interface =
|
||||
NULL
|
||||
};
|
||||
|
||||
static const cassette_interface mz2000_cassette_interface =
|
||||
{
|
||||
mz700_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"mz_cass"
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( mz2000, mz2000_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu",Z80, MASTER_CLOCK)
|
||||
@ -839,7 +831,11 @@ static MACHINE_CONFIG_START( mz2000, mz2000_state )
|
||||
MCFG_LEGACY_FLOPPY_4_DRIVES_ADD(mz2000_floppy_interface)
|
||||
MCFG_SOFTWARE_LIST_ADD("flop_list","mz2000_flop")
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mz2000_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(mz700_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("mz_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","mz2000_cass")
|
||||
|
||||
/* video hardware */
|
||||
|
@ -317,15 +317,6 @@ GFXDECODE_END
|
||||
MACHINE DRIVERS
|
||||
***************************************************************************/
|
||||
|
||||
static const cassette_interface mz700_cassette_interface =
|
||||
{
|
||||
mz700_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"mz_cass"
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( mz700, mz_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", Z80, XTAL_17_73447MHz/5)
|
||||
@ -372,7 +363,11 @@ static MACHINE_CONFIG_START( mz700, mz_state )
|
||||
|
||||
MCFG_DEVICE_ADD("ls145", TTL74145, 0)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", mz700_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(mz700_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("mz_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","mz700_cass")
|
||||
|
||||
/* internal ram */
|
||||
|
@ -260,14 +260,6 @@ static GFXDECODE_START( mz80kj )
|
||||
GFXDECODE_ENTRY( "chargen", 0x0000, mz80kj_charlayout, 0, 1 )
|
||||
GFXDECODE_END
|
||||
|
||||
static const cassette_interface mz80k_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(mz80_state::ne555_tempo_callback)
|
||||
{
|
||||
m_mz80k_tempo_strobe ^= 1;
|
||||
@ -316,7 +308,8 @@ static MACHINE_CONFIG_START( mz80k, mz80_state )
|
||||
MCFG_PIT8253_OUT2_HANDLER(WRITELINE(mz80_state, pit_out2_changed))
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("tempo", mz80_state, ne555_tempo_callback, attotime::from_hz(34))
|
||||
MCFG_CASSETTE_ADD( "cassette", mz80k_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( mz80kj, mz80k )
|
||||
|
@ -287,7 +287,7 @@ static MACHINE_CONFIG_START( nascom1, nascom1_state )
|
||||
/* devices */
|
||||
MCFG_SNAPSHOT_ADD("snapshot", nascom1_state, nascom1, "nas", 0.5)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", default_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -654,15 +654,6 @@ static const floppy_interface nes_floppy_interface =
|
||||
};
|
||||
|
||||
|
||||
static const cassette_interface fc_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"fc_cass"
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( nes, nes_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", N2A03, NTSC_CLOCK)
|
||||
@ -755,7 +746,10 @@ static MACHINE_CONFIG_DERIVED( famicom, nes )
|
||||
MCFG_LEGACY_FLOPPY_DRIVE_ADD(FLOPPY_0, nes_floppy_interface)
|
||||
MCFG_SOFTWARE_LIST_ADD("flop_list", "famicom_flop")
|
||||
|
||||
MCFG_CASSETTE_ADD( "tape", fc_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "tape" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("fc_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list", "famicom_cass")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -1295,14 +1295,6 @@ INTERRUPT_GEN_MEMBER(newbrain_state::newbrain_interrupt)
|
||||
|
||||
/* Machine Drivers */
|
||||
|
||||
static const cassette_interface newbrain_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* F4 Character Displayer */
|
||||
static const gfx_layout newbrain_charlayout =
|
||||
{
|
||||
@ -1340,8 +1332,11 @@ static MACHINE_CONFIG_START( newbrain_a, newbrain_state )
|
||||
MCFG_FRAGMENT_ADD(newbrain_video)
|
||||
|
||||
// devices
|
||||
MCFG_CASSETTE_ADD("cassette", newbrain_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette2", newbrain_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette2")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
// internal ram
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -110,14 +110,6 @@ INTERRUPT_GEN_MEMBER(ondra_state::ondra_interrupt)
|
||||
device.execute().set_input_line(0, HOLD_LINE);
|
||||
}
|
||||
|
||||
static const cassette_interface ondra_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED),
|
||||
"ondra_cass"
|
||||
};
|
||||
|
||||
/* Machine driver */
|
||||
static MACHINE_CONFIG_START( ondra, ondra_state )
|
||||
/* basic machine hardware */
|
||||
@ -144,7 +136,10 @@ static MACHINE_CONFIG_START( ondra, ondra_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", ondra_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("ondra_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","ondra")
|
||||
|
||||
/* internal ram */
|
||||
|
@ -162,15 +162,6 @@ static INPUT_PORTS_START( orao )
|
||||
INPUT_PORTS_END
|
||||
|
||||
/* Machine driver */
|
||||
static const cassette_interface orao_cassette_interface =
|
||||
{
|
||||
orao_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"orao_cass"
|
||||
};
|
||||
|
||||
|
||||
static MACHINE_CONFIG_START( orao, orao_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M6502, 1000000)
|
||||
@ -195,7 +186,11 @@ static MACHINE_CONFIG_START( orao, orao_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", orao_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette")
|
||||
MCFG_CASSETTE_FORMATS(orao_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("orao_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","orao")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -778,14 +778,6 @@ static const ay8910_interface oric_ay_interface =
|
||||
};
|
||||
|
||||
|
||||
static const cassette_interface oric_cassette_interface =
|
||||
{
|
||||
oric_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( oric, oric_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M6502, XTAL_12MHz/12)
|
||||
@ -815,7 +807,10 @@ static MACHINE_CONFIG_START( oric, oric_state )
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", "centronics")
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD( "cassette", oric_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(oric_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY | CASSETTE_MOTOR_DISABLED)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD_PERIODIC("tape_timer", oric_state, update_tape, attotime::from_hz(4800))
|
||||
|
||||
/* via */
|
||||
|
@ -73,14 +73,6 @@ static ADDRESS_MAP_START( orionpro_io , AS_IO, 8, orion_state )
|
||||
AM_RANGE( 0x0000, 0xffff) AM_READWRITE(orionpro_io_r, orionpro_io_w )
|
||||
ADDRESS_MAP_END
|
||||
|
||||
static const cassette_interface orion_cassette_interface =
|
||||
{
|
||||
rko_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"orion_cass"
|
||||
};
|
||||
|
||||
FLOPPY_FORMATS_MEMBER( orion_state::orion_floppy_formats )
|
||||
FLOPPY_SMX_FORMAT
|
||||
FLOPPY_FORMATS_END
|
||||
@ -127,7 +119,11 @@ static MACHINE_CONFIG_START( orion128, orion_state )
|
||||
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", orion_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("orion_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
|
||||
|
||||
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
|
||||
@ -209,7 +205,11 @@ static MACHINE_CONFIG_START( orionz80, orion_state )
|
||||
MCFG_SOUND_CONFIG(orionz80_ay_interface)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", orion_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("orion_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
|
||||
|
||||
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
|
||||
@ -281,7 +281,11 @@ static MACHINE_CONFIG_START( orionpro, orion_state )
|
||||
MCFG_SOUND_CONFIG(orionz80_ay_interface)
|
||||
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", orion_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rko_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("orion_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","orion_cass")
|
||||
|
||||
MCFG_FD1793x_ADD("fd1793", XTAL_8MHz / 8)
|
||||
|
@ -745,7 +745,7 @@ static MACHINE_CONFIG_START( osi600, sb2m600_state )
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(sb2m600_state, write_cassette_clock))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD("cassette", default_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
@ -770,7 +770,7 @@ static MACHINE_CONFIG_START( uk101, uk101_state )
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(sb2m600_state, write_cassette_clock))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD("cassette", default_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
@ -807,7 +807,7 @@ static MACHINE_CONFIG_START( c1p, c1p_state )
|
||||
MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(sb2m600_state, write_cassette_clock))
|
||||
|
||||
/* cassette */
|
||||
MCFG_CASSETTE_ADD("cassette", default_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
|
||||
/* internal ram */
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
|
@ -134,14 +134,6 @@ static INPUT_PORTS_START( partner )
|
||||
INPUT_PORTS_END
|
||||
|
||||
/* Machine driver */
|
||||
static const cassette_interface partner_cassette_interface =
|
||||
{
|
||||
rkp_cassette_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
|
||||
"partner_cass"
|
||||
};
|
||||
|
||||
FLOPPY_FORMATS_MEMBER( partner_state::floppy_formats )
|
||||
FLOPPY_SMX_FORMAT
|
||||
FLOPPY_FORMATS_END
|
||||
@ -211,7 +203,11 @@ static MACHINE_CONFIG_START( partner, partner_state )
|
||||
MCFG_I8257_OUT_IOW_2_CB(DEVWRITE8("i8275", i8275_device, dack_w))
|
||||
MCFG_I8257_REVERSE_RW_MODE(1)
|
||||
|
||||
MCFG_CASSETTE_ADD( "cassette", partner_cassette_interface )
|
||||
MCFG_CASSETTE_ADD( "cassette" )
|
||||
MCFG_CASSETTE_FORMATS(rkp_cassette_formats)
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED)
|
||||
MCFG_CASSETTE_INTERFACE("partner_cass")
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("cass_list","partner_cass")
|
||||
|
||||
MCFG_FD1793x_ADD("wd1793", XTAL_16MHz / 16)
|
||||
|
@ -471,16 +471,6 @@ void pc8001_state::machine_start()
|
||||
save_item(NAME(m_color));
|
||||
}
|
||||
|
||||
/* Cassette Configuration */
|
||||
|
||||
static const cassette_interface pc8001_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
/* Machine Drivers */
|
||||
|
||||
static MACHINE_CONFIG_START( pc8001, pc8001_state )
|
||||
@ -524,7 +514,8 @@ static MACHINE_CONFIG_START( pc8001, pc8001_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", pc8001_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
MCFG_RAM_DEFAULT_SIZE("16K")
|
||||
@ -570,7 +561,8 @@ static MACHINE_CONFIG_START( pc8001mk2, pc8001mk2_state )
|
||||
|
||||
MCFG_CENTRONICS_OUTPUT_LATCH_ADD("cent_data_out", CENTRONICS_TAG)
|
||||
|
||||
MCFG_CASSETTE_ADD("cassette", pc8001_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_RAM_ADD(RAM_TAG)
|
||||
MCFG_RAM_DEFAULT_SIZE("64K")
|
||||
|
@ -2591,14 +2591,6 @@ WRITE_LINE_MEMBER( pc8801_state::rxrdy_w )
|
||||
// ...
|
||||
}
|
||||
|
||||
static const cassette_interface pc8801_cassette_interface =
|
||||
{
|
||||
cassette_default_formats,
|
||||
NULL,
|
||||
(cassette_state)(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED),
|
||||
NULL
|
||||
};
|
||||
|
||||
static MACHINE_CONFIG_START( pc8801, pc8801_state )
|
||||
/* main CPU */
|
||||
MCFG_CPU_ADD("maincpu", Z80, MASTER_CLOCK) /* 4 MHz */
|
||||
@ -2635,7 +2627,9 @@ static MACHINE_CONFIG_START( pc8801, pc8801_state )
|
||||
#endif
|
||||
MCFG_UPD1990A_ADD(UPD1990A_TAG, XTAL_32_768kHz, NULL, NULL)
|
||||
//MCFG_CENTRONICS_ADD("centronics", centronics_printers, "printer")
|
||||
MCFG_CASSETTE_ADD("cassette", pc8801_cassette_interface)
|
||||
MCFG_CASSETTE_ADD("cassette")
|
||||
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_STOPPED | CASSETTE_MOTOR_ENABLED | CASSETTE_SPEAKER_MUTED)
|
||||
|
||||
MCFG_SOFTWARE_LIST_ADD("tape_list","pc8801_cass")
|
||||
|
||||
MCFG_DEVICE_ADD(I8251_TAG, I8251, 0)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user