summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/ms0515.cpp
diff options
context:
space:
mode:
authorGravatarGravatar andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
committerGravatarGravatar andreasnaive <andreasnaive@gmail.com>2019-03-25 23:13:40 +0100
commitb380514764cf857469bae61c11143a19f79a74c5 (patch) (github)
tree63c8012e262618f08a332da31dd714281aa2c5ed /src/mame/drivers/ms0515.cpp
parentc24473ddff715ecec2e258a6eb38960cf8c8e98e (diff)
downloadmame-b380514764cf857469bae61c11143a19f79a74c5.tar.bz2
mame-b380514764cf857469bae61c11143a19f79a74c5.zip
Revert "conflict resolution (nw)"
Diffstat (limited to 'src/mame/drivers/ms0515.cpp')
-rw-r--r--src/mame/drivers/ms0515.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/mame/drivers/ms0515.cpp b/src/mame/drivers/ms0515.cpp
index c0f1aa54baa..3d2de87af00 100644
--- a/src/mame/drivers/ms0515.cpp
+++ b/src/mame/drivers/ms0515.cpp
@@ -523,26 +523,27 @@ WRITE_LINE_MEMBER(ms0515_state::irq11_w)
irq_encoder(11, state);
}
-void ms0515_state::ms0515(machine_config &config)
-{
+MACHINE_CONFIG_START(ms0515_state::ms0515)
/* basic machine hardware */
T11(config, m_maincpu, XTAL(15'000'000) / 2); // actual CPU is T11 clone, KR1807VM1
m_maincpu->set_initial_mode(0xf2ff);
m_maincpu->set_addrmap(AS_PROGRAM, &ms0515_state::ms0515_mem);
/* video hardware -- 50 Hz refresh rate */
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
- screen.set_raw( XTAL(15'000'000), 958,0,640, 313,0,200 );
- screen.set_screen_update(FUNC(ms0515_state::screen_update_ms0515));
- screen.screen_vblank().set(FUNC(ms0515_state::screen_vblank));
- screen.set_palette("palette");
+ MCFG_SCREEN_ADD("screen", RASTER)
+ MCFG_SCREEN_RAW_PARAMS( XTAL(15'000'000), 958,0,640, 313,0,200 )
+ MCFG_SCREEN_UPDATE_DRIVER(ms0515_state, screen_update_ms0515)
+ MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, ms0515_state, screen_vblank))
+ MCFG_SCREEN_PALETTE("palette")
config.set_default_layout(layout_ms0515);
PALETTE(config, "palette", FUNC(ms0515_state::ms0515_palette), 16);
KR1818VG93(config, m_fdc, 1000000);
- FLOPPY_CONNECTOR(config, "vg93:0", ms0515_floppies, "525qd", ms0515_state::floppy_formats).enable_sound(true);
- FLOPPY_CONNECTOR(config, "vg93:1", ms0515_floppies, "525qd", ms0515_state::floppy_formats).enable_sound(true);
+ MCFG_FLOPPY_DRIVE_ADD("vg93:0", ms0515_floppies, "525qd", ms0515_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_SOUND(true)
+ MCFG_FLOPPY_DRIVE_ADD("vg93:1", ms0515_floppies, "525qd", ms0515_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_SOUND(true)
i8255_device &ppi(I8255(config, "ppi8255_1"));
ppi.out_pa_callback().set(FUNC(ms0515_state::ms0515_porta_w));
@@ -560,8 +561,8 @@ void ms0515_state::ms0515(machine_config &config)
m_rs232->cts_handler().set(m_i8251line, FUNC(i8251_device::write_cts));
m_rs232->dsr_handler().set(m_i8251line, FUNC(i8251_device::write_dsr));
-// clock_device &line_clock(CLOCK(config, "line_clock", 4800*16)); // 8251 is set to /16 on the clock input
-// line_clock.signal_handler().set(FUNC(ms0515_state::write_line_clock));
+// MCFG_DEVICE_ADD("line_clock", CLOCK, 4800*16) // 8251 is set to /16 on the clock input
+// MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, ms0515_state, write_line_clock))
// serial connection to MS7004 keyboard
I8251(config, m_i8251kbd, 0);
@@ -573,8 +574,8 @@ void ms0515_state::ms0515(machine_config &config)
m_ms7004->rts_handler().set(m_i8251kbd, FUNC(i8251_device::write_cts));
// baud rate is supposed to be 4800 but keyboard is slightly faster
- clock_device &keyboard_clock(CLOCK(config, "keyboard_clock", 4960*16));
- keyboard_clock.signal_handler().set(FUNC(ms0515_state::write_keyboard_clock));
+ MCFG_DEVICE_ADD("keyboard_clock", CLOCK, 4960*16)
+ MCFG_CLOCK_SIGNAL_HANDLER(WRITELINE(*this, ms0515_state, write_keyboard_clock))
PIT8253(config, m_pit8253, 0);
m_pit8253->set_clk<0>(XTAL(2'000'000));
@@ -589,7 +590,7 @@ void ms0515_state::ms0515(machine_config &config)
/* internal ram */
RAM(config, RAM_TAG).set_default_size("128K");
-}
+MACHINE_CONFIG_END
/* ROM definition */
ROM_START( ms0515 )