summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/inder_vid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/inder_vid.cpp')
-rw-r--r--src/mame/machine/inder_vid.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/machine/inder_vid.cpp b/src/mame/machine/inder_vid.cpp
index e5005ea52b3..35c30b9d698 100644
--- a/src/mame/machine/inder_vid.cpp
+++ b/src/mame/machine/inder_vid.cpp
@@ -31,6 +31,7 @@ void inder_vid_device::megaphx_tms_map(address_map &map)
map(0x04000030, 0x0400003f).w("ramdac", FUNC(ramdac_device::index_r_w)).umask16(0x00ff);
map(0x04000090, 0x0400009f).nopw();
map(0x7fc00000, 0x7fffffff).ram().mirror(0x80000000);
+ map(0xc0000000, 0xc00001ff).rw(m_tms, FUNC(tms34010_device::io_register_r), FUNC(tms34010_device::io_register_w));
}
@@ -96,8 +97,7 @@ void inder_vid_device::ramdac_map(address_map &map)
map(0x000, 0x3ff).rw("ramdac", FUNC(ramdac_device::ramdac_pal_r), FUNC(ramdac_device::ramdac_rgb888_w));
}
-void inder_vid_device::device_add_mconfig(machine_config &config)
-{
+MACHINE_CONFIG_START(inder_vid_device::device_add_mconfig)
TMS34010(config, m_tms, XTAL(40'000'000));
m_tms->set_addrmap(AS_PROGRAM, &inder_vid_device::megaphx_tms_map);
m_tms->set_halt_on_reset(true);
@@ -108,16 +108,17 @@ void inder_vid_device::device_add_mconfig(machine_config &config)
m_tms->set_shiftreg_in_callback(FUNC(inder_vid_device::to_shiftreg));
m_tms->set_shiftreg_out_callback(FUNC(inder_vid_device::from_shiftreg));
- screen_device &screen(SCREEN(config, "inder_screen", SCREEN_TYPE_RASTER));
- screen.set_raw(XTAL(40'000'000)/12, 424, 0, 338-1, 262, 0, 246-1);
- screen.set_screen_update("tms", FUNC(tms34010_device::tms340x0_rgb32));
+ MCFG_SCREEN_ADD("inder_screen", RASTER)
+ MCFG_SCREEN_RAW_PARAMS(XTAL(40'000'000)/12, 424, 0, 338-1, 262, 0, 246-1)
+ MCFG_SCREEN_UPDATE_DEVICE("tms", tms34010_device, tms340x0_rgb32)
- PALETTE(config, m_palette).set_entries(256);
+ MCFG_PALETTE_ADD(m_palette, 256)
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
ramdac.set_addrmap(0, &inder_vid_device::ramdac_map);
ramdac.set_split_read(1);
-}
+
+MACHINE_CONFIG_END
void inder_vid_device::device_start()