summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-08-20 19:33:58 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-08-20 19:33:58 -0400
commit10b24fabf5acbdc40cedaf4a01ece347d09d4c03 (patch)
tree0b79569d1a2eed4f2ff7fea26caf5794b6115b75 /src/devices
parent179e5b84f6ba50b0bd230ac25a68e54f57254d2e (diff)
a2themill: 6809 type identification (nw)
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/bus/a2bus/a2themill.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/devices/bus/a2bus/a2themill.cpp b/src/devices/bus/a2bus/a2themill.cpp
index c10ea0fb7ad..effa5ac9cfb 100644
--- a/src/devices/bus/a2bus/a2themill.cpp
+++ b/src/devices/bus/a2bus/a2themill.cpp
@@ -38,8 +38,6 @@
DEFINE_DEVICE_TYPE(A2BUS_THEMILL, a2bus_themill_device, "a2themill", "Stellation Two The Mill")
-#define M6809_TAG "m6809"
-
void a2bus_themill_device::m6809_mem(address_map &map)
{
map(0x0000, 0xffff).rw(FUNC(a2bus_themill_device::dma_r), FUNC(a2bus_themill_device::dma_w));
@@ -53,19 +51,24 @@ void a2bus_themill_device::m6809_mem(address_map &map)
// device_add_mconfig - add device configuration
//-------------------------------------------------
-MACHINE_CONFIG_START(a2bus_themill_device::device_add_mconfig)
- MCFG_DEVICE_ADD(M6809_TAG, M6809, 1021800) // M6809 runs at ~1 MHz as per Stellation Two's print ads
- MCFG_DEVICE_PROGRAM_MAP(m6809_mem)
-MACHINE_CONFIG_END
+void a2bus_themill_device::device_add_mconfig(machine_config &config)
+{
+ MC6809E(config, m_6809, 1021800); // 6809E runs at ~1 MHz as per Stellation Two's print ads
+ m_6809->set_addrmap(AS_PROGRAM, &a2bus_themill_device::m6809_mem);
+}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
-a2bus_themill_device::a2bus_themill_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, type, tag, owner, clock),
- device_a2bus_card_interface(mconfig, *this),
- m_6809(*this, M6809_TAG), m_bEnabled(false), m_flipAddrSpace(false), m_6809Mode(false), m_status(0)
+a2bus_themill_device::a2bus_themill_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
+ : device_t(mconfig, type, tag, owner, clock)
+ , device_a2bus_card_interface(mconfig, *this)
+ , m_6809(*this, "m6809")
+ , m_bEnabled(false)
+ , m_flipAddrSpace(false)
+ , m_6809Mode(false)
+ , m_status(0)
{
}