summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/zexall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/zexall.cpp')
-rw-r--r--src/mame/drivers/zexall.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mame/drivers/zexall.cpp b/src/mame/drivers/zexall.cpp
index 4a0912b1984..40d49c73bc3 100644
--- a/src/mame/drivers/zexall.cpp
+++ b/src/mame/drivers/zexall.cpp
@@ -32,12 +32,11 @@ class zexall_state : public driver_device
{
public:
zexall_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, "maincpu"),
- m_terminal(*this, "terminal"),
- m_main_ram(*this, "main_ram")
- {
- }
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, "maincpu")
+ , m_terminal(*this, "terminal")
+ , m_main_ram(*this, "main_ram")
+ { }
void zexall(machine_config &config);
@@ -49,7 +48,7 @@ private:
DECLARE_WRITE8_MEMBER( output_req_w );
DECLARE_WRITE8_MEMBER( output_data_w );
- void z80_mem(address_map &map);
+ void mem_map(address_map &map);
required_device<cpu_device> m_maincpu;
required_device<generic_terminal_device> m_terminal;
@@ -138,7 +137,7 @@ WRITE8_MEMBER( zexall_state::output_data_w )
Address Maps
******************************************************************************/
-void zexall_state::z80_mem(address_map &map)
+void zexall_state::mem_map(address_map &map)
{
map(0x0000, 0xffff).ram().share("main_ram");
map(0xfffd, 0xfffd).rw(FUNC(zexall_state::output_ack_r), FUNC(zexall_state::output_ack_w));
@@ -162,10 +161,10 @@ INPUT_PORTS_END
MACHINE_CONFIG_START(zexall_state::zexall)
/* basic machine hardware */
MCFG_DEVICE_ADD("maincpu", Z80, XTAL(3'579'545))
- MCFG_DEVICE_PROGRAM_MAP(z80_mem)
+ MCFG_DEVICE_PROGRAM_MAP(mem_map)
/* video hardware */
- MCFG_DEVICE_ADD("terminal", GENERIC_TERMINAL, 0)
+ MCFG_DEVICE_ADD(m_terminal, GENERIC_TERMINAL, 0)
MACHINE_CONFIG_END