summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/lh5801/lh5801.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/lh5801/lh5801.cpp')
-rw-r--r--src/devices/cpu/lh5801/lh5801.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/devices/cpu/lh5801/lh5801.cpp b/src/devices/cpu/lh5801/lh5801.cpp
index b7467695a68..3ab8bd38a35 100644
--- a/src/devices/cpu/lh5801/lh5801.cpp
+++ b/src/devices/cpu/lh5801/lh5801.cpp
@@ -15,13 +15,14 @@
*****************************************************************************/
#include "emu.h"
-#include "debugger.h"
-
#include "lh5801.h"
+#include "debugger.h"
+
#define VERBOSE 0
-#define LOG(x) do { if (VERBOSE) logerror x; } while (0)
+#include "logmacro.h"
+
enum
{
@@ -62,11 +63,11 @@ enum
#define H 0x10
-const device_type LH5801 = device_creator<lh5801_cpu_device>;
+DEFINE_DEVICE_TYPE(LH5801, lh5801_cpu_device, "lh5801", "LH5801")
lh5801_cpu_device::lh5801_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : cpu_device(mconfig, LH5801, "LH5801", tag, owner, clock, "lh5801", __FILE__)
+ : cpu_device(mconfig, LH5801, tag, owner, clock)
, m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0)
, m_io_config("io", ENDIANNESS_LITTLE, 8, 16, 0)
, m_in_func(*this)