From ab5f6378d056fc03d95aa351e1dcffdc53d07170 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 22 Aug 2024 10:39:14 +0200 Subject: sc6: remove unneeded mcfg --- src/mame/chess/conchess.cpp | 2 +- src/mame/fidelity/sc6.cpp | 25 +++++++------------------ src/mame/fidelity/vcc.cpp | 4 ++-- 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/src/mame/chess/conchess.cpp b/src/mame/chess/conchess.cpp index 741417a9741..a9b77f9af60 100644 --- a/src/mame/chess/conchess.cpp +++ b/src/mame/chess/conchess.cpp @@ -16,7 +16,7 @@ TODO: - concvicp unmapped reads/writes - verify irq/beeper for concvicp, though it is probably correct --------------------------------------------------------------------------------- +================================================================================ Hardware notes: diff --git a/src/mame/fidelity/sc6.cpp b/src/mame/fidelity/sc6.cpp index 74f05aad47e..62da2b5efab 100644 --- a/src/mame/fidelity/sc6.cpp +++ b/src/mame/fidelity/sc6.cpp @@ -132,7 +132,6 @@ public: { } // machine configs - template void cpu_config(T &maincpu); void shared(machine_config &config); void sc6(machine_config &config); void msc(machine_config &config); @@ -319,20 +318,16 @@ INPUT_PORTS_END Machine Configs *******************************************************************************/ -template -void sc6_state::cpu_config(T &maincpu) -{ - maincpu.p1_in_cb().set(FUNC(sc6_state::input_r)).mask(0x3f); - maincpu.p1_in_cb().append_constant(0xc0).mask(0xc0); - maincpu.p1_out_cb().set(FUNC(sc6_state::select_w)); - maincpu.p2_out_cb().set(FUNC(sc6_state::mux_w)); - maincpu.t0_in_cb().set(FUNC(sc6_state::input_r)).bit(6); - maincpu.t1_in_cb().set(FUNC(sc6_state::input_r)).bit(7); -} - void sc6_state::shared(machine_config &config) { // basic machine hardware + m_maincpu->p1_in_cb().set(FUNC(sc6_state::input_r)).mask(0x3f); + m_maincpu->p1_in_cb().append_constant(0xc0).mask(0xc0); + m_maincpu->p1_out_cb().set(FUNC(sc6_state::select_w)); + m_maincpu->p2_out_cb().set(FUNC(sc6_state::mux_w)); + m_maincpu->t0_in_cb().set(FUNC(sc6_state::input_r)).bit(6); + m_maincpu->t1_in_cb().set(FUNC(sc6_state::input_r)).bit(7); + SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS); m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess)); m_board->set_delay(attotime::from_msec(150)); @@ -349,8 +344,6 @@ void sc6_state::sc6(machine_config &config) { I8040(config, m_maincpu, 11_MHz_XTAL); m_maincpu->set_addrmap(AS_PROGRAM, &sc6_state::sc6_map); - cpu_config(downcast(*m_maincpu)); - shared(config); // video hardware @@ -366,8 +359,6 @@ void sc6_state::msc(machine_config &config) { I8049(config, m_maincpu, 11_MHz_XTAL); m_maincpu->set_addrmap(AS_PROGRAM, &sc6_state::msc_map); - cpu_config(downcast(*m_maincpu)); - shared(config); config.set_default_layout(layout_fidel_msc_v2); @@ -380,8 +371,6 @@ void sc6_state::msc(machine_config &config) void sc6_state::classic(machine_config &config) { I8050(config, m_maincpu, 6_MHz_XTAL); - cpu_config(downcast(*m_maincpu)); - shared(config); config.set_default_layout(layout_fidel_classic); diff --git a/src/mame/fidelity/vcc.cpp b/src/mame/fidelity/vcc.cpp index b3bedcc816b..789654af630 100644 --- a/src/mame/fidelity/vcc.cpp +++ b/src/mame/fidelity/vcc.cpp @@ -25,8 +25,8 @@ The Z80's interrupt inputs are all pulled to VCC, so no interrupts are used. Reset is connected to a power-on reset circuit and a button on the keypad (marked RE). The TSI chip connects to a 4K ROM. All of the 'Voiced' Chess Challengers -use this same ROM (three or four). The later chess boards use a slightly different part -number, but the contents are identical. +use this same ROM (three or four). The later chess boards use a slightly different +part number, but the contents are identical. Memory map (VCC): ----------------- -- cgit v1.2.3