summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/einstein/pipe/tk02.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/einstein/pipe/tk02.cpp')
-rw-r--r--src/devices/bus/einstein/pipe/tk02.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/devices/bus/einstein/pipe/tk02.cpp b/src/devices/bus/einstein/pipe/tk02.cpp
index 048cd0680ee..50560c250d6 100644
--- a/src/devices/bus/einstein/pipe/tk02.cpp
+++ b/src/devices/bus/einstein/pipe/tk02.cpp
@@ -24,8 +24,8 @@ DEFINE_DEVICE_TYPE(TK02_80COL, tk02_device, "tk02", "TK02 80 Column Monochrome U
void tk02_device::map(address_map &map)
{
// AM_RANGE(0x00, 0x07) AM_SELECT(0xff00) AM_READWRITE(ram_r, ram_w) // no AM_SELECT (or AM_MASK) support here
- map(0x08, 0x08).mirror(0xff00).w("crtc", FUNC(mc6845_device::address_w));
- map(0x09, 0x09).mirror(0xff00).w("crtc", FUNC(mc6845_device::register_w));
+ map(0x08, 0x08).mirror(0xff00).w(m_crtc, FUNC(mc6845_device::address_w));
+ map(0x09, 0x09).mirror(0xff00).w(m_crtc, FUNC(mc6845_device::register_w));
map(0x0c, 0x0c).mirror(0xff00).r(FUNC(tk02_device::status_r));
}
@@ -105,11 +105,12 @@ MACHINE_CONFIG_START(tk02_device::device_add_mconfig)
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_tk02)
- MCFG_MC6845_ADD("crtc", MC6845, "mono", XTAL(8'000'000) / 4)
- MCFG_MC6845_SHOW_BORDER_AREA(false)
- MCFG_MC6845_CHAR_WIDTH(8)
- MCFG_MC6845_UPDATE_ROW_CB(tk02_device, crtc_update_row)
- MCFG_MC6845_OUT_DE_CB(WRITELINE(*this, tk02_device, de_w))
+ MC6845(config, m_crtc, XTAL(8'000'000) / 4);
+ m_crtc->set_screen("mono");
+ m_crtc->set_show_border_area(false);
+ m_crtc->set_char_width(8);
+ m_crtc->set_update_row_callback(FUNC(tk02_device::crtc_update_row), this);
+ m_crtc->out_de_callback().set(FUNC(tk02_device::de_w));
MCFG_TATUNG_PIPE_ADD("pipe")
MACHINE_CONFIG_END