diff options
Diffstat (limited to 'src/mame/drivers/bigbord2.cpp')
-rw-r--r-- | src/mame/drivers/bigbord2.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/src/mame/drivers/bigbord2.cpp b/src/mame/drivers/bigbord2.cpp index c1656a00c19..0c49250c480 100644 --- a/src/mame/drivers/bigbord2.cpp +++ b/src/mame/drivers/bigbord2.cpp @@ -548,7 +548,8 @@ MC6845_UPDATE_ROW( bigbord2_state::crtc_update_row ) #define MAIN_CLOCK 8_MHz_XTAL / 2 -MACHINE_CONFIG_START(bigbord2_state::bigbord2) +void bigbord2_state::bigbord2(machine_config &config) +{ /* basic machine hardware */ Z80(config, m_maincpu, MAIN_CLOCK); m_maincpu->set_addrmap(AS_PROGRAM, &bigbord2_state::bigbord2_mem); @@ -556,10 +557,10 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2) m_maincpu->set_daisy_config(daisy_chain); /* video hardware */ - MCFG_SCREEN_ADD("screen", RASTER) - MCFG_SCREEN_RAW_PARAMS(10.69425_MHz_XTAL, 700, 0, 560, 260, 0, 240) - MCFG_SCREEN_UPDATE_DEVICE("crtc", mc6845_device, screen_update) - MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_crt8002) + screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); + screen.set_raw(10.69425_MHz_XTAL, 700, 0, 560, 260, 0, 240); + screen.set_screen_update("crtc", FUNC(mc6845_device::screen_update)); + GFXDECODE(config, "gfxdecode", m_palette, gfx_crt8002); PALETTE(config, m_palette, palette_device::MONOCHROME); CLOCK(config, "ctc_clock", MAIN_CLOCK).signal_handler().set(FUNC(bigbord2_state::clock_w)); @@ -590,10 +591,8 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2) MB8877(config, m_fdc, 16_MHz_XTAL / 8); // 2MHz for 8 inch, or 1MHz otherwise (jumper-selectable) //m_fdc->intrq_wr_callback().set_inputline(m_maincpu, ??); // info missing from schematic - MCFG_FLOPPY_DRIVE_ADD("fdc:0", bigbord2_floppies, "8dsdd", floppy_image_device::default_floppy_formats) - MCFG_FLOPPY_DRIVE_SOUND(true) - MCFG_FLOPPY_DRIVE_ADD("fdc:1", bigbord2_floppies, "8dsdd", floppy_image_device::default_floppy_formats) - MCFG_FLOPPY_DRIVE_SOUND(true) + FLOPPY_CONNECTOR(config, "fdc:0", bigbord2_floppies, "8dsdd", floppy_image_device::default_floppy_formats).enable_sound(true); + FLOPPY_CONNECTOR(config, "fdc:1", bigbord2_floppies, "8dsdd", floppy_image_device::default_floppy_formats).enable_sound(true); mc6845_device &crtc(MC6845(config, "crtc", 16_MHz_XTAL / 8)); crtc.set_screen("screen"); @@ -617,7 +616,7 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2) m_syslatch1->q_out_cb<6>().set(FUNC(bigbord2_state::disk_motor_w)); // MOTOR m_syslatch1->q_out_cb<7>().set("beeper", FUNC(beep_device::set_state)); // BELL - MCFG_DEVICE_ADD("outlatch1", LS259, 0) // U96 + LS259(config, "outlatch1", 0); // U96 /* keyboard */ generic_keyboard_device &keyboard(GENERIC_KEYBOARD(config, "keyboard", 0)); @@ -625,9 +624,8 @@ MACHINE_CONFIG_START(bigbord2_state::bigbord2) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("beeper", BEEP, 950) // actual frequency is unknown - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) -MACHINE_CONFIG_END + BEEP(config, "beeper", 950).add_route(ALL_OUTPUTS, "mono", 0.50); // actual frequency is unknown +} /* ROMs */ |