ds1315, ds1386, ds2404, ds75160a, ds75161a, eeprom, eepromser, eeprompar: Removed MCFG, nw

This commit is contained in:
mooglyguy 2018-08-23 18:34:05 +02:00
parent 5d5a94e3d7
commit f10c6be54f
199 changed files with 823 additions and 978 deletions

View File

@ -156,7 +156,7 @@ MACHINE_CONFIG_START(epson_lx810l_device::device_add_mconfig)
MCFG_E05A30_CENTRONICS_SELECT_CALLBACK(WRITELINE(*this, epson_lx810l_device, e05a30_centronics_select))
/* 256-bit eeprom */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C06_16BIT)
EEPROM_93C06_16BIT(config, "eeprom");
STEPPER(config, "pf_stepper", (uint8_t)4);
STEPPER(config, "cr_stepper", (uint8_t)2);

View File

@ -141,7 +141,8 @@ MACHINE_CONFIG_START(coco_fdc_device_base::device_add_mconfig)
MCFG_FLOPPY_DRIVE_SOUND(true)
MCFG_DEVICE_ADD(DISTO_TAG, MSM6242, 32.768_kHz_XTAL)
MCFG_DS1315_ADD(CLOUD9_TAG)
DS1315(config, CLOUD9_TAG, 0);
MACHINE_CONFIG_END

View File

@ -19,10 +19,11 @@
DEFINE_DEVICE_TYPE(CPC_SMARTWATCH, cpc_smartwatch_device, "cpc_smartwatch", "Dobbertin Smartwatch")
MACHINE_CONFIG_START(cpc_smartwatch_device::device_add_mconfig)
MCFG_DS1315_ADD("rtc")
void cpc_smartwatch_device::device_add_mconfig(machine_config &config)
{
DS1315(config, m_rtc, 0);
// no pass-through (?)
MACHINE_CONFIG_END
}
ROM_START( cpc_smartwatch )

View File

