diff options
Diffstat (limited to 'src/mame/drivers/swyft.cpp')
-rw-r--r-- | src/mame/drivers/swyft.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/swyft.cpp b/src/mame/drivers/swyft.cpp index 344d92b7b86..f004fef679c 100644 --- a/src/mame/drivers/swyft.cpp +++ b/src/mame/drivers/swyft.cpp @@ -335,9 +335,9 @@ public: optional_ioport m_y6; optional_ioport m_y7;*/ - void machine_start_swyft() ATTR_COLD; - void machine_reset_swyft(); - void video_start_swyft() ATTR_COLD; + DECLARE_MACHINE_START(swyft); + DECLARE_MACHINE_RESET(swyft); + DECLARE_VIDEO_START(swyft); uint32_t screen_update_swyft(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); @@ -573,7 +573,7 @@ void swyft_state::swyft_mem(address_map &map) map(0x0e4000, 0x0e4fff).rw(this, FUNC(swyft_state::swyft_via1_r), FUNC(swyft_state::swyft_via1_w)); } -void swyft_state::machine_start_swyft() +MACHINE_START_MEMBER(swyft_state,swyft) { m_via0->write_ca1(1); m_via0->write_ca2(1); @@ -586,11 +586,11 @@ void swyft_state::machine_start_swyft() m_via1->write_cb2(1); } -void swyft_state::machine_reset_swyft() +MACHINE_RESET_MEMBER(swyft_state,swyft) { } -void swyft_state::video_start_swyft() +VIDEO_START_MEMBER(swyft_state,swyft) { } @@ -768,8 +768,8 @@ MACHINE_CONFIG_START(swyft_state::swyft) MCFG_DEVICE_ADD("maincpu",M68008, XTAL(15'897'600)/2) //MC68008P8, Y1=15.8976Mhz, clock GUESSED at Y1 / 2 MCFG_DEVICE_PROGRAM_MAP(swyft_mem) - set_machine_start_cb(config, driver_callback_delegate(&machine_start_swyft, this)); - set_machine_reset_cb(config, driver_callback_delegate(&machine_reset_swyft, this)); + MCFG_MACHINE_START_OVERRIDE(swyft_state,swyft) + MCFG_MACHINE_RESET_OVERRIDE(swyft_state,swyft) /* video hardware */ MCFG_SCREEN_ADD("screen", RASTER) @@ -782,7 +782,7 @@ MACHINE_CONFIG_START(swyft_state::swyft) MCFG_PALETTE_ADD_MONOCHROME("palette") - set_video_start_cb(config, driver_callback_delegate(&video_start_swyft, this)); + MCFG_VIDEO_START_OVERRIDE(swyft_state,swyft) MCFG_DEVICE_ADD("acia6850", ACIA6850, 0) // acia rx and tx clocks come from one of the VIA pins and are tied together, fix this below? acia e clock comes from 68008 |