mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
(nw) minor cleanups
This commit is contained in:
parent
8d2b0f2201
commit
6a290e3eeb
@ -16,11 +16,11 @@ class acd_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
acd_state(const machine_config &mconfig, device_type type, const char *tag)
|
acd_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( acd )
|
static INPUT_PORTS_START( acd )
|
||||||
|
@ -22,11 +22,11 @@ class altos2_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
altos2_state(const machine_config &mconfig, device_type type, const char *tag)
|
altos2_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( altos2 )
|
static INPUT_PORTS_START( altos2 )
|
||||||
|
@ -16,11 +16,11 @@ class ampscarp_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
ampscarp_state(const machine_config &mconfig, device_type type, const char *tag)
|
ampscarp_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( ampscarp )
|
static INPUT_PORTS_START( ampscarp )
|
||||||
|
@ -37,22 +37,22 @@ to discover the special features of this Basic.
|
|||||||
#include "machine/i8255.h"
|
#include "machine/i8255.h"
|
||||||
#include "machine/terminal.h"
|
#include "machine/terminal.h"
|
||||||
|
|
||||||
#define TERMINAL_TAG "terminal"
|
|
||||||
|
|
||||||
class basic52_state : public driver_device
|
class basic52_state : public driver_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
basic52_state(const machine_config &mconfig, device_type type, const char *tag)
|
basic52_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag),
|
: driver_device(mconfig, type, tag)
|
||||||
m_maincpu(*this, "maincpu")
|
, m_maincpu(*this, "maincpu")
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
||||||
void kbd_put(u8 data);
|
void kbd_put(u8 data);
|
||||||
DECLARE_READ8_MEMBER(unk_r);
|
DECLARE_READ8_MEMBER(unk_r);
|
||||||
|
DECLARE_READ8_MEMBER(from_term);
|
||||||
|
|
||||||
|
private:
|
||||||
uint8_t m_term_data;
|
uint8_t m_term_data;
|
||||||
required_device<mcs51_cpu_device> m_maincpu;
|
required_device<mcs51_cpu_device> m_maincpu;
|
||||||
DECLARE_READ8_MEMBER(from_term);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -103,11 +103,11 @@ static MACHINE_CONFIG_START( basic31 )
|
|||||||
MCFG_CPU_ADD("maincpu", I8031, XTAL_11_0592MHz)
|
MCFG_CPU_ADD("maincpu", I8031, XTAL_11_0592MHz)
|
||||||
MCFG_CPU_PROGRAM_MAP(basic52_mem)
|
MCFG_CPU_PROGRAM_MAP(basic52_mem)
|
||||||
MCFG_CPU_IO_MAP(basic52_io)
|
MCFG_CPU_IO_MAP(basic52_io)
|
||||||
MCFG_MCS51_SERIAL_TX_CB(DEVWRITE8(TERMINAL_TAG, generic_terminal_device, write))
|
MCFG_MCS51_SERIAL_TX_CB(DEVWRITE8("terminal", generic_terminal_device, write))
|
||||||
MCFG_MCS51_SERIAL_RX_CB(READ8(basic52_state, from_term))
|
MCFG_MCS51_SERIAL_RX_CB(READ8(basic52_state, from_term))
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
MCFG_DEVICE_ADD(TERMINAL_TAG, GENERIC_TERMINAL, 0)
|
MCFG_DEVICE_ADD("terminal", GENERIC_TERMINAL, 0)
|
||||||
MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(basic52_state, kbd_put))
|
MCFG_GENERIC_TERMINAL_KEYBOARD_CB(PUT(basic52_state, kbd_put))
|
||||||
|
|
||||||
MCFG_DEVICE_ADD("ppi8255", I8255, 0)
|
MCFG_DEVICE_ADD("ppi8255", I8255, 0)
|
||||||
@ -118,7 +118,7 @@ static MACHINE_CONFIG_DERIVED( basic52, basic31 )
|
|||||||
MCFG_CPU_REPLACE("maincpu", I8052, XTAL_11_0592MHz)
|
MCFG_CPU_REPLACE("maincpu", I8052, XTAL_11_0592MHz)
|
||||||
MCFG_CPU_PROGRAM_MAP(basic52_mem)
|
MCFG_CPU_PROGRAM_MAP(basic52_mem)
|
||||||
MCFG_CPU_IO_MAP(basic52_io)
|
MCFG_CPU_IO_MAP(basic52_io)
|
||||||
MCFG_MCS51_SERIAL_TX_CB(DEVWRITE8(TERMINAL_TAG, generic_terminal_device, write))
|
MCFG_MCS51_SERIAL_TX_CB(DEVWRITE8("terminal", generic_terminal_device, write))
|
||||||
MCFG_MCS51_SERIAL_RX_CB(READ8(basic52_state, from_term))
|
MCFG_MCS51_SERIAL_RX_CB(READ8(basic52_state, from_term))
|
||||||
MACHINE_CONFIG_END
|
MACHINE_CONFIG_END
|
||||||
|
|
||||||
|
@ -19,11 +19,11 @@ class hazeltine_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
hazeltine_state(const machine_config &mconfig, device_type type, const char *tag)
|
hazeltine_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( hazeltine )
|
static INPUT_PORTS_START( hazeltine )
|
||||||
|
@ -14,11 +14,11 @@ class lg_dvd_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
lg_dvd_state(const machine_config &mconfig, device_type type, const char *tag)
|
lg_dvd_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
, maincpu(*this, "maincpu")
|
, m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
required_device<i80c52_device> maincpu;
|
required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( lg )
|
static INPUT_PORTS_START( lg )
|
||||||
|
@ -19,11 +19,11 @@ class perq_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
perq_state(const machine_config &mconfig, device_type type, const char *tag)
|
perq_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( perq )
|
static INPUT_PORTS_START( perq )
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
2017-10-29 Skeleton
|
2017-10-29 Skeleton
|
||||||
|
|
||||||
Motorola Powerstack II. CPU is a RISC-type.
|
Motorola Powerstack II. CPU is a PowerPC 604e @ 300MHz.
|
||||||
|
|
||||||
************************************************************************************************************************************/
|
************************************************************************************************************************************/
|
||||||
|
|
||||||
@ -16,11 +16,11 @@ class powerstack_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
powerstack_state(const machine_config &mconfig, device_type type, const char *tag)
|
powerstack_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( powerstack )
|
static INPUT_PORTS_START( powerstack )
|
||||||
|
@ -16,11 +16,11 @@ class solbourne_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
solbourne_state(const machine_config &mconfig, device_type type, const char *tag)
|
solbourne_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( solbourne )
|
static INPUT_PORTS_START( solbourne )
|
||||||
|
@ -18,11 +18,11 @@ class ts3000_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
ts3000_state(const machine_config &mconfig, device_type type, const char *tag)
|
ts3000_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( ts3000 )
|
static INPUT_PORTS_START( ts3000 )
|
||||||
|
@ -22,11 +22,11 @@ class vectrix_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
vectrix_state(const machine_config &mconfig, device_type type, const char *tag)
|
vectrix_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( vectrix )
|
static INPUT_PORTS_START( vectrix )
|
||||||
|
@ -16,11 +16,11 @@ class wyse_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
wyse_state(const machine_config &mconfig, device_type type, const char *tag)
|
wyse_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( wyse )
|
static INPUT_PORTS_START( wyse )
|
||||||
|
@ -21,11 +21,11 @@ class zt8802_state : public driver_device
|
|||||||
public:
|
public:
|
||||||
zt8802_state(const machine_config &mconfig, device_type type, const char *tag)
|
zt8802_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||||
: driver_device(mconfig, type, tag)
|
: driver_device(mconfig, type, tag)
|
||||||
// , maincpu(*this, "maincpu")
|
// , m_maincpu(*this, "maincpu")
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// required_device<i80c52_device> maincpu;
|
// required_device<i80c52_device> m_maincpu;
|
||||||
};
|
};
|
||||||
|
|
||||||
static INPUT_PORTS_START( zt8802 )
|
static INPUT_PORTS_START( zt8802 )
|
||||||
|
Loading…
Reference in New Issue
Block a user