@ -47,11 +47,11 @@ mach32_device::mach32_device(const machine_config &mconfig, device_type type, co
{
}
MACHINE_CONFIG_START(mach32_device::device_add_mconfig)
MCFG_DEVICE_ADD("8514a", ATIMACH32_8514A, 0)
downcast<ibm8514a_device*>(device)->set_vga(DEVICE_SELF);
MCFG_DEVICE_ADD("ati_eeprom", EEPROM_SERIAL_93C56_16BIT)
MACHINE_CONFIG_END
void mach32_device::device_add_mconfig(machine_config &config)
{
ATIMACH32_8514A(config, "8514a", 0).set_vga(DEVICE_SELF);
EEPROM_93C56_16BIT(config, "ati_eeprom");
}
void mach32_8514a_device::device_start()
{
@ -333,11 +333,11 @@ mach64_device::mach64_device(const machine_config &mconfig, device_type type, co
{
}
MACHINE_CONFIG_START(mach64_device::device_add_mconfig)
MCFG_DEVICE_ADD("8514a", ATIMACH64_8514A, 0)
downcast<ibm8514a_device*>(device)->set_vga(DEVICE_SELF);
MCFG_DEVICE_ADD("ati_eeprom", EEPROM_SERIAL_93C56_16BIT)
MACHINE_CONFIG_END
void mach64_device::device_add_mconfig(machine_config &config)
{
ATIMACH64_8514A(config, "8514a", 0).set_vga(DEVICE_SELF);
EEPROM_93C56_16BIT(config, "ati_eeprom");
}
void mach64_8514a_device::device_start()
{

View File

@ -267,7 +267,7 @@ void xtide_device::device_add_mconfig(machine_config &config)
ATA_INTERFACE(config, m_ata).options(ata_devices, "hdd", nullptr, false);
m_ata->irq_handler().set(FUNC(xtide_device::ide_interrupt));
EEPROM_PARALLEL_2864(config, m_eeprom);
EEPROM_2864(config, m_eeprom);
}
//-------------------------------------------------

View File

@ -714,9 +714,10 @@ WRITE8_MEMBER(sega8_eeprom_device::write_mapper)
}
}
MACHINE_CONFIG_START(sega8_eeprom_device::device_add_mconfig)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MACHINE_CONFIG_END
void sega8_eeprom_device::device_add_mconfig(machine_config &config)
{
EEPROM_93C46_16BIT(config, "eeprom");
}
/*-------------------------------------------------

View File

@ -15,26 +15,14 @@
#pragma once
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_DS1315_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, DS1315, 0)
#define MCFG_DS1315_BACKING_HANDLER(_devcb) \
downcast<ds1315_device &>(*device).set_backing_handler(DEVCB_##_devcb);
/***************************************************************************
MACROS
***************************************************************************/
class ds1315_device : public device_t
{
public:
ds1315_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
~ds1315_device() {}
auto read_backing() { return m_backing_read.bind(); }
// this handler automates the bits 0/2 stuff
DECLARE_READ8_MEMBER(read);
@ -46,8 +34,6 @@ public:
bool chip_enable();
void chip_reset();
template <class Object> devcb_base &set_backing_handler(Object &&cb) { return m_backing_read.set_callback(std::forward<Object>(cb)); }
protected:
// device-level overrides
virtual void device_start() override;

View File

@ -56,24 +56,14 @@
#pragma once
// handlers
#define MCFG_DS1386_INTA_HANDLER(_devcb) \
downcast<ds1386_device &>(*device).set_inta_cb(DEVCB_##_devcb);
#define MCFG_DS1386_INTB_HANDLER(_devcb) \
downcast<ds1386_device &>(*device).set_intb_cb(DEVCB_##_devcb);
#define MCFG_DS1386_SQW_HANDLER(_devcb) \
downcast<ds1386_device &>(*device).set_sqw_cb(DEVCB_##_devcb);
// devices
class ds1386_device : public device_t,
public device_nvram_interface
{
public:
auto inta() { return m_inta_cb.bind(); }
auto intb() { return m_intb_cb.bind(); }
auto sqw() { return m_sqw_cb.bind(); }
DECLARE_WRITE8_MEMBER( data_w );
DECLARE_READ8_MEMBER( data_r );
@ -81,10 +71,6 @@ public:
DECLARE_WRITE_LINE_MEMBER( oe_w );
DECLARE_WRITE_LINE_MEMBER( we_w );
template <class Object> devcb_base &set_inta_cb(Object &&cb) { return m_inta_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_intb_cb(Object &&cb) { return m_intb_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_sqw_cb(Object &&cb) { return m_sqw_cb.set_callback(std::forward<Object>(cb)); }
protected:
enum
{
@ -185,18 +171,15 @@ protected:
class ds1386_8k_device : public ds1386_device
{
public:
// construction/destruction
ds1386_8k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
class ds1386_32k_device : public ds1386_device
{
public:
// construction/destruction
ds1386_32k_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
};
// device type definition
DECLARE_DEVICE_TYPE(DS1386_8K, ds1386_8k_device)
DECLARE_DEVICE_TYPE(DS1386_32K, ds1386_32k_device)

View File

@ -13,30 +13,6 @@
#pragma once
/***************************************************************************
DEVICE CONFIGURATION MACROS
***************************************************************************/
#define MCFG_DS2404_REF_YEAR(_ref_year) \
downcast<ds2404_device &>(*device).set_ref_year(_ref_year);
#define MCFG_DS2404_REF_MONTH(_ref_month) \
downcast<ds2404_device &>(*device).set_ref_month(_ref_month);
#define MCFG_DS2404_REF_DAY(_ref_day) \
downcast<ds2404_device &>(*device).set_ref_day(_ref_day);
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> ds2404_device
class ds2404_device : public device_t, public device_nvram_interface
{
public:
@ -44,9 +20,9 @@ public:
ds2404_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// inline configuration helpers
void set_ref_year(uint32_t year) { m_ref_year = year; }
void set_ref_month(uint8_t month) { m_ref_month = month; }
void set_ref_day(uint8_t day) { m_ref_day = day; }
void ref_year(uint32_t year) { m_ref_year = year; }
void ref_month(uint8_t month) { m_ref_month = month; }
void ref_day(uint8_t day) { m_ref_day = day; }
/* 1-wire interface reset */
DECLARE_WRITE8_MEMBER(ds2404_1w_reset_w);
@ -112,8 +88,6 @@ private:
int m_state_ptr;
};
// device type definition
DECLARE_DEVICE_TYPE(DS2404, ds2404_device)
#endif // MAME_MACHINE_DS2404_H

View File

@ -49,10 +49,8 @@ public:
// construction/destruction
ds75160a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <class Read, class Write> void set_callbacks(Read &&rd, Write &&wr) {
m_read.set_callback(std::forward<Read>(rd));
m_write.set_callback(std::forward<Write>(wr));
}
auto read_callback() { return m_read.bind(); }
auto write_callback() { return m_write.bind(); }
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );

View File

@ -24,89 +24,28 @@
#pragma once
///*************************************************************************
// INTERFACE CONFIGURATION MACROS
///*************************************************************************
#define MCFG_DS75161A_IN_REN_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_ren_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_IFC_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_ifc_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_NDAC_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_ndac_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_NRFD_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_nrfd_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_DAV_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_dav_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_EOI_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_eoi_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_ATN_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_atn_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_IN_SRQ_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_in_srq_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_REN_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_ren_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_IFC_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_ifc_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_NDAC_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_ndac_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_NRFD_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_nrfd_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_DAV_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_dav_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_EOI_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_eoi_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_ATN_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_atn_callback(DEVCB_##_devcb);
#define MCFG_DS75161A_OUT_SRQ_CB(_devcb) \
downcast<ds75161a_device &>(*device).set_out_srq_callback(DEVCB_##_devcb);
///*************************************************************************
// TYPE DEFINITIONS
///*************************************************************************
// ======================> ds75161a_device
class ds75161a_device : public device_t
{
public:
// construction/destruction
ds75161a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
template <class Object> devcb_base &set_in_ren_callback(Object &&cb) { return m_in_ren_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_ifc_callback(Object &&cb) { return m_in_ifc_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_ndac_callback(Object &&cb) { return m_in_ndac_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_nrfd_callback(Object &&cb) { return m_in_nrfd_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_dav_callback(Object &&cb) { return m_in_dav_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_eoi_callback(Object &&cb) { return m_in_eoi_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_atn_callback(Object &&cb) { return m_in_atn_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_in_srq_callback(Object &&cb) { return m_in_srq_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_ren_callback(Object &&cb) { return m_out_ren_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_ifc_callback(Object &&cb) { return m_out_ifc_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_ndac_callback(Object &&cb) { return m_out_ndac_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_nrfd_callback(Object &&cb) { return m_out_nrfd_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_dav_callback(Object &&cb) { return m_out_dav_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_eoi_callback(Object &&cb) { return m_out_eoi_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_atn_callback(Object &&cb) { return m_out_atn_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_out_srq_callback(Object &&cb) { return m_out_srq_cb.set_callback(std::forward<Object>(cb)); }
auto in_ren() { return m_in_ren_cb.bind(); }
auto in_ifc() { return m_in_ifc_cb.bind(); }
auto in_ndac() { return m_in_ndac_cb.bind(); }
auto in_nrfd() { return m_in_nrfd_cb.bind(); }
auto in_dav() { return m_in_dav_cb.bind(); }
auto in_eoi() { return m_in_eoi_cb.bind(); }
auto in_atn() { return m_in_atn_cb.bind(); }
auto in_srq() { return m_in_srq_cb.bind(); }
auto out_ren() { return m_out_ren_cb.bind(); }
auto out_ifc() { return m_out_ifc_cb.bind(); }
auto out_ndac() { return m_out_ndac_cb.bind(); }
auto out_nrfd() { return m_out_nrfd_cb.bind(); }
auto out_dav() { return m_out_dav_cb.bind(); }
auto out_eoi() { return m_out_eoi_cb.bind(); }
auto out_atn() { return m_out_atn_cb.bind(); }
auto out_srq() { return m_out_srq_cb.bind(); }
DECLARE_WRITE_LINE_MEMBER( te_w );
DECLARE_WRITE_LINE_MEMBER( dc_w );
@ -167,8 +106,6 @@ private:
int m_dc;
};
// device type definition
DECLARE_DEVICE_TYPE(DS75161A, ds75161a_device)
#endif // MAME_MACHINE_DS75161A_H

View File

@ -49,7 +49,7 @@ eeprom_base_device::eeprom_base_device(const machine_config &mconfig, device_typ
// to set the default data
//-------------------------------------------------
void eeprom_base_device::set_size(int cells, int cellbits)
eeprom_base_device& eeprom_base_device::size(int cells, int cellbits)
{
m_cells = cells;
m_data_bits = cellbits;
@ -62,6 +62,8 @@ void eeprom_base_device::set_size(int cells, int cellbits)
cells >>= 1;
m_address_bits++;
}
return *this;
}
@ -70,18 +72,20 @@ void eeprom_base_device::set_size(int cells, int cellbits)
// to set the default data
//-------------------------------------------------
void eeprom_base_device::set_default_data(const uint8_t *data, uint32_t size)
eeprom_base_device& eeprom_base_device::default_data(const uint8_t *data, uint32_t size)
{
assert(m_data_bits == 8);
m_default_data = data;
m_default_data_size = size;
return *this;
}
void eeprom_base_device::set_default_data(const uint16_t *data, uint32_t size)
eeprom_base_device& eeprom_base_device::default_data(const uint16_t *data, uint32_t size)
{
assert(m_data_bits == 16);
m_default_data = data;
m_default_data_size = size / 2;
return *this;
}

View File

@ -13,36 +13,6 @@
#pragma once
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_EEPROM_SIZE(_cells, _cellbits) \
downcast<eeprom_base_device &>(*device).set_size(_cells, _cellbits);
#define MCFG_EEPROM_DATA(_data, _size) \
downcast<eeprom_base_device &>(*device).set_default_data(_data, _size);
#define MCFG_EEPROM_DEFAULT_VALUE(_value) \
downcast<eeprom_base_device &>(*device).set_default_value(_value);
#define MCFG_EEPROM_WRITE_TIME(_value) \
downcast<eeprom_base_device &>(*device).set_timing(eeprom_base_device::WRITE_TIME, _value);
#define MCFG_EEPROM_WRITE_ALL_TIME(_value) \
downcast<eeprom_base_device &>(*device).set_timing(eeprom_base_device::WRITE_ALL_TIME, _value);
#define MCFG_EEPROM_ERASE_TIME(_value) \
downcast<eeprom_base_device &>(*device).set_timing(eeprom_base_device::ERASE_TIME, _value);
#define MCFG_EEPROM_ERASE_ALL_TIME(_value) \
downcast<eeprom_base_device &>(*device).set_timing(eeprom_base_device::ERASE_ALL_TIME, _value);
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> eeprom_base_device
class eeprom_base_device : public device_t,
public device_nvram_interface
{
@ -58,11 +28,15 @@ public:
};
// inline configuration helpers
void set_size(int cells, int cellbits);
void set_default_data(const uint8_t *data, uint32_t size);
void set_default_data(const uint16_t *data, uint32_t size);
void set_default_value(uint32_t value) { m_default_value = value; m_default_value_set = true; }
void set_timing(timing_type type, const attotime &duration) { m_operation_time[type] = duration; }
eeprom_base_device& size(int cells, int cellbits);
eeprom_base_device& default_data(const uint8_t *data, uint32_t size);
eeprom_base_device& default_data(const uint16_t *data, uint32_t size);
eeprom_base_device& default_value(uint32_t value) { m_default_value = value; m_default_value_set = true; return *this; }
eeprom_base_device& timing(timing_type type, const attotime &duration) { m_operation_time[type] = duration; return *this; }
eeprom_base_device& write_time(const attotime &duration) { m_operation_time[eeprom_base_device::WRITE_TIME] = duration; return *this; }
eeprom_base_device& write_all_time(const attotime &duration) { m_operation_time[eeprom_base_device::WRITE_ALL_TIME] = duration; return *this; }
eeprom_base_device& erase_time(const attotime &duration) { m_operation_time[eeprom_base_device::ERASE_TIME] = duration; return *this; }
eeprom_base_device& erase_all_time(const attotime &duration) { m_operation_time[eeprom_base_device::ERASE_ALL_TIME] = duration; return *this; }
// read/write/erase data
uint32_t read(offs_t address);

View File

@ -204,11 +204,11 @@ WRITE32_MEMBER(eeprom_parallel_28xx_device::unlock_write32) { oe_w(1); }
// macro for defining a new device class
#define DEFINE_PARALLEL_EEPROM_DEVICE(_baseclass, _lowercase, _uppercase, _bits, _cells) \
eeprom_parallel_##_lowercase##_device::eeprom_parallel_##_lowercase##_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) \
: eeprom_parallel_##_baseclass##_device(mconfig, EEPROM_PARALLEL_##_uppercase, tag, owner) \
: eeprom_parallel_##_baseclass##_device(mconfig, EEPROM_##_uppercase, tag, owner) \
{ \
set_size(_cells, _bits); \
size(_cells, _bits); \
} \
DEFINE_DEVICE_TYPE(EEPROM_PARALLEL_##_uppercase, eeprom_parallel_##_lowercase##_device, #_lowercase, "Parallel EEPROM " #_uppercase " (" #_cells "x" #_bits ")")
DEFINE_DEVICE_TYPE(EEPROM_##_uppercase, eeprom_parallel_##_lowercase##_device, #_lowercase, "Parallel EEPROM " #_uppercase " (" #_cells "x" #_bits ")")
// standard 28XX class of 8-bit EEPROMs
DEFINE_PARALLEL_EEPROM_DEVICE(28xx, 2804, 2804, 8, 512)

View File

@ -15,41 +15,6 @@
#include "eeprom.h"
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
// standard 28XX class of 8-bit parallel EEPROMs
#define MCFG_EEPROM_2804_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_2804, 0)
#define MCFG_EEPROM_2816_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_2816, 0)
#define MCFG_EEPROM_2864_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_2864, 0)
#define MCFG_EEPROM_28256_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_28256, 0)
#define MCFG_EEPROM_28512_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_28512, 0)
#define MCFG_EEPROM_28010_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_28010, 0)
#define MCFG_EEPROM_28020_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_28020, 0)
#define MCFG_EEPROM_28040_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, EEPROM_PARALLEL_28040, 0)
// true when external circuit is used to lock EEPROM after every write
#define MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(_lock) \
downcast<eeprom_parallel_28xx_device &>(*device).set_lock_after_write(_lock);
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> eeprom_parallel_base_device
class eeprom_parallel_base_device : public eeprom_base_device
{
protected:
@ -61,15 +26,11 @@ protected:
virtual void device_reset() override;
};
// ======================> eeprom_parallel_28xx_device
class eeprom_parallel_28xx_device : public eeprom_parallel_base_device
{
public:
// configuration helpers
void set_lock_after_write(bool lock) { m_lock_after_write = lock; }
void lock_after_write(bool lock) { m_lock_after_write = lock; }
// read/write data lines
DECLARE_WRITE8_MEMBER(write);
@ -110,7 +71,7 @@ class eeprom_parallel_##_lowercase##_device : public eeprom_parallel_##_baseclas
public: \
eeprom_parallel_##_lowercase##_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); \
}; \
DECLARE_DEVICE_TYPE(EEPROM_PARALLEL_##_uppercase, eeprom_parallel_##_lowercase##_device)
DECLARE_DEVICE_TYPE(EEPROM_##_uppercase, eeprom_parallel_##_lowercase##_device)
// standard 28XX class of 8-bit EEPROMs
DECLARE_PARALLEL_EEPROM_DEVICE(28xx, 2804, 2804)

View File

@ -1099,18 +1099,18 @@ WRITE_LINE_MEMBER(eeprom_serial_x24c44_device::di_write) { base_di_write(state);
// macro for defining a new device class
#define DEFINE_SERIAL_EEPROM_DEVICE(_baseclass, _lowercase, _uppercase, _bits, _cells, _addrbits) \
eeprom_serial_##_lowercase##_##_bits##bit_device::eeprom_serial_##_lowercase##_##_bits##bit_device(const machine_config &mconfig, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming) \
: eeprom_serial_##_baseclass##_device(mconfig, EEPROM_SERIAL_##_uppercase##_##_bits##BIT, tag, owner, enable_streaming) \
: eeprom_serial_##_baseclass##_device(mconfig, EEPROM_##_uppercase##_##_bits##BIT, tag, owner, enable_streaming) \
{ \
set_size(_cells, _bits); \
size(_cells, _bits); \
set_address_bits(_addrbits); \
} \
eeprom_serial_##_lowercase##_##_bits##bit_device::eeprom_serial_##_lowercase##_##_bits##bit_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock) \
: eeprom_serial_##_baseclass##_device(mconfig, EEPROM_SERIAL_##_uppercase##_##_bits##BIT, tag, owner, eeprom_serial_streaming::DISABLE) \
: eeprom_serial_##_baseclass##_device(mconfig, EEPROM_##_uppercase##_##_bits##BIT, tag, owner, eeprom_serial_streaming::DISABLE) \
{ \
set_size(_cells, _bits); \
size(_cells, _bits); \
set_address_bits(_addrbits); \
} \
DEFINE_DEVICE_TYPE(EEPROM_SERIAL_##_uppercase##_##_bits##BIT, eeprom_serial_##_lowercase##_##_bits##bit_device, #_lowercase "_" #_bits, "Serial EEPROM " #_uppercase " (" #_cells "x" #_bits ")")
DEFINE_DEVICE_TYPE(EEPROM_##_uppercase##_##_bits##BIT, eeprom_serial_##_lowercase##_##_bits##bit_device, #_lowercase "_" #_bits, "Serial EEPROM " #_uppercase " (" #_cells "x" #_bits ")")
// standard 93CX6 class of 16-bit EEPROMs
DEFINE_SERIAL_EEPROM_DEVICE(93cxx, 93c06, 93C06, 16, 16, 6)

View File

@ -15,19 +15,6 @@
#include "eeprom.h"
//**************************************************************************
// INTERFACE CONFIGURATION MACROS
//**************************************************************************
#define MCFG_EEPROM_SERIAL_DO_CALLBACK(_devcb) \
downcast<eeprom_serial_base_device &>(*device).set_do_callback(DEVCB_##_devcb);
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
enum class eeprom_serial_streaming : bool
{
DISABLE = false,
@ -233,7 +220,7 @@ public: \
eeprom_serial_##_lowercase##_##_bits##bit_device(const machine_config &mconfig, const char *tag, device_t *owner, eeprom_serial_streaming enable_streaming = eeprom_serial_streaming::DISABLE); \
eeprom_serial_##_lowercase##_##_bits##bit_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); \
}; \
DECLARE_DEVICE_TYPE(EEPROM_SERIAL_##_uppercase##_##_bits##BIT, eeprom_serial_##_lowercase##_##_bits##bit_device)
DECLARE_DEVICE_TYPE(EEPROM_##_uppercase##_##_bits##BIT, eeprom_serial_##_lowercase##_##_bits##bit_device)
// standard 93CX6 class of 16-bit EEPROMs
DECLARE_SERIAL_EEPROM_DEVICE(93cxx, 93c06, 93C06, 16)

View File

@ -26,8 +26,7 @@
class latch8_device : public device_t
{
public:
latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
latch8_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
/* write & read full byte */
@ -79,8 +78,9 @@ public:
void set_nosync(uint32_t nosync) { m_nosync = nosync; }
template <unsigned N, class Object> devcb_base &set_write_cb(Object &&cb) { return m_write_cb[N].set_callback(std::forward<Object>(cb)); }
template <unsigned N, class Object> devcb_base &set_read_cb(Object &&cb) { return m_read_cb[N].set_callback(std::forward<Object>(cb)); }
template <unsigned N> auto write_cb() { return m_write_cb[N].bind(); }
template <unsigned N> auto read_cb() { return m_read_cb[N].bind(); }
protected:
// device-level overrides

View File

@ -214,6 +214,10 @@ public:
template <class Object> devcb_base &set_allpot_r_callback(Object &&cb) { return m_allpot_r_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_serin_r_callback(Object &&cb) { return m_serin_r_cb.set_callback(std::forward<Object>(cb)); }
template <class Object> devcb_base &set_serout_w_callback(Object &&cb) { return m_serout_w_cb.set_callback(std::forward<Object>(cb)); }
template <unsigned N> auto pot_r() { return m_pot_r_cb[N].bind(); }
auto allpot_r() { return m_allpot_r_cb.bind(); }
auto serin_r() { return m_serin_r_cb.bind(); }
auto serout_w() { return m_serout_w_cb.bind(); }
template <typename Object> void set_keyboard_callback(Object &&cb) { m_keyboard_r = std::forward<Object>(cb); }
template <typename Object> void set_interrupt_callback(Object &&cb) { m_irq_f = std::forward<Object>(cb); }

View File

@ -2222,7 +2222,7 @@ WRITE8_MEMBER(vga_device::mem_linear_w)
MACHINE_CONFIG_START(ati_vga_device::device_add_mconfig)
MCFG_MACH8_ADD_OWNER("8514a")
MCFG_DEVICE_ADD("ati_eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "ati_eeprom");
MACHINE_CONFIG_END
MACHINE_CONFIG_START(s3_vga_device::device_add_mconfig)

View File

@ -370,7 +370,7 @@ enum tilemap_standard_mapper
#define MCFG_TILEMAP_ADD(_tag) \
MCFG_DEVICE_ADD(_tag, TILEMAP)
#define MCFG_TILEMAP_GFXDECODE(_gfxtag) \
downcast<tilemap_device &>(*device).set_gfxdecode_tag(_gfxtag);
downcast<tilemap_device &>(*device).set_gfxdecode(_gfxtag);
#define MCFG_TILEMAP_BYTES_PER_ENTRY(_bpe) \
downcast<tilemap_device &>(*device).set_bytes_per_entry(_bpe);
#define MCFG_TILEMAP_INFO_CB_DRIVER(_class, _method) \
@ -717,13 +717,44 @@ class tilemap_device : public device_t,
public tilemap_t
{
public:
// construction/destruction
template <typename T>
tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&gfxtag, int entrybytes
, u16 tilewidth, u16 tileheight, tilemap_standard_mapper mapper, u32 columns, u32 rows, pen_t transpen)
: tilemap_device(mconfig, tag, owner, (u32)0)
{
set_gfxdecode(std::forward<T>(gfxtag));
set_bytes_per_entry(entrybytes);
set_layout(mapper, columns, rows);
set_tile_size(tilewidth, tileheight);
set_configured_transparent_pen(transpen);
}
template <typename T>
tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, T &&gfxtag, int entrybytes
, u16 tilewidth, u16 tileheight, tilemap_standard_mapper mapper, u32 columns, u32 rows)
: tilemap_device(mconfig, tag, owner, (u32)0)
{
set_gfxdecode(std::forward<T>(gfxtag));
set_bytes_per_entry(entrybytes);
set_layout(mapper, columns, rows);
set_tile_size(tilewidth, tileheight);
}
tilemap_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock = 0);
// configuration
void set_gfxdecode_tag(const char *tag) { m_gfxdecode.set_tag(tag); }
template <typename T> void set_gfxdecode(T &&tag) { m_gfxdecode.set_tag(std::forward<T>(tag)); }
void set_bytes_per_entry(int bpe) { m_bytes_per_entry = bpe; }
void set_info_callback(tilemap_get_info_delegate tile_get_info) { m_get_info = tile_get_info; }
template <class FunctionClass> void set_info_callback(const char *devname, void (FunctionClass::*callback)(tilemap_t &, tile_data &, tilemap_memory_index), const char *name)
{
set_info_callback(tilemap_get_info_delegate(callback, name, devname, static_cast<FunctionClass *>(nullptr)));
}
template <class FunctionClass> void set_info_callback(void (FunctionClass::*callback)(tilemap_t &, tile_data &, tilemap_memory_index), const char *name)
{
set_info_callback(tilemap_get_info_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
}
void set_layout(tilemap_standard_mapper mapper, u32 columns, u32 rows) {
m_standard_mapper = mapper;
m_num_columns = columns;

View File

@ -704,7 +704,8 @@ MACHINE_CONFIG_START(atari_jsa_i_device::device_add_mconfig)
MCFG_DEVICE_PERIODIC_INT_DEVICE("soundcomm", atari_sound_comm_device, sound_irq_gen, JSA_MASTER_CLOCK/4/16/16/14)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
ATARI_SOUND_COMM(config, "soundcomm", "cpu")
.int_callback().set(FUNC(atari_jsa_base_device::main_int_write_line));
MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
@ -834,7 +835,8 @@ MACHINE_CONFIG_START(atari_jsa_ii_device::device_add_mconfig)
MCFG_DEVICE_PERIODIC_INT_DEVICE("soundcomm", atari_sound_comm_device, sound_irq_gen, JSA_MASTER_CLOCK/4/16/16/14)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
ATARI_SOUND_COMM(config, "soundcomm", "cpu")
.int_callback().set(FUNC(atari_jsa_base_device::main_int_write_line));
MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
@ -916,7 +918,8 @@ MACHINE_CONFIG_START(atari_jsa_iii_device::device_add_mconfig)
MCFG_DEVICE_PERIODIC_INT_DEVICE("soundcomm", atari_sound_comm_device, sound_irq_gen, JSA_MASTER_CLOCK/4/16/16/14)
// sound hardware
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "cpu", WRITELINE(*this, atari_jsa_base_device, main_int_write_line))
ATARI_SOUND_COMM(config, "soundcomm", "cpu")
.int_callback().set(FUNC(atari_jsa_base_device::main_int_write_line));
MCFG_DEVICE_ADD("ym2151", YM2151, JSA_MASTER_CLOCK)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))

View File

@ -404,7 +404,7 @@ MACHINE_CONFIG_START(_20pacgal_state::_20pacgal)
MCFG_DEVICE_PROGRAM_MAP(_20pacgal_map)
MCFG_DEVICE_IO_MAP(_20pacgal_io_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -277,7 +277,7 @@ MACHINE_CONFIG_START(_39in1_state::_39in1)
MCFG_DEVICE_ADD("maincpu", PXA255, 200000000)
MCFG_DEVICE_PROGRAM_MAP(_39in1_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_16BIT)
EEPROM_93C66_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("pxa_periphs", PXA255_PERIPHERALS, 200000000, "maincpu")
MCFG_PXA255_GPIO0_SET_CALLBACK(WRITE32(*this, _39in1_state, eeprom_set_w))

View File

@ -3524,7 +3524,7 @@ MACHINE_CONFIG_START(_8080bw_state::invmulti)
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_PROGRAM_MAP(invmulti_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
MCFG_MACHINE_RESET_OVERRIDE(_8080bw_state, mw8080bw)
MACHINE_CONFIG_END

View File

@ -367,7 +367,7 @@ MACHINE_CONFIG_START(albazg_state::yumefuda)
MCFG_DEVICE_IO_MAP(port_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", albazg_state, irq0_line_hold)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")
MCFG_WATCHDOG_VBLANK_INIT("screen", 8) // timing is unknown

View File

@ -3994,8 +3994,7 @@ MACHINE_CONFIG_START(apple2e_state::apple2e)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
/* DS1315 for no-slot clock */
MCFG_DS1315_ADD("nsc")
MCFG_DS1315_BACKING_HANDLER(READ8(*this, apple2e_state, nsc_backing_r))
DS1315(config, m_ds1315, 0).read_backing().set(FUNC(apple2e_state::nsc_backing_r));
/* RAM */
RAM(config, m_ram).set_default_size("64K").set_default_value(0);

View File

@ -325,8 +325,7 @@ MACHINE_CONFIG_START(sparkz_state::sparkz)
MCFG_DEVICE_ADD("maincpu", M68000, MASTER_CLOCK)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -2054,8 +2054,8 @@ MACHINE_CONFIG_START(aristmk5_state::aristmk5)
MCFG_PALETTE_ADD("palette", 0x200)
MCFG_DEVICE_ADD("eeprom0", EEPROM_SERIAL_93C56_16BIT)
MCFG_DEVICE_ADD("eeprom1", EEPROM_SERIAL_93C56_16BIT)
EEPROM_93C56_16BIT(config, "eeprom0");
EEPROM_93C56_16BIT(config, "eeprom1");
MCFG_NVRAM_ADD_NO_FILL("nvram")

View File

@ -353,8 +353,7 @@ MACHINE_CONFIG_START(aristmk6_state::aristmk6)
MCFG_DEVICE_ADD( "uart0", NS16550, 8_MHz_XTAL )
MCFG_DEVICE_ADD( "uart1", NS16550, 8_MHz_XTAL )
MCFG_DEVICE_ADD("eeprom0", EEPROM_SERIAL_93C56_16BIT)
MCFG_EEPROM_DEFAULT_VALUE(0xFF)
EEPROM_93C56_16BIT(config, m_eeprom0).default_value(0xff);
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -823,8 +823,8 @@ MACHINE_CONFIG_START(artmagic_state::artmagic)
MCFG_TMS340X0_FROM_SHIFTREG_CB(artmagic_state, from_shiftreg) /* read from shiftreg function */
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_WRITE_TIME(attotime::from_usec(1)) // FIXME: false-readback polling should make this unnecessary
EEPROM_2816(config, "eeprom").write_time(attotime::from_usec(1)); // FIXME: false-readback polling should make this unnecessary
/* video hardware */
MCFG_TLC34076_ADD("tlc34076", TLC34076_6_BIT)

View File

@ -270,7 +270,7 @@ MACHINE_CONFIG_START(asterix_state::asterix)
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(32'000'000)/4) // 8MHz Z80E ??
MCFG_DEVICE_PROGRAM_MAP(sound_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_ER5911_8BIT)
EEPROM_ER5911_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -531,8 +531,8 @@ MACHINE_CONFIG_START(astrocorp_state::showhand)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", astrocorp_state, irq4_line_hold)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_DATA(showhand_default_eeprom, sizeof(showhand_default_eeprom))
EEPROM_93C46_16BIT(config, "eeprom").default_data(showhand_default_eeprom, sizeof(showhand_default_eeprom));
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -584,7 +584,7 @@ MACHINE_CONFIG_START(astrocorp_state::skilldrp)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", astrocorp_state, skilldrp_scanline, "screen", 0, 1)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW )
MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW )

View File

@ -404,8 +404,7 @@ MACHINE_CONFIG_START(atarig1_state::atarig1)
MCFG_MACHINE_START_OVERRIDE(atarig1_state,atarig1)
MCFG_MACHINE_RESET_OVERRIDE(atarig1_state,atarig1)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -519,8 +519,7 @@ MACHINE_CONFIG_START(atarig42_state::atarig42)
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -800,8 +800,7 @@ MACHINE_CONFIG_START(atarigt_state::atarigt)
MCFG_MACHINE_RESET_OVERRIDE(atarigt_state,atarigt)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_atarigt)

View File

@ -1500,8 +1500,7 @@ MACHINE_CONFIG_START(atarigx2_state::atarigx2)
m_adc->in_callback<6>().set_ioport("A2D6");
m_adc->in_callback<7>().set_ioport("A2D7");
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_atarigx2)

View File

@ -736,8 +736,7 @@ MACHINE_CONFIG_START(atarisy1_state::atarisy1)
MCFG_MACHINE_START_OVERRIDE(atarisy1_state,atarisy1)
MCFG_MACHINE_RESET_OVERRIDE(atarisy1_state,atarisy1)
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
LS259(config, m_outlatch); // 15H (TTL) or 14F (LSI)
m_outlatch->q_out_cb<0>().set("ymsnd", FUNC(ym2151_device::reset_w));
@ -776,7 +775,8 @@ MACHINE_CONFIG_START(atarisy1_state::atarisy1)
MCFG_VIDEO_START_OVERRIDE(atarisy1_state,atarisy1)
/* sound hardware */
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_6))
ATARI_SOUND_COMM(config, "soundcomm", "audiocpu")
.int_callback().set_inputline("maincpu", M68K_IRQ_6);
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();

View File

@ -1206,7 +1206,7 @@ MACHINE_CONFIG_START(atarisy2_state::atarisy2)
// IN6 = J102 pin 2 (unused)
// IN7 = J102 pin 3 (unused)
MCFG_EEPROM_2804_ADD("eeprom")
EEPROM_2804(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")
@ -1233,7 +1233,7 @@ MACHINE_CONFIG_START(atarisy2_state::atarisy2)
MCFG_VIDEO_START_OVERRIDE(atarisy2_state,atarisy2)
/* sound hardware */
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", NOOP)
ATARI_SOUND_COMM(config, "soundcomm", "audiocpu").int_callback().set_nop();
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
MCFG_DEVICE_ADD("ymsnd", YM2151, SOUND_CLOCK/4)

View File

@ -118,8 +118,8 @@ void atetris_state::machine_start()
void atetris_state::machine_reset()
{
/* reset the slapstic */
m_slapstic_device->slapstic_reset();
m_current_bank = m_slapstic_device->slapstic_bank() & 1;
m_slapstic->slapstic_reset();
m_current_bank = m_slapstic->slapstic_bank() & 1;
reset_bank();
/* start interrupts going (32V clocked by 16V) */
@ -137,7 +137,7 @@ void atetris_state::machine_reset()
READ8_MEMBER(atetris_state::slapstic_r)
{
int result = m_slapstic_base[0x2000 + offset];
int new_bank = m_slapstic_device->slapstic_tweak(space, offset) & 1;
int new_bank = m_slapstic->slapstic_tweak(space, offset) & 1;
/* update for the new bank */
if (new_bank != m_current_bank)
@ -341,103 +341,88 @@ GFXDECODE_END
*
*************************************/
MACHINE_CONFIG_START(atetris_state::atetris)
void atetris_state::atetris_base(machine_config &config)
{
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", M6502,MASTER_CLOCK/8)
MCFG_DEVICE_PROGRAM_MAP(main_map)
M6502(config, m_maincpu, MASTER_CLOCK/8);
m_maincpu->set_addrmap(AS_PROGRAM, &atetris_state::main_map);
MCFG_DEVICE_ADD("slapstic", SLAPSTIC, 101, false)
SLAPSTIC(config, m_slapstic, 101, false);
MCFG_DEVICE_ADD("eeprom", EEPROM_PARALLEL_2804, 0)
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
MCFG_WATCHDOG_ADD("watchdog")
WATCHDOG_TIMER(config, "watchdog");
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_atetris)
GFXDECODE(config, m_gfxdecode, "palette", gfx_atetris);
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_FORMAT(RRRGGGBB)
PALETTE(config, "palette", 256).set_format(PALETTE_FORMAT_RRRGGGBB);
MCFG_SCREEN_ADD("screen", RASTER)
SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
/* note: these parameters are from published specs, not derived */
/* the board uses an SOS-2 chip to generate video signals */
MCFG_SCREEN_RAW_PARAMS(MASTER_CLOCK/2, 456, 0, 336, 262, 0, 240)
MCFG_SCREEN_UPDATE_DRIVER(atetris_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
m_screen->set_raw(MASTER_CLOCK/2, 456, 0, 336, 262, 0, 240);
m_screen->set_screen_update(FUNC(atetris_state::screen_update));
m_screen->set_palette("palette");
/* sound hardware */
SPEAKER(config, "mono").front_center();
}
MCFG_DEVICE_ADD("pokey1", POKEY, MASTER_CLOCK/8)
MCFG_POKEY_ALLPOT_R_CB(IOPORT("IN0"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
void atetris_state::atetris(machine_config &config)
{
atetris_base(config);
MCFG_DEVICE_ADD("pokey2", POKEY, MASTER_CLOCK/8)
MCFG_POKEY_ALLPOT_R_CB(IOPORT("IN1"))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
EEPROM_2804(config, "eeprom").lock_after_write(true);
pokey_device &pokey1(POKEY(config, "pokey1", MASTER_CLOCK/8));
pokey1.allpot_r().set_ioport("IN0");
pokey1.add_route(ALL_OUTPUTS, "mono", 0.50);
pokey_device &pokey2(POKEY(config, "pokey2", MASTER_CLOCK/8));
pokey2.allpot_r().set_ioport("IN1");
pokey2.add_route(ALL_OUTPUTS, "mono", 0.50);
}
MACHINE_CONFIG_START(atetris_state::atetrisb2)
atetris(config);
void atetris_state::atetrisb2(machine_config &config)
{
atetris_base(config);
EEPROM_2804(config, "eeprom").lock_after_write(true);
/* basic machine hardware */
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_CLOCK(BOOTLEG_CLOCK/8)
MCFG_DEVICE_PROGRAM_MAP(atetrisb2_map)
m_maincpu->set_clock(BOOTLEG_CLOCK/8);
m_maincpu->set_addrmap(AS_PROGRAM, &atetris_state::atetrisb2_map);
MCFG_DEVICE_REMOVE("pokey1")
MCFG_DEVICE_REMOVE("pokey2")
MCFG_DEVICE_ADD("sn1", SN76489A, BOOTLEG_CLOCK/8)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("sn2", SN76489A, BOOTLEG_CLOCK/8)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("sn3", SN76489, BOOTLEG_CLOCK/8)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
SN76489A(config, "sn1", BOOTLEG_CLOCK/8).add_route(ALL_OUTPUTS, "mono", 0.50);
SN76489A(config, "sn2", BOOTLEG_CLOCK/8).add_route(ALL_OUTPUTS, "mono", 0.50);
SN76489(config, "sn3", BOOTLEG_CLOCK/8).add_route(ALL_OUTPUTS, "mono", 0.50);
}
MACHINE_CONFIG_START(atetris_mcu_state::atetrisb3)
atetris(config);
void atetris_mcu_state::atetrisb3(machine_config &config)
{
atetris_base(config);
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_PROGRAM_MAP(atetrisb3_map)
m_maincpu->set_addrmap(AS_PROGRAM, &atetris_mcu_state::atetrisb3_map);
MCFG_DEVICE_REPLACE("eeprom", EEPROM_PARALLEL_2816, 0)
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_DEVICE_REMOVE("pokey1")
MCFG_DEVICE_REMOVE("pokey2")
I8749(config, m_mcu, 10_MHz_XTAL);
m_mcu->bus_in_cb().set(FUNC(atetris_mcu_state::mcu_bus_r));
m_mcu->bus_out_cb().set(m_soundlatch[0], FUNC(generic_latch_8_device::acknowledge_w));
m_mcu->p2_out_cb().set(FUNC(atetris_mcu_state::mcu_p2_w));
MCFG_DEVICE_ADD("mcu", I8749, 10_MHz_XTAL)
MCFG_MCS48_PORT_BUS_IN_CB(READ8(*this, atetris_mcu_state, mcu_bus_r))
MCFG_MCS48_PORT_BUS_OUT_CB(WRITE8("soundlatch1", generic_latch_8_device, acknowledge_w))
MCFG_MCS48_PORT_P2_OUT_CB(WRITE8(*this, atetris_mcu_state, mcu_p2_w))
GENERIC_LATCH_8(config, m_soundlatch[0]);
m_soundlatch[0]->data_pending_callback().set_inputline(m_mcu, MCS48_INPUT_IRQ);
m_soundlatch[0]->set_separate_acknowledge(true);
MCFG_GENERIC_LATCH_8_ADD("soundlatch1")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("mcu", MCS48_INPUT_IRQ))
MCFG_GENERIC_LATCH_SEPARATE_ACKNOWLEDGE(true)
GENERIC_LATCH_8(config, m_soundlatch[1]);
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_DEVICE_ADD("sn1", SN76489A, 4000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("sn2", SN76489A, 4000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("sn3", SN76489A, 4000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("sn4", SN76489A, 4000000)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
for (int i = 0; i < 4; i++)
{
SN76489A(config, m_sn[i], 4000000).add_route(ALL_OUTPUTS, "mono", 0.50);
}
}
@ -589,7 +574,7 @@ void atetris_state::init_atetris()
{
uint8_t *rgn = memregion("maincpu")->base();
m_slapstic_device->slapstic_init();
m_slapstic->slapstic_init();
m_slapstic_source = &rgn[0x10000];
m_slapstic_base = &rgn[0x04000];
}

View File

@ -426,7 +426,7 @@ MACHINE_CONFIG_START(backfire_state::backfire)
MCFG_DEVICE_ADD("maincpu", ARM, 28000000/4) /* Unconfirmed */
MCFG_DEVICE_PROGRAM_MAP(backfire_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
ADC0808(config, m_adc, 1000000); // unknown clock
m_adc->in_callback<0>().set_ioport("PADDLE0");

View File

@ -454,8 +454,7 @@ MACHINE_CONFIG_START(badlands_state::badlands)
MCFG_MACHINE_START_OVERRIDE(badlands_state,badlands)
MCFG_MACHINE_RESET_OVERRIDE(badlands_state,badlands)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")
@ -480,7 +479,8 @@ MACHINE_CONFIG_START(badlands_state::badlands)
MCFG_VIDEO_START_OVERRIDE(badlands_state,badlands)
/* sound hardware */
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_2))
ATARI_SOUND_COMM(config, "soundcomm", "audiocpu")
.int_callback().set_inputline("maincpu", M68K_IRQ_2);
SPEAKER(config, "mono").front_center();
MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4)

View File

@ -232,8 +232,7 @@ MACHINE_CONFIG_START(badlandsbl_state::badlandsb)
MCFG_MACHINE_START_OVERRIDE(badlands_state,badlands)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_badlandsb)

View File

@ -189,8 +189,7 @@ MACHINE_CONFIG_START(batman_state::batman)
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -342,8 +342,7 @@ MACHINE_CONFIG_START(beathead_state::beathead)
MCFG_DEVICE_ADD("maincpu", ASAP, ATARI_CLOCK_14MHz)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -180,8 +180,7 @@ MACHINE_CONFIG_START(blstroid_state::blstroid)
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -362,14 +362,15 @@ INPUT_PORTS_END
Machine Drivers
******************************************************************************/
MACHINE_CONFIG_START(bpmmicro_state::bpmmicro)
void bpmmicro_state::bpmmicro(machine_config &config)
{
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", I80286, XTAL(32'000'000)/4) /* divider is guessed, cpu is an AMD N80L286-16/S part */
MCFG_DEVICE_PROGRAM_MAP(i286_mem)
MCFG_DEVICE_IO_MAP(i286_io)
I80286(config, m_maincpu, XTAL(32'000'000)/4); /* divider is guessed, cpu is an AMD N80L286-16/S part */
m_maincpu->set_addrmap(AS_PROGRAM, &bpmmicro_state::i286_mem);
m_maincpu->set_addrmap(AS_IO, &bpmmicro_state::i286_io);
MCFG_DEVICE_ADD("eeprom_u38", EEPROM_SERIAL_93C46_16BIT)
MACHINE_CONFIG_END
EEPROM_93C46_16BIT(config, "eeprom_u38");
}

View File

@ -2103,7 +2103,7 @@ MACHINE_CONFIG_START(cave_state::dfeveron)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2143,7 +2143,7 @@ MACHINE_CONFIG_START(cave_state::ddonpach)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2182,7 +2182,7 @@ MACHINE_CONFIG_START(cave_state::donpachi)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2228,7 +2228,7 @@ MACHINE_CONFIG_START(cave_state::esprade)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2307,7 +2307,7 @@ MACHINE_CONFIG_START(cave_state::guwange)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2349,7 +2349,7 @@ MACHINE_CONFIG_START(cave_state::hotdogst)
MCFG_DEVICE_IO_MAP(hotdogst_sound_portmap)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2398,7 +2398,7 @@ MACHINE_CONFIG_START(cave_state::korokoro)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2450,7 +2450,7 @@ MACHINE_CONFIG_START(cave_state::mazinger)
MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2506,7 +2506,7 @@ MACHINE_CONFIG_START(cave_state::metmqstr)
MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(3)) /* a guess, and certainly wrong */
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave) /* start with the watchdog armed */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2562,7 +2562,7 @@ MACHINE_CONFIG_START(cave_state::pacslot)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT, eeprom_serial_streaming::ENABLE)
EEPROM_93C46_16BIT(config, "eeprom", eeprom_serial_streaming::ENABLE);
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2619,7 +2619,7 @@ MACHINE_CONFIG_START(cave_state::ppsatan)
MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(1)) /* a guess, and certainly wrong */
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD_PERIODIC("timer_lev2", cave_state, timer_lev2_cb, attotime::from_hz(60))
@ -2683,7 +2683,7 @@ MACHINE_CONFIG_START(cave_state::pwrinst2)
MCFG_DEVICE_IO_MAP(pwrinst2_sound_portmap)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2758,7 +2758,7 @@ MACHINE_CONFIG_START(cave_state::sailormn)
// MCFG_QUANTUM_TIME(attotime::from_hz(600))
MCFG_MACHINE_RESET_OVERRIDE(cave_state,sailormn)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2816,7 +2816,7 @@ MACHINE_CONFIG_START(cave_state::tekkencw)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT, eeprom_serial_streaming::ENABLE)
EEPROM_93C46_16BIT(config, "eeprom", eeprom_serial_streaming::ENABLE);
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2870,7 +2870,7 @@ MACHINE_CONFIG_START(cave_state::tjumpman)
MCFG_MACHINE_RESET_OVERRIDE(cave_state,cave)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT, eeprom_serial_streaming::ENABLE)
EEPROM_93C46_16BIT(config, "eeprom", eeprom_serial_streaming::ENABLE);
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)
@ -2911,7 +2911,7 @@ MACHINE_CONFIG_START(cave_state::uopoko)
MCFG_DEVICE_PROGRAM_MAP(uopoko_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cave_state, cave_interrupt)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TIMER_DRIVER_ADD("int_timer", cave_state, cave_vblank_start)

View File

@ -270,7 +270,7 @@ MACHINE_CONFIG_START(cbasebal_state::cbasebal)
MCFG_DEVICE_OPCODES_MAP(decrypted_opcodes_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", cbasebal_state, irq0_line_hold) /* ??? */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -2313,25 +2313,27 @@ MACHINE_CONFIG_START(p500_state::p500_ntsc)
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(USER_PORT_TAG, cbm2_user_port_device, d2_w))
MCFG_MOS6526_PC_CALLBACK(WRITELINE(USER_PORT_TAG, cbm2_user_port_device, pc_w))
MCFG_DS75160A_ADD(DS75160A_TAG, READ8(IEEE488_TAG, ieee488_device, dio_r), WRITE8(IEEE488_TAG, ieee488_device, host_dio_w))
DS75160A(config, m_ieee1, 0);
m_ieee1->read_callback().set(IEEE488_TAG, FUNC(ieee488_device::dio_r));
m_ieee1->write_callback().set(IEEE488_TAG, FUNC(ieee488_device::host_dio_w));
MCFG_DEVICE_ADD(DS75161A_TAG, DS75161A, 0)
MCFG_DS75161A_IN_REN_CB(READLINE(IEEE488_TAG, ieee488_device, ren_r))
MCFG_DS75161A_IN_IFC_CB(READLINE(IEEE488_TAG, ieee488_device, ifc_r))
MCFG_DS75161A_IN_NDAC_CB(READLINE(IEEE488_TAG, ieee488_device, ndac_r))
MCFG_DS75161A_IN_NRFD_CB(READLINE(IEEE488_TAG, ieee488_device, nrfd_r))
MCFG_DS75161A_IN_DAV_CB(READLINE(IEEE488_TAG, ieee488_device, dav_r))
MCFG_DS75161A_IN_EOI_CB(READLINE(IEEE488_TAG, ieee488_device, eoi_r))
MCFG_DS75161A_IN_ATN_CB(READLINE(IEEE488_TAG, ieee488_device, atn_r))
MCFG_DS75161A_IN_SRQ_CB(READLINE(IEEE488_TAG, ieee488_device, srq_r))
MCFG_DS75161A_OUT_REN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ren_w))
MCFG_DS75161A_OUT_IFC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ifc_w))
MCFG_DS75161A_OUT_NDAC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ndac_w))
MCFG_DS75161A_OUT_NRFD_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_nrfd_w))
MCFG_DS75161A_OUT_DAV_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_dav_w))
MCFG_DS75161A_OUT_EOI_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_eoi_w))
MCFG_DS75161A_OUT_ATN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_atn_w))
MCFG_DS75161A_OUT_SRQ_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_srq_w))
DS75161A(config, m_ieee2, 0);
m_ieee2->in_ren().set(IEEE488_TAG, FUNC(ieee488_device::ren_r));
m_ieee2->in_ifc().set(IEEE488_TAG, FUNC(ieee488_device::ifc_r));
m_ieee2->in_ndac().set(IEEE488_TAG, FUNC(ieee488_device::ndac_r));
m_ieee2->in_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::nrfd_r));
m_ieee2->in_dav().set(IEEE488_TAG, FUNC(ieee488_device::dav_r));
m_ieee2->in_eoi().set(IEEE488_TAG, FUNC(ieee488_device::eoi_r));
m_ieee2->in_atn().set(IEEE488_TAG, FUNC(ieee488_device::atn_r));
m_ieee2->in_srq().set(IEEE488_TAG, FUNC(ieee488_device::srq_r));
m_ieee2->out_ren().set(IEEE488_TAG, FUNC(ieee488_device::host_ren_w));
m_ieee2->out_ifc().set(IEEE488_TAG, FUNC(ieee488_device::host_ifc_w));
m_ieee2->out_ndac().set(IEEE488_TAG, FUNC(ieee488_device::host_ndac_w));
m_ieee2->out_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::host_nrfd_w));
m_ieee2->out_dav().set(IEEE488_TAG, FUNC(ieee488_device::host_dav_w));
m_ieee2->out_eoi().set(IEEE488_TAG, FUNC(ieee488_device::host_eoi_w));
m_ieee2->out_atn().set(IEEE488_TAG, FUNC(ieee488_device::host_atn_w));
m_ieee2->out_srq().set(IEEE488_TAG, FUNC(ieee488_device::host_srq_w));
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(WRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))
@ -2441,25 +2443,27 @@ MACHINE_CONFIG_START(p500_state::p500_pal)
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(USER_PORT_TAG, cbm2_user_port_device, d2_w))
MCFG_MOS6526_PC_CALLBACK(WRITELINE(USER_PORT_TAG, cbm2_user_port_device, pc_w))
MCFG_DS75160A_ADD(DS75160A_TAG, READ8(IEEE488_TAG, ieee488_device, dio_r), WRITE8(IEEE488_TAG, ieee488_device, host_dio_w))
DS75160A(config, m_ieee1, 0);
m_ieee1->read_callback().set(IEEE488_TAG, FUNC(ieee488_device::dio_r));
m_ieee1->write_callback().set(IEEE488_TAG, FUNC(ieee488_device::host_dio_w));
MCFG_DEVICE_ADD(DS75161A_TAG, DS75161A, 0)
MCFG_DS75161A_IN_REN_CB(READLINE(IEEE488_TAG, ieee488_device, ren_r))
MCFG_DS75161A_IN_IFC_CB(READLINE(IEEE488_TAG, ieee488_device, ifc_r))
MCFG_DS75161A_IN_NDAC_CB(READLINE(IEEE488_TAG, ieee488_device, ndac_r))
MCFG_DS75161A_IN_NRFD_CB(READLINE(IEEE488_TAG, ieee488_device, nrfd_r))
MCFG_DS75161A_IN_DAV_CB(READLINE(IEEE488_TAG, ieee488_device, dav_r))
MCFG_DS75161A_IN_EOI_CB(READLINE(IEEE488_TAG, ieee488_device, eoi_r))
MCFG_DS75161A_IN_ATN_CB(READLINE(IEEE488_TAG, ieee488_device, atn_r))
MCFG_DS75161A_IN_SRQ_CB(READLINE(IEEE488_TAG, ieee488_device, srq_r))
MCFG_DS75161A_OUT_REN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ren_w))
MCFG_DS75161A_OUT_IFC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ifc_w))
MCFG_DS75161A_OUT_NDAC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ndac_w))
MCFG_DS75161A_OUT_NRFD_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_nrfd_w))
MCFG_DS75161A_OUT_DAV_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_dav_w))
MCFG_DS75161A_OUT_EOI_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_eoi_w))
MCFG_DS75161A_OUT_ATN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_atn_w))
MCFG_DS75161A_OUT_SRQ_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_srq_w))
DS75161A(config, m_ieee2, 0);
m_ieee2->in_ren().set(IEEE488_TAG, FUNC(ieee488_device::ren_r));
m_ieee2->in_ifc().set(IEEE488_TAG, FUNC(ieee488_device::ifc_r));
m_ieee2->in_ndac().set(IEEE488_TAG, FUNC(ieee488_device::ndac_r));
m_ieee2->in_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::nrfd_r));
m_ieee2->in_dav().set(IEEE488_TAG, FUNC(ieee488_device::dav_r));
m_ieee2->in_eoi().set(IEEE488_TAG, FUNC(ieee488_device::eoi_r));
m_ieee2->in_atn().set(IEEE488_TAG, FUNC(ieee488_device::atn_r));
m_ieee2->in_srq().set(IEEE488_TAG, FUNC(ieee488_device::srq_r));
m_ieee2->out_ren().set(IEEE488_TAG, FUNC(ieee488_device::host_ren_w));
m_ieee2->out_ifc().set(IEEE488_TAG, FUNC(ieee488_device::host_ifc_w));
m_ieee2->out_ndac().set(IEEE488_TAG, FUNC(ieee488_device::host_ndac_w));
m_ieee2->out_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::host_nrfd_w));
m_ieee2->out_dav().set(IEEE488_TAG, FUNC(ieee488_device::host_dav_w));
m_ieee2->out_eoi().set(IEEE488_TAG, FUNC(ieee488_device::host_eoi_w));
m_ieee2->out_atn().set(IEEE488_TAG, FUNC(ieee488_device::host_atn_w));
m_ieee2->out_srq().set(IEEE488_TAG, FUNC(ieee488_device::host_srq_w));
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(WRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))
@ -2567,25 +2571,27 @@ MACHINE_CONFIG_START(cbm2_state::cbm2lp_ntsc)
MCFG_MOS6526_PB_OUTPUT_CALLBACK(WRITE8(USER_PORT_TAG, cbm2_user_port_device, d2_w))
MCFG_MOS6526_PC_CALLBACK(WRITELINE(USER_PORT_TAG, cbm2_user_port_device, pc_w))
MCFG_DS75160A_ADD(DS75160A_TAG, READ8(IEEE488_TAG, ieee488_device, dio_r), WRITE8(IEEE488_TAG, ieee488_device, host_dio_w))
DS75160A(config, m_ieee1, 0);
m_ieee1->read_callback().set(IEEE488_TAG, FUNC(ieee488_device::dio_r));
m_ieee1->write_callback().set(IEEE488_TAG, FUNC(ieee488_device::host_dio_w));
MCFG_DEVICE_ADD(DS75161A_TAG, DS75161A, 0)
MCFG_DS75161A_IN_REN_CB(READLINE(IEEE488_TAG, ieee488_device, ren_r))
MCFG_DS75161A_IN_IFC_CB(READLINE(IEEE488_TAG, ieee488_device, ifc_r))
MCFG_DS75161A_IN_NDAC_CB(READLINE(IEEE488_TAG, ieee488_device, ndac_r))
MCFG_DS75161A_IN_NRFD_CB(READLINE(IEEE488_TAG, ieee488_device, nrfd_r))
MCFG_DS75161A_IN_DAV_CB(READLINE(IEEE488_TAG, ieee488_device, dav_r))
MCFG_DS75161A_IN_EOI_CB(READLINE(IEEE488_TAG, ieee488_device, eoi_r))
MCFG_DS75161A_IN_ATN_CB(READLINE(IEEE488_TAG, ieee488_device, atn_r))
MCFG_DS75161A_IN_SRQ_CB(READLINE(IEEE488_TAG, ieee488_device, srq_r))
MCFG_DS75161A_OUT_REN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ren_w))
MCFG_DS75161A_OUT_IFC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ifc_w))
MCFG_DS75161A_OUT_NDAC_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_ndac_w))
MCFG_DS75161A_OUT_NRFD_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_nrfd_w))
MCFG_DS75161A_OUT_DAV_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_dav_w))
MCFG_DS75161A_OUT_EOI_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_eoi_w))
MCFG_DS75161A_OUT_ATN_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_atn_w))
MCFG_DS75161A_OUT_SRQ_CB(WRITELINE(IEEE488_TAG, ieee488_device, host_srq_w))
DS75161A(config, m_ieee2, 0);
m_ieee2->in_ren().set(IEEE488_TAG, FUNC(ieee488_device::ren_r));
m_ieee2->in_ifc().set(IEEE488_TAG, FUNC(ieee488_device::ifc_r));
m_ieee2->in_ndac().set(IEEE488_TAG, FUNC(ieee488_device::ndac_r));
m_ieee2->in_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::nrfd_r));
m_ieee2->in_dav().set(IEEE488_TAG, FUNC(ieee488_device::dav_r));
m_ieee2->in_eoi().set(IEEE488_TAG, FUNC(ieee488_device::eoi_r));
m_ieee2->in_atn().set(IEEE488_TAG, FUNC(ieee488_device::atn_r));
m_ieee2->in_srq().set(IEEE488_TAG, FUNC(ieee488_device::srq_r));
m_ieee2->out_ren().set(IEEE488_TAG, FUNC(ieee488_device::host_ren_w));
m_ieee2->out_ifc().set(IEEE488_TAG, FUNC(ieee488_device::host_ifc_w));
m_ieee2->out_ndac().set(IEEE488_TAG, FUNC(ieee488_device::host_ndac_w));
m_ieee2->out_nrfd().set(IEEE488_TAG, FUNC(ieee488_device::host_nrfd_w));
m_ieee2->out_dav().set(IEEE488_TAG, FUNC(ieee488_device::host_dav_w));
m_ieee2->out_eoi().set(IEEE488_TAG, FUNC(ieee488_device::host_eoi_w));
m_ieee2->out_atn().set(IEEE488_TAG, FUNC(ieee488_device::host_atn_w));
m_ieee2->out_srq().set(IEEE488_TAG, FUNC(ieee488_device::host_srq_w));
MCFG_CBM_IEEE488_ADD("c8050")
MCFG_IEEE488_SRQ_CALLBACK(WRITELINE(MOS6525_1_TAG, tpi6525_device, i1_w))

