From 2e9bae50d6e82ee0c628a717348c7a499c9b4975 Mon Sep 17 00:00:00 2001 From: hap Date: Thu, 4 Jun 2020 23:22:24 +0200 Subject: dotrikun: remove unneeded layout file (nw) --- src/mame/drivers/dotrikun.cpp | 9 ++++----- src/mame/drivers/mephisto_mondial68k.cpp | 6 ++---- src/mame/drivers/tamag1.cpp | 21 ++------------------- src/mame/layout/dotrikun.lay | 11 ----------- 4 files changed, 8 insertions(+), 39 deletions(-) delete mode 100644 src/mame/layout/dotrikun.lay diff --git a/src/mame/drivers/dotrikun.cpp b/src/mame/drivers/dotrikun.cpp index d979289c874..9fb00be2adf 100644 --- a/src/mame/drivers/dotrikun.cpp +++ b/src/mame/drivers/dotrikun.cpp @@ -32,8 +32,6 @@ TODO: #include "emupal.h" #include "screen.h" -#include "dotrikun.lh" - #define MASTER_CLOCK XTAL(4'000'000) @@ -211,6 +209,7 @@ void dotrikun_state::dotrikun(machine_config &config) /* video hardware */ SCREEN(config, m_screen, SCREEN_TYPE_RASTER); m_screen->set_raw(MASTER_CLOCK, 128+128, 0, 128, 192+64, 0, 192); + m_screen->set_physical_aspect(1, 1); // large border area m_screen->set_screen_update(FUNC(dotrikun_state::screen_update)); m_screen->set_video_attributes(VIDEO_ALWAYS_UPDATE); m_screen->set_palette("palette"); @@ -242,6 +241,6 @@ ROM_START( dotriman ) ROM_END -GAMEL( 1990, dotrikun, 0, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "Sega", "Dottori Kun (new version)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW, layout_dotrikun ) -GAMEL( 1990, dotrikun2, dotrikun, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "Sega", "Dottori Kun (old version)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW, layout_dotrikun ) -GAMEL( 2016, dotriman, dotrikun, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "hack (Chris Covell)", "Dottori-Man Jr.", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW, layout_dotrikun ) +GAME( 1990, dotrikun, 0, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "Sega", "Dottori Kun (new version)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW ) +GAME( 1990, dotrikun2, dotrikun, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "Sega", "Dottori Kun (old version)", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW ) +GAME( 2016, dotriman, dotrikun, dotrikun, dotrikun, dotrikun_state, empty_init, ROT0, "hack (Chris Covell)", "Dottori-Man Jr.", MACHINE_SUPPORTS_SAVE | MACHINE_NO_SOUND_HW ) diff --git a/src/mame/drivers/mephisto_mondial68k.cpp b/src/mame/drivers/mephisto_mondial68k.cpp index 80f02433ba1..ac87ba316db 100644 --- a/src/mame/drivers/mephisto_mondial68k.cpp +++ b/src/mame/drivers/mephisto_mondial68k.cpp @@ -36,7 +36,6 @@ public: mondial68k_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag) , m_maincpu(*this, "maincpu") - , m_dac(*this, "dac") , m_board(*this, "board") , m_display(*this, "display") , m_lcd(*this, "lcd") @@ -58,7 +57,6 @@ protected: void update_display(); required_device m_maincpu; - required_device m_dac; required_device m_board; required_device m_display; required_device m_lcd; @@ -194,7 +192,7 @@ void mondial68k_state::mondial68k(machine_config &config) outlatch.q_out_cb<1>().set(m_lcd, FUNC(pcf2112_device::data_w)); outlatch.q_out_cb<2>().set(m_lcd, FUNC(pcf2112_device::dlen_w)); outlatch.q_out_cb<6>().set_nop(); // another DAC input? - outlatch.q_out_cb<7>().set(m_dac, FUNC(dac_1bit_device::write)); + outlatch.q_out_cb<7>().set("dac", FUNC(dac_1bit_device::write)); SENSORBOARD(config, m_board).set_type(sensorboard_device::BUTTONS); m_board->init_cb().set(m_board, FUNC(sensorboard_device::preset_chess)); @@ -209,7 +207,7 @@ void mondial68k_state::mondial68k(machine_config &config) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - DAC_1BIT(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.25); + DAC_1BIT(config, "dac").add_route(ALL_OUTPUTS, "speaker", 0.25); VOLTAGE_REGULATOR(config, "vref").add_route(0, "dac", 1.0, DAC_VREF_POS_INPUT); } diff --git a/src/mame/drivers/tamag1.cpp b/src/mame/drivers/tamag1.cpp index 10afb70906b..84dc32cc379 100644 --- a/src/mame/drivers/tamag1.cpp +++ b/src/mame/drivers/tamag1.cpp @@ -24,7 +24,6 @@ public: tamag1_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), - m_speaker(*this, "speaker"), m_out_x(*this, "%u.%u", 0U, 0U) { } @@ -33,14 +32,12 @@ public: DECLARE_INPUT_CHANGED_MEMBER(input_changed); private: - void speaker_w(uint8_t data); void tama_palette(palette_device &palette) const; E0C6S46_PIXEL_UPDATE(pixel_update); virtual void machine_start() override; required_device m_maincpu; - required_device m_speaker; output_finder<16, 40> m_out_x; }; @@ -90,20 +87,6 @@ void tamag1_state::tama_palette(palette_device &palette) const -/*************************************************************************** - - I/O - -***************************************************************************/ - -void tamag1_state::speaker_w(uint8_t data) -{ - // R43: speaker out - m_speaker->level_w(data >> 3 & 1); -} - - - /*************************************************************************** Inputs @@ -140,7 +123,7 @@ void tamag1_state::tama(machine_config &config) /* basic machine hardware */ E0C6S46(config, m_maincpu, 32.768_kHz_XTAL); m_maincpu->set_pixel_update_cb(FUNC(tamag1_state::pixel_update)); - m_maincpu->write_r<4>().set(FUNC(tamag1_state::speaker_w)); + m_maincpu->write_r<4>().set("speaker", FUNC(speaker_sound_device::level_w)).bit(3); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); @@ -156,7 +139,7 @@ void tamag1_state::tama(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); - SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); + SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, "mono", 0.25); } diff --git a/src/mame/layout/dotrikun.lay b/src/mame/layout/dotrikun.lay deleted file mode 100644 index 8218ee7ca4c..00000000000 --- a/src/mame/layout/dotrikun.lay +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - -- cgit v1.2.3