summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/atm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/atm.cpp')
-rw-r--r--src/mame/drivers/atm.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mame/drivers/atm.cpp b/src/mame/drivers/atm.cpp
index eccf86d13b5..06a548da08e 100644
--- a/src/mame/drivers/atm.cpp
+++ b/src/mame/drivers/atm.cpp
@@ -17,6 +17,8 @@ Not working because of banking issues.
#include "machine/beta.h"
+namespace {
+
class atm_state : public spectrum_state
{
public:
@@ -32,12 +34,14 @@ public:
void atm(machine_config &config);
void atmtb2(machine_config &config);
+protected:
+ virtual void machine_reset() override;
+
private:
void atm_port_7ffd_w(uint8_t data);
uint8_t beta_neutral_r(offs_t offset);
uint8_t beta_enable_r(offs_t offset);
uint8_t beta_disable_r(offs_t offset);
- DECLARE_MACHINE_RESET(atm);
void atm_io(address_map &map);
void atm_mem(address_map &map);
@@ -141,7 +145,7 @@ void atm_state::atm_switch(address_map &map)
map(0x4000, 0xffff).r(FUNC(atm_state::beta_disable_r));
}
-MACHINE_RESET_MEMBER(atm_state,atm)
+void atm_state::machine_reset()
{
uint8_t *messram = m_ram->pointer();
m_program = &m_maincpu->space(AS_PROGRAM);
@@ -195,8 +199,6 @@ void atm_state::atm(machine_config &config)
m_maincpu->set_addrmap(AS_IO, &atm_state::atm_io);
m_maincpu->set_addrmap(AS_OPCODES, &atm_state::atm_switch);
- MCFG_MACHINE_RESET_OVERRIDE(atm_state, atm )
-
BETA_DISK(config, m_beta, 0);
subdevice<gfxdecode_device>("gfxdecode")->set_info(gfx_atm);
@@ -254,6 +256,9 @@ ROM_START( atmtb2 )
ROM_LOAD( "sgen.rom", 0x0000, 0x0800, CRC(1f4387d6) SHA1(93b3774dc8a486643a1bdd48c606b0c84fa0e22b))
ROM_END
+} // Anonymous namespace
+
+
/* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */
COMP( 1991, atm, spec128, 0, atm, spec_plus, atm_state, empty_init, "MicroART", "ATM", MACHINE_NOT_WORKING)
//COMP( 1991, atmtb1, spec128, 0, atm, spec_plus, atm_state, empty_init, "MicroART", "ATM-turbo1", MACHINE_NOT_WORKING)