summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/timex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/timex.cpp')
-rw-r--r--src/mame/drivers/timex.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mame/drivers/timex.cpp b/src/mame/drivers/timex.cpp
index fe27daa9f5b..b09f26844fe 100644
--- a/src/mame/drivers/timex.cpp
+++ b/src/mame/drivers/timex.cpp
@@ -595,7 +595,7 @@ MACHINE_RESET_MEMBER(timex_state,tc2048)
}
-DEVICE_IMAGE_LOAD_MEMBER( timex_state, timex_cart )
+DEVICE_IMAGE_LOAD_MEMBER( timex_state::cart_load )
{
uint32_t size = m_dock->common_get_size("rom");
@@ -686,7 +686,8 @@ static GFXDECODE_START( gfx_ts2068 )
GFXDECODE_ENTRY( "maincpu", 0x13d00, ts2068_charlayout, 0, 8 )
GFXDECODE_END
-MACHINE_CONFIG_START(timex_state::ts2068)
+void timex_state::ts2068(machine_config &config)
+{
spectrum_128(config);
Z80(config.replace(), m_maincpu, XTAL(14'112'000)/4); /* From Schematic; 3.528 MHz */
@@ -712,16 +713,14 @@ MACHINE_CONFIG_START(timex_state::ts2068)
AY8912(config.replace(), "ay8912", XTAL(14'112'000)/8).add_route(ALL_OUTPUTS, "mono", 0.25); /* From Schematic; 1.764 MHz */
/* cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("dockslot", generic_plain_slot, "timex_cart")
- MCFG_GENERIC_EXTENSIONS("dck,bin")
- MCFG_GENERIC_LOAD(timex_state, timex_cart)
+ GENERIC_CARTSLOT(config, "dockslot", generic_plain_slot, "timex_cart", "dck,bin").set_device_load(FUNC(timex_state::cart_load), this);
/* Software lists */
SOFTWARE_LIST(config, "cart_list").set_original("timex_dock");
/* internal ram */
m_ram->set_default_size("48K");
-MACHINE_CONFIG_END
+}
void timex_state::uk2086(machine_config &config)