summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/h8/h83337.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/h8/h83337.cpp')
-rw-r--r--src/devices/cpu/h8/h83337.cpp44
1 files changed, 11 insertions, 33 deletions
diff --git a/src/devices/cpu/h8/h83337.cpp b/src/devices/cpu/h8/h83337.cpp
index eb107c504dc..4d5bedc14ae 100644
--- a/src/devices/cpu/h8/h83337.cpp
+++ b/src/devices/cpu/h8/h83337.cpp
@@ -3,13 +3,13 @@
#include "emu.h"
#include "h83337.h"
-const device_type H83334 = device_creator<h83334_device>;
-const device_type H83336 = device_creator<h83336_device>;
-const device_type H83337 = device_creator<h83337_device>;
+DEFINE_DEVICE_TYPE(H83334, h83334_device, "h83334", "H8/3334")
+DEFINE_DEVICE_TYPE(H83336, h83336_device, "h83336", "H8/3336")
+DEFINE_DEVICE_TYPE(H83337, h83337_device, "h83337", "H8/3337")
-h83337_device::h83337_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, uint32_t clock, const char *shortname, const char *source) :
- h8_device(mconfig, type, name, tag, owner, clock, shortname, source, true, address_map_delegate(FUNC(h83337_device::map), this)),
+h83337_device::h83337_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t start) :
+ h8_device(mconfig, type, tag, owner, clock, true, address_map_delegate(FUNC(h83337_device::map), this)),
intc(*this, "intc"),
adc(*this, "adc"),
port1(*this, "port1"),
@@ -27,47 +27,25 @@ h83337_device::h83337_device(const machine_config &mconfig, device_type type, co
timer16_0(*this, "timer16:0"),
sci0(*this, "sci0"),
sci1(*this, "sci1"),
- watchdog(*this, "watchdog")
+ watchdog(*this, "watchdog"),
+ syscr(0),
+ ram_start(start)
{
- syscr = 0;
- ram_start = 0;
}
h83337_device::h83337_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- h8_device(mconfig, H83337, "H8/3337", tag, owner, clock, "h83337", __FILE__, true, address_map_delegate(FUNC(h83337_device::map), this)),
- intc(*this, "intc"),
- adc(*this, "adc"),
- port1(*this, "port1"),
- port2(*this, "port2"),
- port3(*this, "port3"),
- port4(*this, "port4"),
- port5(*this, "port5"),
- port6(*this, "port6"),
- port7(*this, "port7"),
- port8(*this, "port8"),
- port9(*this, "port9"),
- timer8_0(*this, "timer8_0"),
- timer8_1(*this, "timer8_1"),
- timer16(*this, "timer16"),
- timer16_0(*this, "timer16:0"),
- sci0(*this, "sci0"),
- sci1(*this, "sci1"),
- watchdog(*this, "watchdog")
+ h83337_device(mconfig, H83337, tag, owner, clock, 0xf780)
{
- syscr = 0;
- ram_start = 0xf780;
}
h83334_device::h83334_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- h83337_device(mconfig, H83334, "H8/3334", tag, owner, clock, "h83334", __FILE__)
+ h83337_device(mconfig, H83334, tag, owner, clock, 0xfb80)
{
- ram_start = 0xfb80;
}
h83336_device::h83336_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- h83337_device(mconfig, H83336, "H8/3336", tag, owner, clock, "h83336", __FILE__)
+ h83337_device(mconfig, H83336, tag, owner, clock, 0xf780)
{
- ram_start = 0xf780;
}
static MACHINE_CONFIG_FRAGMENT(h83337)