summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/msm6222b.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/msm6222b.cpp')
-rw-r--r--src/devices/video/msm6222b.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/devices/video/msm6222b.cpp b/src/devices/video/msm6222b.cpp
index 632314a49dd..1e342e04084 100644
--- a/src/devices/video/msm6222b.cpp
+++ b/src/devices/video/msm6222b.cpp
@@ -13,28 +13,29 @@
#include "emu.h"
#include "msm6222b.h"
-const device_type MSM6222B = device_creator<msm6222b_device>;
-const device_type MSM6222B_01 = device_creator<msm6222b_01_device>;
+DEFINE_DEVICE_TYPE(MSM6222B, msm6222b_device, "msm6222b", "Oki MSM6222B-xx LCD Controller")
+DEFINE_DEVICE_TYPE(MSM6222B_01, msm6222b_01_device, "msm6222b01", "Oki MSM6222B-01 LCD Controller")
ROM_START( msm6222b_01 )
ROM_REGION( 0x1000, "cgrom", 0 )
ROM_LOAD( "msm6222b-01.bin", 0x0000, 0x1000, CRC(8ffa8521) SHA1(e108b520e6d20459a7bbd5958bbfa1d551a690bd) )
ROM_END
-msm6222b_device::msm6222b_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) :
- device_t(mconfig, type, name, tag, owner, clock, shortname, source), cursor_direction(false), cursor_blinking(false), two_line(false), shift_on_write(false), double_height(false), cursor_on(false), display_on(false), adc(0), shift(0),
- m_cgrom(*this, finder_base::DUMMY_TAG)
+msm6222b_device::msm6222b_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
+ device_t(mconfig, type, tag, owner, clock),
+ m_cgrom(*this, finder_base::DUMMY_TAG),
+ cursor_direction(false), cursor_blinking(false), two_line(false), shift_on_write(false), double_height(false), cursor_on(false), display_on(false), adc(0), shift(0)
{
}
msm6222b_device::msm6222b_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- device_t(mconfig, MSM6222B, "msm6222b-xx", tag, owner, clock, "msm6222b", __FILE__), cursor_direction(false), cursor_blinking(false), two_line(false), shift_on_write(false), double_height(false), cursor_on(false), display_on(false), adc(0), shift(0),
- m_cgrom(*this, DEVICE_SELF)
+ msm6222b_device(mconfig, MSM6222B, tag, owner, clock)
{
+ m_cgrom.set_tag(DEVICE_SELF);
}
msm6222b_01_device::msm6222b_01_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
- msm6222b_device(mconfig, MSM6222B_01, "msm6222b-01", tag, owner, clock, "msm6222b01", __FILE__)
+ msm6222b_device(mconfig, MSM6222B_01, tag, owner, clock)
{
// load the fixed cgrom
m_cgrom.set_tag("cgrom");