View File

@ -1898,7 +1898,7 @@ MACHINE_CONFIG_START(centiped_state::multiped)
MCFG_DEVICE_PROGRAM_MAP(multiped_map)
MCFG_DEVICE_REMOVE("earom")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
MACHINE_CONFIG_END

View File

@ -3440,12 +3440,13 @@ MACHINE_CONFIG_START(cps_state::cps1_12MHz)
MCFG_DEVICE_CLOCK( XTAL(12'000'000) ) /* verified on pcb */
MACHINE_CONFIG_END
MACHINE_CONFIG_START(cps_state::pang3)
void cps_state::pang3(machine_config &config)
{
cps1_12MHz(config);
/* basic machine hardware */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MACHINE_CONFIG_END
EEPROM_93C46_16BIT(config, "eeprom");
}
MACHINE_CONFIG_START(cps_state::ganbare)
cps1_10MHz(config);
@ -3473,7 +3474,7 @@ MACHINE_CONFIG_START(cps_state::qsound)
MCFG_MACHINE_START_OVERRIDE(cps_state, qsound)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
/* sound hardware */
MCFG_DEVICE_REMOVE("mono")
@ -3490,12 +3491,13 @@ MACHINE_CONFIG_START(cps_state::qsound)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MACHINE_CONFIG_END
MACHINE_CONFIG_START(cps_state::wofhfh)
void cps_state::wofhfh(machine_config &config)
{
cps1_12MHz(config);
/* basic machine hardware */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
MACHINE_CONFIG_END
EEPROM_93C46_8BIT(config, "eeprom");
}
MACHINE_CONFIG_START(cps_state::sf2m3)
cps1_12MHz(config);

