summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/vlc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/vlc.cpp')
-rw-r--r--src/mame/drivers/vlc.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mame/drivers/vlc.cpp b/src/mame/drivers/vlc.cpp
index 67b58ccfe2f..1e1bd860668 100644
--- a/src/mame/drivers/vlc.cpp
+++ b/src/mame/drivers/vlc.cpp
@@ -138,6 +138,8 @@ nevada TYPE2 : 64 45 51 06 32 02 31 31
#include "tilemap.h"
+namespace {
+
#define MASTER_CLOCK XTAL(16'000'000)
#define MASTER_CPU ((MASTER_CLOCK)/2) // 8mhz
#define SOUND_CLOCK ((MASTER_CLOCK) /8) // 2mhz
@@ -174,6 +176,7 @@ public:
void init_nevada();
protected:
+ virtual void machine_start() override;
virtual void video_start() override;
private:
@@ -211,8 +214,6 @@ private:
void nevada_sec_w(uint16_t data);
void vram_w(offs_t offset, uint16_t data);
- DECLARE_MACHINE_START(nevada);
-
TILE_GET_INFO_MEMBER(get_bg_tile_info);
void nevada_map(address_map &map);
@@ -560,7 +561,7 @@ INPUT_PORTS_END
* Machine start *
*************************/
-MACHINE_START_MEMBER(nevada_state, nevada)
+void nevada_state::machine_start()
{
m_nvram->set_base(m_ram62256, 0x1000);
}
@@ -579,8 +580,6 @@ void nevada_state::nevada(machine_config &config)
WATCHDOG_TIMER(config, "watchdog").set_time(attotime::from_msec(150)); /* 150ms Ds1232 TD to Ground */
- MCFG_MACHINE_START_OVERRIDE(nevada_state, nevada)
-
NVRAM(config, "nvram").set_custom_handler(FUNC(nevada_state::nvram_init));
// video hardware
@@ -673,6 +672,9 @@ void nevada_state::init_nevada()
}
/***************************************************************************/
+} // Anonymous namespace
+
+
/*************************
* Game Drivers *
*************************/