mirror of
https://github.com/holub/mame
synced 2025-07-02 08:39:21 +03:00
may as well do it myself (nw)
This commit is contained in:
parent
bbbd4d03de
commit
1f12966f99
@ -236,5 +236,5 @@ WRITE_LINE_MEMBER( vic10_expansion_slot_device::p0_w ) { if (m_card != nullptr)
|
|||||||
SLOT_INTERFACE_START( vic10_expansion_cards )
|
SLOT_INTERFACE_START( vic10_expansion_cards )
|
||||||
// the following need ROMs from the software list
|
// the following need ROMs from the software list
|
||||||
SLOT_INTERFACE_INTERNAL("standard", VIC10_STD)
|
SLOT_INTERFACE_INTERNAL("standard", VIC10_STD)
|
||||||
SLOT_INTERFACE_INTERNAL("multimax", MULTIMAX)
|
SLOT_INTERFACE_INTERNAL("multimax", VIC10_MULTIMAX)
|
||||||
SLOT_INTERFACE_END
|
SLOT_INTERFACE_END
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// DEVICE DEFINITIONS
|
// DEVICE DEFINITIONS
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
DEFINE_DEVICE_TYPE(MULTIMAX, multimax_t, "multimax", "MultiMAX Cartridge")
|
DEFINE_DEVICE_TYPE(VIC10_MULTIMAX, vic10_multimax_device, "vic10_multimax", "VIC-10 MultiMAX Cartridge")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -24,11 +24,11 @@ DEFINE_DEVICE_TYPE(MULTIMAX, multimax_t, "multimax", "MultiMAX Cartridge")
|
|||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
// multimax_t - constructor
|
// vic10_multimax_device - constructor
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
multimax_t::multimax_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
|
vic10_multimax_device::vic10_multimax_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
|
||||||
device_t(mconfig, MULTIMAX, tag, owner, clock), device_vic10_expansion_card_interface(mconfig, *this),
|
device_t(mconfig, VIC10_MULTIMAX, tag, owner, clock), device_vic10_expansion_card_interface(mconfig, *this),
|
||||||
m_latch(0)
|
m_latch(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -38,7 +38,7 @@ multimax_t::multimax_t(const machine_config &mconfig, const char *tag, device_t
|
|||||||
// device_start - device-specific startup
|
// device_start - device-specific startup
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void multimax_t::device_start()
|
void vic10_multimax_device::device_start()
|
||||||
{
|
{
|
||||||
// state saving
|
// state saving
|
||||||
save_item(NAME(m_latch));
|
save_item(NAME(m_latch));
|
||||||
@ -49,7 +49,7 @@ void multimax_t::device_start()
|
|||||||
// device_reset - device-specific reset
|
// device_reset - device-specific reset
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void multimax_t::device_reset()
|
void vic10_multimax_device::device_reset()
|
||||||
{
|
{
|
||||||
m_latch = 0;
|
m_latch = 0;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ void multimax_t::device_reset()
|
|||||||
// vic10_cd_r - cartridge data read
|
// vic10_cd_r - cartridge data read
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
uint8_t multimax_t::vic10_cd_r(address_space &space, offs_t offset, uint8_t data, int lorom, int uprom, int exram)
|
uint8_t vic10_multimax_device::vic10_cd_r(address_space &space, offs_t offset, uint8_t data, int lorom, int uprom, int exram)
|
||||||
{
|
{
|
||||||
if (!lorom)
|
if (!lorom)
|
||||||
{
|
{
|
||||||
@ -85,7 +85,7 @@ uint8_t multimax_t::vic10_cd_r(address_space &space, offs_t offset, uint8_t data
|
|||||||
// vic10_cd_w - cartridge data write
|
// vic10_cd_w - cartridge data write
|
||||||
//-------------------------------------------------
|
//-------------------------------------------------
|
||||||
|
|
||||||
void multimax_t::vic10_cd_w(address_space &space, offs_t offset, uint8_t data, int lorom, int uprom, int exram)
|
void vic10_multimax_device::vic10_cd_w(address_space &space, offs_t offset, uint8_t data, int lorom, int uprom, int exram)
|
||||||
{
|
{
|
||||||
if (!exram)
|
if (!exram)
|
||||||
{
|
{
|
||||||
|
@ -19,14 +19,13 @@
|
|||||||
// TYPE DEFINITIONS
|
// TYPE DEFINITIONS
|
||||||
//**************************************************************************
|
//**************************************************************************
|
||||||
|
|
||||||
// ======================> multimax_t
|
// ======================> vic10_multimax_device
|
||||||
|
|
||||||
class multimax_t : public device_t,
|
class vic10_multimax_device : public device_t, public device_vic10_expansion_card_interface
|
||||||
public device_vic10_expansion_card_interface
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// construction/destruction
|
// construction/destruction
|
||||||
multimax_t(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
vic10_multimax_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// device-level overrides
|
// device-level overrides
|
||||||
@ -43,6 +42,6 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
// device type definition
|
// device type definition
|
||||||
DECLARE_DEVICE_TYPE(MULTIMAX, multimax_t)
|
DECLARE_DEVICE_TYPE(VIC10_MULTIMAX, vic10_multimax_device)
|
||||||
|
|
||||||
#endif // MAME_BUS_VIC10_MULTIMAX_H
|
#endif // MAME_BUS_VIC10_MULTIMAX_H
|
||||||
|
Loading…
Reference in New Issue
Block a user