View File

@ -1316,7 +1316,7 @@ MACHINE_CONFIG_START(cps2_state::cps2)
MCFG_MACHINE_START_OVERRIDE(cps2_state, cps2)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -27,6 +27,7 @@
#include "machine/eeprompar.h"
#include "machine/watchdog.h"
#include "sound/volt_reg.h"
#include "diexec.h"
#include "speaker.h"
#include "rendlay.h"
@ -133,8 +134,8 @@ void cyberbal_state::main_map(address_map &map)
map(0xfe1000, 0xfe1fff).portr("IN1");
map(0xfe8000, 0xfe8fff).ram().w("rpalette", FUNC(palette_device::write16)).share("rpalette");
map(0xfec000, 0xfecfff).ram().w("lpalette", FUNC(palette_device::write16)).share("lpalette");
map(0xff0000, 0xff1fff).ram().w(m_playfield2_tilemap, FUNC(tilemap_device::write16)).share("playfield2");
map(0xff2000, 0xff2fff).ram().w(m_alpha2_tilemap, FUNC(tilemap_device::write16)).share("alpha2");
map(0xff0000, 0xff1fff).ram().w(m_playfield2, FUNC(tilemap_device::write16)).share("playfield2");
map(0xff2000, 0xff2fff).ram().w(m_alpha2, FUNC(tilemap_device::write16)).share("alpha2");
map(0xff3000, 0xff37ff).ram().share("mob2");
map(0xff3800, 0xff3fff).ram().share("ff3800");
map(0xff4000, 0xff5fff).ram().w("playfield", FUNC(tilemap_device::write16)).share("playfield");
@ -161,8 +162,8 @@ void cyberbal_state::extra_map(address_map &map)
map(0xfe1000, 0xfe1fff).portr("IN1");
map(0xfe8000, 0xfe8fff).ram().w("rpalette", FUNC(palette_device::write16)).share("rpalette");
map(0xfec000, 0xfecfff).ram().w("lpalette", FUNC(palette_device::write16)).share("lpalette");
map(0xff0000, 0xff1fff).ram().w(m_playfield2_tilemap, FUNC(tilemap_device::write16)).share("playfield2");
map(0xff2000, 0xff2fff).ram().w(m_alpha2_tilemap, FUNC(tilemap_device::write16)).share("alpha2");
map(0xff0000, 0xff1fff).ram().w(m_playfield2, FUNC(tilemap_device::write16)).share("playfield2");
map(0xff2000, 0xff2fff).ram().w(m_alpha2, FUNC(tilemap_device::write16)).share("alpha2");
map(0xff3000, 0xff37ff).ram().share("mob2");
map(0xff3800, 0xff3fff).ram().share("ff3800");
map(0xff4000, 0xff5fff).ram().w("playfield", FUNC(tilemap_device::write16)).share("playfield");
@ -392,92 +393,101 @@ GFXDECODE_END
*
*************************************/
MACHINE_CONFIG_START(cyberbal_state::cyberbal)
MACHINE_CONFIG_START(cyberbal_state::cyberbal_base)
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(main_map)
M68000(config, m_maincpu, ATARI_CLOCK_14MHz/2);
m_maincpu->set_addrmap(AS_PROGRAM, &cyberbal_state::main_map);
MCFG_DEVICE_ADD("audiocpu", M6502, ATARI_CLOCK_14MHz/8)
MCFG_DEVICE_PROGRAM_MAP(sound_map)
MCFG_DEVICE_PERIODIC_INT_DEVICE("soundcomm", atari_sound_comm_device, sound_irq_gen, ATARI_CLOCK_14MHz/4/4/16/16/14)
M6502(config, m_audiocpu, ATARI_CLOCK_14MHz/8);
m_audiocpu->set_addrmap(AS_PROGRAM, &cyberbal_state::sound_map);
m_audiocpu->set_periodic_int("soundcomm", FUNC(atari_sound_comm_device::sound_irq_gen), attotime::from_hz(ATARI_CLOCK_14MHz/4/4/16/16/14));
MCFG_DEVICE_ADD("extra", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(extra_map)
M68000(config, m_extracpu, ATARI_CLOCK_14MHz/2);
m_extracpu->set_addrmap(AS_PROGRAM, &cyberbal_state::extra_map);
MCFG_DEVICE_ADD("dac", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(sound_68k_map)
MCFG_DEVICE_PERIODIC_INT_DRIVER(cyberbal_state, sound_68k_irq_gen, 10000)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
config.m_minimum_quantum = attotime::from_hz(600);
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
MCFG_WATCHDOG_ADD("watchdog")
WATCHDOG_TIMER(config, "watchdog");
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "lpalette", gfx_interleaved)
GFXDECODE(config, m_gfxdecode, "lpalette", gfx_interleaved);
MCFG_PALETTE_ADD("lpalette", 2048)
MCFG_PALETTE_FORMAT(IRRRRRGGGGGBBBBB)
MCFG_PALETTE_ADD("rpalette", 2048)
MCFG_PALETTE_FORMAT(IRRRRRGGGGGBBBBB)
PALETTE(config, "lpalette", 2048).set_format(PALETTE_FORMAT_IRRRRRGGGGGBBBBB);
PALETTE(config, "rpalette", 2048).set_format(PALETTE_FORMAT_IRRRRRGGGGGBBBBB);
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, cyberbal_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "lscreen", cyberbal_state::s_mob_config)
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
TILEMAP(config, m_playfield, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,64)
.set_info_callback(FUNC(cyberbal_state::get_playfield_tile_info));
TILEMAP(config, m_alpha, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,32, 0)
.set_info_callback(FUNC(cyberbal_state::get_alpha_tile_info));
ATARI_MOTION_OBJECTS(config, m_mob, 0).set_screen("lscreen");
m_mob->set_config(cyberbal_state::s_mob_config);
m_mob->set_gfxdecode("gfxdecode");
MCFG_TILEMAP_ADD_STANDARD("playfield2", "gfxdecode", 2, cyberbal_state, get_playfield2_tile_info, 16,8, SCAN_ROWS, 64,64)
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha2", "gfxdecode", 2, cyberbal_state, get_alpha2_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
MCFG_ATARI_MOTION_OBJECTS_ADD("mob2", "rscreen", cyberbal_state::s_mob_config)
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
TILEMAP(config, m_playfield2, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,64)
.set_info_callback(FUNC(cyberbal_state::get_playfield2_tile_info));
TILEMAP(config, m_alpha2, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,32, 0)
.set_info_callback(FUNC(cyberbal_state::get_alpha2_tile_info));
ATARI_MOTION_OBJECTS(config, m_mob2, 0).set_screen("rscreen");
m_mob2->set_config(cyberbal_state::s_mob_config);
m_mob2->set_gfxdecode("gfxdecode");
MCFG_SCREEN_ADD("lscreen", RASTER)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
SCREEN(config, m_lscreen, SCREEN_TYPE_RASTER);
m_lscreen->set_video_attributes(VIDEO_UPDATE_BEFORE_VBLANK);
/* note: these parameters are from published specs, not derived */
/* the board uses an SOS-2 chip to generate video signals */
MCFG_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz, 456*2, 0, 336*2, 262, 0, 240)
MCFG_SCREEN_UPDATE_DRIVER(cyberbal_state, screen_update_cyberbal_left)
MCFG_SCREEN_PALETTE("lpalette")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, cyberbal_state, video_int_write_line)) /* or is it "right?" */
m_lscreen->set_raw(ATARI_CLOCK_14MHz, 456*2, 0, 336*2, 262, 0, 240);
m_lscreen->set_screen_update(FUNC(cyberbal_state::screen_update_cyberbal_left));
m_lscreen->set_palette("lpalette");
m_lscreen->screen_vblank().set(FUNC(cyberbal_state::video_int_write_line)); /* or is it "right?" har, har! */
MCFG_SCREEN_ADD("rscreen", RASTER)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)
SCREEN(config, m_rscreen, SCREEN_TYPE_RASTER);
m_rscreen->set_video_attributes(VIDEO_UPDATE_BEFORE_VBLANK);
/* note: these parameters are from published specs, not derived */
/* the board uses an SOS-2 chip to generate video signals */
MCFG_SCREEN_RAW_PARAMS(ATARI_CLOCK_14MHz, 456*2, 0, 336*2, 262, 0, 240)
MCFG_SCREEN_UPDATE_DRIVER(cyberbal_state, screen_update_cyberbal_right)
MCFG_SCREEN_PALETTE("rpalette")
m_rscreen->set_raw(ATARI_CLOCK_14MHz, 456*2, 0, 336*2, 262, 0, 240);
m_rscreen->set_screen_update(FUNC(cyberbal_state::screen_update_cyberbal_right));
m_rscreen->set_palette("rpalette");
/* sound hardware */
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_1))
ATARI_SOUND_COMM(config, m_soundcomm, "audiocpu")
.int_callback().set_inputline("maincpu", M68K_IRQ_1);
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();
MCFG_DEVICE_ADD("ymsnd", YM2151, ATARI_CLOCK_14MHz/4)
MCFG_YM2151_IRQ_HANDLER(WRITELINE("soundcomm", atari_sound_comm_device, ym2151_irq_gen))
MCFG_SOUND_ROUTE(0, "lspeaker", 0.60)
MCFG_SOUND_ROUTE(1, "rspeaker", 0.60)
YM2151(config, m_ymsnd, ATARI_CLOCK_14MHz/4);
m_ymsnd->irq_handler().set("soundcomm", FUNC(atari_sound_comm_device::ym2151_irq_gen));
m_ymsnd->add_route(0, "lspeaker", 0.60);
m_ymsnd->add_route(1, "rspeaker", 0.60);
MCFG_DEVICE_ADD("rdac", AM6012, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 0.5) // AM6012.6j
MCFG_DEVICE_ADD("ldac", AM6012, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 0.5) // AM6012.6j
MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
MCFG_SOUND_ROUTE(0, "rdac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "rdac", -1.0, DAC_VREF_NEG_INPUT)
MCFG_SOUND_ROUTE(0, "ldac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE(0, "ldac", -1.0, DAC_VREF_NEG_INPUT)
AM6012(config, m_rdac, 0).add_route(ALL_OUTPUTS, "rspeaker", 0.5); // AM6012.6j
AM6012(config, m_ldac, 0).add_route(ALL_OUTPUTS, "lspeaker", 0.5); // AM6012.6j
voltage_regulator_device &vref(VOLTAGE_REGULATOR(config, "vref", 0));
vref.set_output(5.0);
vref.add_route(0, "rdac", 1.0, DAC_VREF_POS_INPUT);
vref.add_route(0, "rdac", -1.0, DAC_VREF_NEG_INPUT);
vref.add_route(0, "ldac", 1.0, DAC_VREF_POS_INPUT);
vref.add_route(0, "ldac", -1.0, DAC_VREF_NEG_INPUT);
MACHINE_CONFIG_END
void cyberbal_state::cyberbal(machine_config &config)
{
cyberbal_base(config);
MACHINE_CONFIG_START(cyberbal_state::cyberbalt)
cyberbal(config);
MCFG_DEVICE_REMOVE("eeprom")
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
}
MCFG_DEVICE_ADD("slapstic", SLAPSTIC, 116, true)
MACHINE_CONFIG_END
void cyberbal_state::cyberbalt(machine_config &config)
{
cyberbal_base(config);
EEPROM_2816(config, "eeprom").lock_after_write(true);
SLAPSTIC(config, "slapstic", 116, true);
}
MACHINE_CONFIG_START(cyberbal2p_state::cyberbal2p)
@ -485,8 +495,7 @@ MACHINE_CONFIG_START(cyberbal2p_state::cyberbal2p)
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(cyberbal2p_map)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")
@ -495,10 +504,13 @@ MACHINE_CONFIG_START(cyberbal2p_state::cyberbal2p)
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(IRRRRRGGGGGBBBBB)
MCFG_TILEMAP_ADD_STANDARD("playfield", "gfxdecode", 2, cyberbal2p_state, get_playfield_tile_info, 16,8, SCAN_ROWS, 64,64)
MCFG_TILEMAP_ADD_STANDARD_TRANSPEN("alpha", "gfxdecode", 2, cyberbal2p_state, get_alpha_tile_info, 16,8, SCAN_ROWS, 64,32, 0)
MCFG_ATARI_MOTION_OBJECTS_ADD("mob", "screen", cyberbal2p_state::s_mob_config)
MCFG_ATARI_MOTION_OBJECTS_GFXDECODE("gfxdecode")
TILEMAP(config, m_playfield, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,64)
.set_info_callback(FUNC(cyberbal2p_state::get_playfield_tile_info));
TILEMAP(config, m_alpha, "gfxdecode", 2, 16,8, TILEMAP_SCAN_ROWS, 64,32, 0)
.set_info_callback(FUNC(cyberbal2p_state::get_alpha_tile_info));
ATARI_MOTION_OBJECTS(config, m_mob, 0).set_screen("screen");
m_mob->set_config(cyberbal2p_state::s_mob_config);
m_mob->set_gfxdecode("gfxdecode");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_BEFORE_VBLANK)

View File

@ -227,8 +227,7 @@ MACHINE_CONFIG_START(cybstorm_state::round2)
MCFG_DEVICE_ADD("maincpu", M68EC020, ATARI_CLOCK_14MHz)
MCFG_DEVICE_PROGRAM_MAP(main_map)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -384,7 +384,7 @@ MACHINE_CONFIG_START(dcheese_state::dcheese)
MCFG_DEVICE_PROGRAM_MAP(sound_cpu_map)
MCFG_DEVICE_PERIODIC_INT_DRIVER(dcheese_state, irq1_line_hold, 480) /* accurate for fredmem */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_TICKET_DISPENSER_ADD("ticket", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW)

View File

@ -338,7 +338,7 @@ MACHINE_CONFIG_START(deco156_state::hvysmsh)
MCFG_DEVICE_PROGRAM_MAP(hvysmsh_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", deco156_state, deco32_vbl_interrupt)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(58)
@ -392,7 +392,7 @@ MACHINE_CONFIG_START(deco156_state::wcvol95)
MCFG_DEVICE_PROGRAM_MAP(wcvol95_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", deco156_state, deco32_vbl_interrupt)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(58)

View File

@ -1963,7 +1963,7 @@ MACHINE_CONFIG_START(fghthist_state::fghthist)
audiocpu.add_route(ALL_OUTPUTS, "lspeaker", 0); // internal sound unused
audiocpu.add_route(ALL_OUTPUTS, "rspeaker", 0);
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(XTAL(28'000'000) / 4, 442, 0, 320, 274, 8, 248)
@ -2095,7 +2095,7 @@ MACHINE_CONFIG_START(dragngun_state::dragngun)
MCFG_DECO_IRQ_RASTER2_IRQ_CB(WRITELINE("irq_merger", input_merger_any_high_device, in_w<0>))
MCFG_DECO_IRQ_VBLANK_IRQ_CB(WRITELINE("irq_merger", input_merger_any_high_device, in_w<1>))
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -2229,7 +2229,7 @@ MACHINE_CONFIG_START(dragngun_state::lockload)
MCFG_QUANTUM_TIME(attotime::from_hz(6000)) /* to improve main<->audio comms */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -2315,7 +2315,7 @@ MACHINE_CONFIG_START(nslasher_state::tattass)
MCFG_DEVICE_PROGRAM_MAP(tattass_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", deco32_state, irq0_line_assert)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C76_8BIT)
EEPROM_93C76_8BIT(config, "eeprom");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(XTAL(28'000'000) / 4, 442, 0, 320, 274, 8, 248)
@ -2394,7 +2394,7 @@ MACHINE_CONFIG_START(nslasher_state::nslasher)
MCFG_QUANTUM_TIME(attotime::from_hz(6000)) /* to improve main<->audio comms */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(XTAL(28'322'000) / 4, 442, 0, 320, 274, 8, 248)

View File

@ -513,7 +513,7 @@ MACHINE_CONFIG_START(deco_mlc_state::avengrgs)
MCFG_DEVICE_ADD(m_maincpu, SH2, 42000000/2) /* 21 MHz clock confirmed on real board */
MCFG_DEVICE_PROGRAM_MAP(avengrgs_map)
MCFG_DEVICE_ADD(m_eeprom, EEPROM_SERIAL_93C46_16BIT) /* Actually 93c45 */
EEPROM_93C46_16BIT(config, m_eeprom); /* Actually 93c45 */
MCFG_TIMER_DRIVER_ADD(m_raster_irq_timer, deco_mlc_state, interrupt_gen)
@ -546,7 +546,7 @@ MACHINE_CONFIG_START(deco_mlc_state::mlc)
MCFG_DEVICE_ADD(m_maincpu, ARM,42000000/6) /* 42 MHz -> 7MHz clock confirmed on real board */
MCFG_DEVICE_PROGRAM_MAP(decomlc_map)
MCFG_DEVICE_ADD(m_eeprom, EEPROM_SERIAL_93C46_16BIT) /* Actually 93c45 */
EEPROM_93C46_16BIT(config, m_eeprom); /* Actually 93c45 */
MCFG_TIMER_DRIVER_ADD(m_raster_irq_timer, deco_mlc_state, interrupt_gen)

View File

@ -1764,29 +1764,33 @@ MACHINE_CONFIG_START(dkong_state::dkong2b)
MCFG_WATCHDOG_ADD("watchdog")
MACHINE_CONFIG_END
MACHINE_CONFIG_START(dkong_state::dk_braze)
void dkong_state::dk_braze(machine_config &config)
{
dkong2b(config);
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
MACHINE_CONFIG_END
EEPROM_93C46_8BIT(config, "eeprom");
}
MACHINE_CONFIG_START(dkong_state::dkj_braze)
void dkong_state::dkj_braze(machine_config &config)
{
dkongjr(config);
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
MACHINE_CONFIG_END
EEPROM_93C46_8BIT(config, "eeprom");
}
MACHINE_CONFIG_START(dkong_state::ddk_braze)
void dkong_state::ddk_braze(machine_config &config)
{
dkj_braze(config);
MCFG_MACHINE_RESET_OVERRIDE(dkong_state,ddk)
MACHINE_CONFIG_END
}
MACHINE_CONFIG_START(dkong_state::dk3_braze)
void dkong_state::dk3_braze(machine_config &config)
{
dkong3(config);
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
MACHINE_CONFIG_END
EEPROM_93C46_8BIT(config, "eeprom");
}
MACHINE_CONFIG_START(dkong_state::dkong3)

View File

@ -331,7 +331,7 @@ MACHINE_CONFIG_START(dreambal_state::dreambal)
MCFG_PALETTE_FORMAT(xxxxBBBBGGGGRRRR)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dreambal)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT) // 93lc46b
EEPROM_93C46_16BIT(config, "eeprom"); // 93lc46b
DECO104PROT(config, m_deco104, 0);
m_deco104->port_a_cb().set_ioport("INPUTS");

View File

@ -87,7 +87,7 @@ void dynamoah_state::dynamoah(machine_config &config)
maincpu.port_out_cb<1>().append(FUNC(dynamoah_state::p1_w)).mask(0x1f);
maincpu.port_out_cb<3>().set(FUNC(dynamoah_state::p3_w));
EEPROM_SERIAL_93C46_16BIT(config, "eeprom");
EEPROM_93C46_16BIT(config, "eeprom");
}
static INPUT_PORTS_START(dynamoah)

View File

@ -551,9 +551,9 @@ MACHINE_CONFIG_START(eolith_state::eolith45)
MCFG_MACHINE_RESET_OVERRIDE(eolith_state,eolith)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_8BIT)
MCFG_EEPROM_ERASE_TIME(attotime::from_usec(250))
MCFG_EEPROM_WRITE_TIME(attotime::from_usec(250))
EEPROM_93C66_8BIT(config, "eeprom")
.erase_time(attotime::from_usec(250))
.write_time(attotime::from_usec(250));
// for testing sound sync
// MCFG_QUANTUM_PERFECT_CPU("maincpu")

