diff options
Diffstat (limited to 'src/mame/drivers/clpoker.cpp')
-rw-r--r-- | src/mame/drivers/clpoker.cpp | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/src/mame/drivers/clpoker.cpp b/src/mame/drivers/clpoker.cpp index 587e946bdfc..71f1c76c27a 100644 --- a/src/mame/drivers/clpoker.cpp +++ b/src/mame/drivers/clpoker.cpp @@ -253,11 +253,12 @@ static GFXDECODE_START( gfx_clpoker ) GFXDECODE_END -MACHINE_CONFIG_START(clpoker_state::clpoker) +void clpoker_state::clpoker(machine_config &config) +{ /* basic machine hardware */ - MCFG_DEVICE_ADD("maincpu", Z80, XTAL(12'000'000) / 3) // Z0840004PSC, divider not verified - MCFG_DEVICE_PROGRAM_MAP(prg_map) - MCFG_DEVICE_IO_MAP(io_map) + Z80(config, m_maincpu, XTAL(12'000'000) / 3); // Z0840004PSC, divider not verified + m_maincpu->set_addrmap(AS_PROGRAM, &clpoker_state::prg_map); + m_maincpu->set_addrmap(AS_IO, &clpoker_state::io_map); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); // HY6116ALP-12 @@ -271,22 +272,22 @@ MACHINE_CONFIG_START(clpoker_state::clpoker) ppi_inputs.in_pb_callback().set_ioport("INB"); ppi_inputs.in_pc_callback().set_ioport("INC"); - MCFG_TICKET_DISPENSER_ADD("hopper", attotime::from_msec(60), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW) + TICKET_DISPENSER(config, m_hopper, attotime::from_msec(60), TICKET_MOTOR_ACTIVE_HIGH, TICKET_STATUS_ACTIVE_LOW); - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) // wrong - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) // wrong - MCFG_SCREEN_SIZE(64*8, 32*8) // wrong - MCFG_SCREEN_VISIBLE_AREA(0*8, 64*8-1, 0*8, 32*8-1) // probably right - MCFG_SCREEN_UPDATE_DRIVER(clpoker_state, screen_update) - MCFG_SCREEN_PALETTE("palette") - MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, clpoker_state, vblank_w)) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_refresh_hz(60); // wrong + screen.set_vblank_time(ATTOSECONDS_IN_USEC(0)); // wrong + screen.set_size(64*8, 32*8); // wrong + screen.set_visarea_full(); // probably right + screen.set_screen_update(FUNC(clpoker_state::screen_update)); + screen.set_palette("palette"); + screen.screen_vblank().set(FUNC(clpoker_state::vblank_w)); - MCFG_PALETTE_ADD("palette", 0x100) + PALETTE(config, "palette").set_entries(0x100); ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette")); // HM86171 ramdac.set_addrmap(0, &clpoker_state::ramdac_map); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_clpoker) + GFXDECODE(config, m_gfxdecode, "palette", gfx_clpoker); /* sound hardware */ SPEAKER(config, "mono").front_center(); @@ -294,7 +295,7 @@ MACHINE_CONFIG_START(clpoker_state::clpoker) aysnd.port_a_read_callback().set_ioport("DSW1"); aysnd.port_b_read_callback().set_ioport("DSW2"); aysnd.add_route(ALL_OUTPUTS, "mono", 0.30); -MACHINE_CONFIG_END +} ROM_START( clpoker ) |