diff options
Diffstat (limited to 'src/mame/drivers/hitpoker.cpp')
-rw-r--r-- | src/mame/drivers/hitpoker.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mame/drivers/hitpoker.cpp b/src/mame/drivers/hitpoker.cpp index 63938f2fe45..6d0a110629f 100644 --- a/src/mame/drivers/hitpoker.cpp +++ b/src/mame/drivers/hitpoker.cpp @@ -94,7 +94,7 @@ private: DECLARE_READ8_MEMBER(irq_clear_r); virtual void video_start() override; uint32_t screen_update_hitpoker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); - required_device<cpu_device> m_maincpu; + required_device<mc68hc11_cpu_device> m_maincpu; required_device<gfxdecode_device> m_gfxdecode; required_device<palette_device> m_palette; void hitpoker_io(address_map &map); @@ -463,21 +463,21 @@ static GFXDECODE_START( gfx_hitpoker ) GFXDECODE_END MACHINE_CONFIG_START(hitpoker_state::hitpoker) - MCFG_DEVICE_ADD("maincpu", MC68HC11,1000000) - MCFG_DEVICE_PROGRAM_MAP(hitpoker_map) - MCFG_DEVICE_IO_MAP(hitpoker_io) - MCFG_MC68HC11_CONFIG(0, 0x100, 0x01) + MC68HC11(config, m_maincpu, 1000000); + m_maincpu->set_addrmap(AS_PROGRAM, &hitpoker_state::hitpoker_map); + m_maincpu->set_addrmap(AS_IO, &hitpoker_state::hitpoker_io); + m_maincpu->set_config(0, 0x100, 0x01); NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_REFRESH_RATE(60) - MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) // not accurate - MCFG_SCREEN_SIZE(648, 480) //setted by the CRTC - MCFG_SCREEN_VISIBLE_AREA(0, 648-1, 0, 240-1) - MCFG_SCREEN_UPDATE_DRIVER(hitpoker_state, screen_update_hitpoker) - MCFG_SCREEN_PALETTE("palette") + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_refresh_hz(60); + screen.set_vblank_time(ATTOSECONDS_IN_USEC(2500)); // not accurate + screen.set_size(648, 480); //setted by the CRTC + screen.set_visarea(0, 648-1, 0, 240-1); + screen.set_screen_update(FUNC(hitpoker_state::screen_update_hitpoker)); + screen.set_palette(m_palette); h46505_device &crtc(H46505(config, "crtc", CRTC_CLOCK/2)); /* hand tuned to get ~60 fps */ crtc.set_screen("screen"); @@ -485,8 +485,8 @@ MACHINE_CONFIG_START(hitpoker_state::hitpoker) crtc.set_char_width(8); crtc.out_vsync_callback().set(FUNC(hitpoker_state::hitpoker_irq)); - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_hitpoker) - MCFG_PALETTE_ADD("palette", 0x800) + GFXDECODE(config, m_gfxdecode, m_palette, gfx_hitpoker); + PALETTE(config, m_palette, 0x800); SPEAKER(config, "mono").front_center(); @@ -494,7 +494,7 @@ MACHINE_CONFIG_START(hitpoker_state::hitpoker) aysnd.port_a_read_callback().set_ioport("DSW1"); aysnd.port_b_read_callback().set_ioport("DSW2"); aysnd.add_route(ALL_OUTPUTS, "mono", 0.50); -MACHINE_CONFIG_END +} void hitpoker_state::init_hitpoker() { |