View File

@ -164,7 +164,7 @@ MACHINE_CONFIG_START(eolith16_state::eolith16)
MCFG_DEVICE_PROGRAM_MAP(eolith16_map)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", eolith16_state, eolith_speedup, "screen", 0, 1)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_8BIT)
EEPROM_93C66_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -397,8 +397,7 @@ MACHINE_CONFIG_START(eprom_state::eprom)
m_adc->in_callback<2>().set_ioport("ADC2");
m_adc->in_callback<3>().set_ioport("ADC3");
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")
@ -440,8 +439,7 @@ MACHINE_CONFIG_START(eprom_state::klaxp)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")
@ -488,8 +486,7 @@ MACHINE_CONFIG_START(eprom_state::guts)
m_adc->in_callback<2>().set_ioport("ADC2");
m_adc->in_callback<3>().set_ioport("ADC3");
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -706,7 +706,7 @@ MACHINE_CONFIG_START(esd16_state::hedpanio)
MCFG_DEVICE_MODIFY("maincpu")
MCFG_DEVICE_PROGRAM_MAP(hedpanic_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MACHINE_CONFIG_END
/* The ESD 08-26-1999 PCBs take that further and modify the sprite offsets */

View File

@ -175,9 +175,9 @@ MACHINE_CONFIG_START(mosaicf2_state::mosaicf2)
MCFG_DEVICE_IO_MAP(mosaicf2_io)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mosaicf2_state, irq0_line_hold)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_ERASE_TIME(attotime::from_usec(1))
MCFG_EEPROM_WRITE_TIME(attotime::from_usec(1))
EEPROM_93C46_16BIT(config, "eeprom")
.erase_time(attotime::from_usec(1))
.write_time(attotime::from_usec(1));
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -254,9 +254,9 @@ MACHINE_CONFIG_START(mosaicf2_state::royalpk2)
MCFG_DEVICE_IO_MAP(royalpk2_io)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", mosaicf2_state, irq1_line_hold)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_ERASE_TIME(attotime::from_usec(1))
MCFG_EEPROM_WRITE_TIME(attotime::from_usec(1))
EEPROM_93C46_16BIT(config, "eeprom")
.erase_time(attotime::from_usec(1))
.write_time(attotime::from_usec(1));
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -2167,7 +2167,7 @@ MACHINE_CONFIG_START(cps_state::dinopic)
MCFG_MACHINE_START_OVERRIDE(cps_state, dinopic)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -2337,7 +2337,7 @@ MACHINE_CONFIG_START(cps_state::sgyxz)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_cps1)
MCFG_PALETTE_ADD("palette", 0xc00)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
/* sound hardware */
SPEAKER(config, "mono").front_center();
@ -2449,7 +2449,7 @@ MACHINE_CONFIG_START(cps_state::punipic)
MCFG_MACHINE_START_OVERRIDE(cps_state, punipic)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -3019,7 +3019,7 @@ MACHINE_CONFIG_START(cps_state::slampic)
MCFG_MACHINE_START_OVERRIDE(cps_state, slampic)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -311,7 +311,7 @@ MACHINE_CONFIG_START(feversoc_state::feversoc)
MCFG_DEVICE_ADD("oki", OKIM6295, MASTER_CLOCK/16, okim6295_device::PIN7_LOW) //pin 7 & frequency not verified (clock should be 28,6363 / n)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.6)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C56_16BIT)
EEPROM_93C56_16BIT(config, "eeprom");
MCFG_JRC6355E_ADD("rtc", XTAL(32'768))

View File

@ -503,7 +503,7 @@ MACHINE_CONFIG_START(fireball_state::fireball)
MCFG_MCS51_PORT_P3_OUT_CB(WRITE8(*this, fireball_state, p3_w))
MCFG_TIMER_DRIVER_ADD_PERIODIC("int_0", fireball_state, int_0, attotime::from_hz(555)) //9ms from scope reading 111Hz take care of this in the handler
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_X24C44_16BIT)
EEPROM_X24C44_16BIT(config, "eeprom");
/* sound hardware */
SPEAKER(config, "mono").front_center();

View File

@ -701,8 +701,7 @@ MACHINE_CONFIG_START(fortecar_state::fortecar)
MCFG_SCREEN_UPDATE_DRIVER(fortecar_state, screen_update)
MCFG_SCREEN_PALETTE("palette")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C56_16BIT)
MCFG_EEPROM_DEFAULT_VALUE(0)
EEPROM_93C56_16BIT(config, "eeprom").default_value(0);
MCFG_DEVICE_ADD("fcppi0", I8255A, 0)
/* Init with 0x9a... A, B and high C as input

View File

@ -518,7 +518,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromanc2)
MCFG_MACHINE_START_OVERRIDE(fromanc2_state,fromanc2)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "lpalette", gfx_fromanc2)
@ -578,7 +578,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromancr)
MCFG_MACHINE_START_OVERRIDE(fromanc2_state,fromanc2)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "lpalette", gfx_fromancr)
@ -634,7 +634,7 @@ MACHINE_CONFIG_START(fromanc2_state::fromanc4)
MCFG_MACHINE_START_OVERRIDE(fromanc2_state,fromanc4)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("uart", NS16550, 2000000) // actual type is TL16C550CFN; clock unknown
MCFG_INS8250_OUT_INT_CB(INPUTLINE("maincpu", M68K_IRQ_2))

View File

@ -710,7 +710,7 @@ MACHINE_CONFIG_START(bang_state::bang)
MCFG_DEVICE_PROGRAM_MAP(bang_map)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", bang_state, bang_irq, "screen", 0, 1)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_16BIT)
EEPROM_93C66_16BIT(config, "eeprom");
LS259(config, m_mainlatch);
m_mainlatch->q_out_cb<0>().set(FUNC(gaelco2_state::coin1_counter_w));
@ -1560,7 +1560,7 @@ MACHINE_CONFIG_START(gaelco2_state::snowboar)
MCFG_DEVICE_PROGRAM_MAP(snowboar_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gaelco2_state, irq6_line_hold)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_16BIT)
EEPROM_93C66_16BIT(config, "eeprom");
LS259(config, m_mainlatch);
m_mainlatch->q_out_cb<0>().set(FUNC(gaelco2_state::coin1_counter_w));
@ -1603,7 +1603,7 @@ MACHINE_CONFIG_START(gaelco2_state::maniacsqs)
MCFG_DEVICE_PROGRAM_MAP(snowboar_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gaelco2_state, irq6_line_hold)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C66_16BIT)
EEPROM_93C66_16BIT(config, "eeprom");
LS259(config, m_mainlatch);
m_mainlatch->q_out_cb<0>().set(FUNC(gaelco2_state::coin1_counter_w));

View File

@ -939,7 +939,7 @@ MACHINE_CONFIG_START(gaelco3d_state::gaelco3d)
MCFG_DEVICE_PROGRAM_MAP(adsp_program_map)
MCFG_DEVICE_DATA_MAP(adsp_data_map)
MCFG_DEVICE_ADD(m_eeprom, EEPROM_SERIAL_93C66_16BIT, eeprom_serial_streaming::ENABLE)
EEPROM_93C66_16BIT(config, m_eeprom, eeprom_serial_streaming::ENABLE);
MCFG_QUANTUM_TIME(attotime::from_hz(6000))

View File

@ -206,7 +206,7 @@ MACHINE_CONFIG_START(galastrm_state::galastrm)
MCFG_DEVICE_PROGRAM_MAP(galastrm_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", galastrm_state, galastrm_interrupt) /* VBL */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
adc0809_device &adc(ADC0809(config, "adc", 500000)); // unknown clock
adc.eoc_ff_callback().set_inputline("maincpu", 6);

View File

@ -158,9 +158,10 @@ protected:
DEFINE_DEVICE_TYPE(GALGAMES_BIOS_CART, galgames_bios_cart_device, "galgames_bios_cart", "Galaxy Games BIOS Cartridge")
MACHINE_CONFIG_START(galgames_bios_cart_device::device_add_mconfig)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C76_8BIT)
MACHINE_CONFIG_END
void galgames_bios_cart_device::device_add_mconfig(machine_config &config)
{
EEPROM_93C76_8BIT(config, "eeprom");
}
#define MCFG_GALGAMES_BIOS_CART_ADD(_tag, _cart) \
MCFG_DEVICE_ADD(_tag, GALGAMES_BIOS_CART, 0) \
@ -189,7 +190,7 @@ MACHINE_CONFIG_START(galgames_starpak2_cart_device::device_add_mconfig)
MCFG_PIC16C5x_READ_B_CB( READ8( *this, galgames_cart_device, int_pic_data_r))
MCFG_PIC16C5x_WRITE_B_CB(WRITE8(*this, galgames_cart_device, int_pic_data_w))
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C76_8BIT)
EEPROM_93C76_8BIT(config, "eeprom");
MACHINE_CONFIG_END
#define MCFG_GALGAMES_STARPAK2_CART_ADD(_tag, _cart) \
@ -221,7 +222,7 @@ MACHINE_CONFIG_START(galgames_starpak3_cart_device::device_add_mconfig)
MCFG_PIC16C5x_READ_B_CB( READ8( *this, galgames_cart_device, int_pic_data_r))
MCFG_PIC16C5x_WRITE_B_CB(WRITE8(*this, galgames_cart_device, int_pic_data_w))
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C76_8BIT)
EEPROM_93C76_8BIT(config, "eeprom");
MACHINE_CONFIG_END
#define MCFG_GALGAMES_STARPAK3_CART_ADD(_tag, _cart) \

View File

@ -634,7 +634,7 @@ MACHINE_CONFIG_START(galpani2_state::galpani2)
MCFG_DEVICE_PROGRAM_MAP(galpani2_mem2)
MCFG_TIMER_DRIVER_ADD_SCANLINE("s_scantimer", galpani2_state, galpani2_interrupt2, "screen", 0, 1)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -463,7 +463,7 @@ MACHINE_CONFIG_START(galpani3_state::galpani3)
//MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 64*8-1)
MCFG_SCREEN_UPDATE_DRIVER(galpani3_state, screen_update_galpani3)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -496,8 +496,7 @@ MACHINE_CONFIG_START(gauntlet_state::gauntlet_base)
MCFG_DEVICE_ADD("audiocpu", M6502, ATARI_CLOCK_14MHz/8)
MCFG_DEVICE_PROGRAM_MAP(sound_map)
MCFG_EEPROM_2804_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2804(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")
@ -522,7 +521,8 @@ MACHINE_CONFIG_START(gauntlet_state::gauntlet_base)
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, gauntlet_state, video_int_write_line))
/* sound hardware */
MCFG_ATARI_SOUND_COMM_ADD("soundcomm", "audiocpu", INPUTLINE("maincpu", M68K_IRQ_6))
ATARI_SOUND_COMM(config, "soundcomm", "audiocpu")
.int_callback().set_inputline("maincpu", M68K_IRQ_6);
SPEAKER(config, "lspeaker").front_left();
SPEAKER(config, "rspeaker").front_right();

View File

@ -369,7 +369,7 @@ MACHINE_CONFIG_START(gcpinbal_state::gcpinbal)
MCFG_DEVICE_PROGRAM_MAP(gcpinbal_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gcpinbal_state, gcpinbal_interrupt)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("watchdog", MB3773, 0)

View File

@ -301,7 +301,7 @@ MACHINE_CONFIG_START(gijoe_state::gijoe)
MCFG_DEVICE_ADD("audiocpu", Z80, XTAL(32'000'000)/4) /* Amuse & confirmed. Z80E at 8MHz */
MCFG_DEVICE_PROGRAM_MAP(sound_map)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_ER5911_8BIT)
EEPROM_ER5911_8BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -242,7 +242,7 @@ MACHINE_CONFIG_START(groundfx_state::groundfx)
MCFG_DEVICE_PROGRAM_MAP(groundfx_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", groundfx_state, interrupt)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
adc0809_device &adc(ADC0809(config, "adc", 500000)); // unknown clock
adc.eoc_ff_callback().set_inputline("maincpu", 5);

View File

@ -968,7 +968,7 @@ MACHINE_CONFIG_START(gticlub_state::gticlub)
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C56_16BIT)
EEPROM_93C56_16BIT(config, "eeprom");
MCFG_MACHINE_START_OVERRIDE(gticlub_state,gticlub)
MCFG_MACHINE_RESET_OVERRIDE(gticlub_state,gticlub)
@ -1076,7 +1076,7 @@ MACHINE_CONFIG_START(gticlub_state::hangplt)
MCFG_QUANTUM_TIME(attotime::from_hz(6000))
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C56_16BIT)
EEPROM_93C56_16BIT(config, "eeprom");
MCFG_MACHINE_START_OVERRIDE(gticlub_state,gticlub)
MCFG_MACHINE_RESET_OVERRIDE(gticlub_state,hangplt)

View File

@ -235,7 +235,7 @@ MACHINE_CONFIG_START(gunbustr_state::gunbustr)
MCFG_DEVICE_PROGRAM_MAP(gunbustr_map)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", gunbustr_state, gunbustr_interrupt) /* VBL */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
tc0510nio_device &tc0510nio(TC0510NIO(config, "tc0510nio", 0));
tc0510nio.read_0_callback().set_ioport("EXTRA");

View File

@ -1489,7 +1489,8 @@ MACHINE_CONFIG_START(harddriv_state::driver_nomsp)
MCFG_QUANTUM_TIME(attotime::from_hz(30000))
MCFG_DEVICE_ADD("200e", M48T02, 0)
MCFG_EEPROM_2816_ADD("210e") // MK48Z02
EEPROM_2816(config, "210e"); // MK48Z02
MCFG_DEVICE_ADD("duartn68681", MC68681, XTAL(3'686'400))
MCFG_MC68681_IRQ_CALLBACK(WRITELINE(*this, harddriv_state, harddriv_duart_irq_handler))
@ -1651,8 +1652,8 @@ MACHINE_CONFIG_START(harddriv_state::dsk)
MCFG_DSP32C_OUTPUT_CALLBACK(WRITE32(*this, harddriv_state,hddsk_update_pif))
MCFG_DEVICE_PROGRAM_MAP(dsk_dsp32_map)
MCFG_EEPROM_2816_ADD("dsk_10c") // MK48Z02
MCFG_EEPROM_2816_ADD("dsk_30c") // MK48Z02
EEPROM_2816(config, "dsk_10c"); // MK48Z02
EEPROM_2816(config, "dsk_30c"); // MK48Z02
/* ASIC65 */
MCFG_ASIC65_ADD("asic65", ASIC65_STANDARD)

View File

@ -1082,7 +1082,7 @@ MACHINE_CONFIG_START(hornet_state::hornet)
MCFG_WATCHDOG_ADD("watchdog")
// PCB description at top doesn't mention any EEPROM on the base board...
// MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
// EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("voodoo0", VOODOO_1, STD_VOODOO_1_CLOCK)
MCFG_VOODOO_FBMEM(2)
@ -1210,12 +1210,13 @@ MACHINE_CONFIG_START(hornet_state::hornet_2board_v2)
MCFG_VOODOO_VBLANK_CB(WRITELINE(*this, hornet_state,voodoo_vblank_1))
MACHINE_CONFIG_END
MACHINE_CONFIG_START(hornet_state::sscope2)
void hornet_state::sscope2(machine_config &config)
{
hornet_2board_v2(config);
MCFG_DEVICE_ADD("lan_serial_id", DS2401)
MCFG_DEVICE_ADD("lan_eeprom", EEPROM_SERIAL_93C46_16BIT)
MACHINE_CONFIG_END
DS2401(config, "lan_serial_id");
EEPROM_93C46_16BIT(config, "lan_eeprom");
}
/*****************************************************************************/

View File

@ -613,7 +613,7 @@ MACHINE_CONFIG_START(indigo_state::indigo3k)
MCFG_LEGACY_SCSI_PORT("scsi")
MCFG_WD33C93_IRQ_CB(WRITELINE(*this, indigo_state, scsi_irq)) /* command completion IRQ */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C56_16BIT)
EEPROM_93C56_16BIT(config, "eeprom");
MACHINE_CONFIG_END
MACHINE_CONFIG_START(indigo_state::indigo4k)

View File

@ -346,7 +346,7 @@ MACHINE_CONFIG_START(inufuku_state::inufuku)
/* IRQs are triggered by the YM2610 */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -357,8 +357,7 @@ MACHINE_CONFIG_START(invqix_state::invqix)
MCFG_SOUND_ROUTE(0, "lspeaker", 0.80)
MCFG_SOUND_ROUTE(1, "rspeaker", 0.80)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_DEFAULT_VALUE(0)
EEPROM_93C46_16BIT(config, "eeprom").default_value(0);
MACHINE_CONFIG_END
ROM_START( invqix )

View File

@ -266,7 +266,7 @@ MACHINE_CONFIG_START(jackpool_state::jackpool)
latch3.q_out_cb<1>().set("eeprom", FUNC(eeprom_serial_93cxx_device::clk_write));
latch3.q_out_cb<2>().set("eeprom", FUNC(eeprom_serial_93cxx_device::di_write));
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("uart", NS16550, 1843200) // exact type and clock unknown

View File

@ -1944,7 +1944,7 @@ MACHINE_CONFIG_START(jaguar_state::jaguar)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","jaguar")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MACHINE_CONFIG_END
MACHINE_CONFIG_START(jaguar_state::jaguarcd)

View File

@ -637,7 +637,7 @@ MACHINE_CONFIG_START(jchan_state::jchan)
MCFG_DEVICE_ADD("toybox", KANEKO_TOYBOX, "eeprom", "DSW1", "mcuram", "mcudata")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* sound hardware */
SPEAKER(config, "lspeaker").front_left();

View File

@ -1142,7 +1142,7 @@ MACHINE_CONFIG_START(jclub2o_state::jclub2o)
MCFG_DEVICE_VBLANK_INT_DRIVER("screen", jclub2o_state, irq0_line_hold)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_S29290_16BIT)
EEPROM_S29290_16BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")
MCFG_TICKET_DISPENSER_ADD("hopper1", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)
@ -1176,7 +1176,7 @@ MACHINE_CONFIG_START(jclub2_state::jclub2)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", common_state, scanline_irq, "screen", 0, 1)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT) // 93C46 ( 8 bits)
EEPROM_93C46_8BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")
MCFG_TICKET_DISPENSER_ADD("hopper1", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)
@ -1211,7 +1211,7 @@ MACHINE_CONFIG_START(darkhors_state::darkhors)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", common_state, scanline_irq, "screen", 0, 1)
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_8BIT)
EEPROM_93C46_8BIT(config, "eeprom");
MCFG_WATCHDOG_ADD("watchdog")
MCFG_TICKET_DISPENSER_ADD("hopper1", attotime::from_msec(200), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_HIGH)

View File

@ -635,7 +635,7 @@ MACHINE_CONFIG_START(joystand_state::joystand)
MCFG_TMS_29F040_ADD("cart.u12")
// devices
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("rtc", MSM6242, XTAL(32'768))
MACHINE_CONFIG_END

View File

@ -1841,7 +1841,7 @@ MACHINE_CONFIG_START(kaneko16_state::bakubrkr)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", kaneko16_state, kaneko16_interrupt, "screen", 0, 1)
MCFG_MACHINE_RESET_OVERRIDE(kaneko16_state,gtmr)
MCFG_DEVICE_ADD(m_eeprom, EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, m_eeprom);
WATCHDOG_TIMER(config, m_watchdog);
@ -2050,7 +2050,7 @@ MACHINE_CONFIG_START(kaneko16_gtmr_state::gtmr)
MCFG_MACHINE_RESET_OVERRIDE(kaneko16_gtmr_state,gtmr)
EEPROM_SERIAL_93C46_16BIT(config, m_eeprom);
EEPROM_93C46_16BIT(config, m_eeprom);
WATCHDOG_TIMER(config, m_watchdog);
@ -2159,7 +2159,7 @@ MACHINE_CONFIG_START(kaneko16_state::mgcrystl)
MCFG_MACHINE_RESET_OVERRIDE(kaneko16_state,mgcrystl)
EEPROM_SERIAL_93C46_16BIT(config, m_eeprom);
EEPROM_93C46_16BIT(config, m_eeprom);
WATCHDOG_TIMER(config, m_watchdog);
@ -2278,8 +2278,7 @@ MACHINE_CONFIG_START(kaneko16_shogwarr_state::shogwarr)
MCFG_MACHINE_RESET_OVERRIDE(kaneko16_shogwarr_state,mgcrystl)
EEPROM_SERIAL_93C46_16BIT(config, m_eeprom);
m_eeprom->set_default_data(shogwarr_default_eeprom, 128);
EEPROM_93C46_16BIT(config, m_eeprom).default_data(shogwarr_default_eeprom, 128);
WATCHDOG_TIMER(config, m_watchdog);
@ -2346,12 +2345,13 @@ void kaneko16_shogwarr_state::brapboys_oki2_map(address_map &map)
map(0x20000, 0x3ffff).bankr("okibank2");
}
MACHINE_CONFIG_START(kaneko16_shogwarr_state::brapboys)
void kaneko16_shogwarr_state::brapboys(machine_config &config)
{
shogwarr(config);
m_oki[1]->set_addrmap(0, &kaneko16_shogwarr_state::brapboys_oki2_map);
m_kaneko_hit->set_type(2);
m_eeprom->set_default_data(brapboys_default_eeprom, 128);
MACHINE_CONFIG_END
m_eeprom->default_data(brapboys_default_eeprom, 128);
}
/***************************************************************************

View File

@ -645,8 +645,7 @@ MACHINE_CONFIG_START(kickgoal_state::kickgoal)
MCFG_DEVICE_DISABLE() /* Disabled since the internal rom isn't dumped */
/* Program and Data Maps are internal to the MCU */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_DATA(kickgoal_default_eeprom_type1, 128)
EEPROM_93C46_16BIT(config, "eeprom").default_data(kickgoal_default_eeprom_type1, 128);
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
@ -684,8 +683,7 @@ MACHINE_CONFIG_START(kickgoal_state::actionhw)
MCFG_DEVICE_DISABLE() /* Disabled since the internal rom isn't dumped */
/* Program and Data Maps are internal to the MCU */
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_DATA(kickgoal_default_eeprom_type1, 128)
EEPROM_93C46_16BIT(config, "eeprom").default_data(kickgoal_default_eeprom_type1, 128);
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

View File

@ -199,8 +199,7 @@ MACHINE_CONFIG_START(klax_state::klax)
MCFG_DEVICE_ADD("maincpu", M68000, ATARI_CLOCK_14MHz/2)
MCFG_DEVICE_PROGRAM_MAP(klax_map)
MCFG_EEPROM_2816_ADD("eeprom")
MCFG_EEPROM_28XX_LOCK_AFTER_WRITE(true)
EEPROM_2816(config, "eeprom").lock_after_write(true);
MCFG_WATCHDOG_ADD("watchdog")

View File

@ -350,8 +350,8 @@ MACHINE_CONFIG_START(konamigq_state::konamigq)
MCFG_MACHINE_RESET_OVERRIDE(konamigq_state, konamigq)
MCFG_DEVICE_ADD("mb89371", MB89371, 0)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
MCFG_EEPROM_DATA(konamigq_def_eeprom, 128)
EEPROM_93C46_16BIT(config, "eeprom").default_data(konamigq_def_eeprom, 128);
MCFG_DEVICE_ADD("scsi", SCSI_PORT, 0)
MCFG_SCSIDEV_ADD("scsi:" SCSI_PORT_DEVICE1, "harddisk", SCSIHD, SCSI_ID_0)

View File

@ -364,7 +364,7 @@ MACHINE_CONFIG_START(konamigv_state::konamigv)
MCFG_PSX_DMA_CHANNEL_WRITE( "maincpu", 5, psxdma_device::write_delegate(&konamigv_state::scsi_dma_write, this ) )
MCFG_DEVICE_ADD("mb89371", MB89371, 0)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
MCFG_DEVICE_ADD("scsi", SCSI_PORT, 0)
MCFG_SCSIDEV_ADD("scsi:" SCSI_PORT_DEVICE1, "cdrom", SCSICD, SCSI_ID_4)

View File

@ -1633,7 +1633,7 @@ MACHINE_CONFIG_START(konamigx_state::konamigx)
MCFG_MACHINE_START_OVERRIDE(konamigx_state,konamigx)
MCFG_MACHINE_RESET_OVERRIDE(konamigx_state,konamigx)
MCFG_DEVICE_ADD("eeprom", EEPROM_SERIAL_93C46_16BIT)
EEPROM_93C46_16BIT(config, "eeprom");
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)

Some files were not shown because too many files have changed in this diff Show More