diff options
Diffstat (limited to 'src/mame/drivers/hh_hmcs40.cpp')
-rw-r--r-- | src/mame/drivers/hh_hmcs40.cpp | 245 |
1 files changed, 38 insertions, 207 deletions
diff --git a/src/mame/drivers/hh_hmcs40.cpp b/src/mame/drivers/hh_hmcs40.cpp index ad15dc6185a..73bd6f595a5 100644 --- a/src/mame/drivers/hh_hmcs40.cpp +++ b/src/mame/drivers/hh_hmcs40.cpp @@ -80,16 +80,14 @@ - Though very uncommon when compared to games with LED/lamp display, some games may manipulate VFD plate brightness by strobing it longer/shorter, eg. cgalaxn when the player ship explodes. - - Related to the above issue: bultrman sometimes strobes D0/D1/D2 for a very - short duration, causing (unwanted) dimly lit segments on the real machine. - On MAME they will show with full brightness, see eg. building explosions. - Currently there's a workaround in place. - bzaxxon 3D effect is difficult to simulate - improve/redo SVGs of: bzaxxon, bpengo, bbtime ***************************************************************************/ #include "emu.h" +#include "includes/screenless.h" + #include "cpu/hmcs40/hmcs40.h" #include "cpu/cop400/cop400.h" #include "machine/gen_latch.h" @@ -112,28 +110,19 @@ //#include "hh_hmcs40_test.lh" // common test-layout - no svg artwork(yet), use external artwork -class hh_hmcs40_state : public driver_device +class hh_hmcs40_state : public screenless_state { public: hh_hmcs40_state(const machine_config &mconfig, device_type type, const char *tag) : - driver_device(mconfig, type, tag), + screenless_state(mconfig, type, tag), m_maincpu(*this, "maincpu"), m_inp_matrix(*this, "IN.%u", 0), - m_out_x(*this, "%u.%u", 0U, 0U), - m_out_a(*this, "%u.a", 0U), - m_out_digit(*this, "digit%u", 0U), - m_speaker(*this, "speaker"), - m_display_wait(33), - m_display_maxy(1), - m_display_maxx(0) + m_speaker(*this, "speaker") { } // devices required_device<hmcs40_cpu_device> m_maincpu; optional_ioport_array<7> m_inp_matrix; // max 7 - output_finder<0x20, 0x40> m_out_x; - output_finder<0x20> m_out_a; - output_finder<0x20> m_out_digit; optional_device<speaker_sound_device> m_speaker; // misc common @@ -142,29 +131,14 @@ public: u8 m_int[2]; // MCU INT0/1 pins state u16 m_inp_mux; // multiplexed inputs mask + u32 m_grid; // VFD current row data + u64 m_plate; // VFD current column data + u16 read_inputs(int columns); void refresh_interrupts(void); void set_interrupt(int line, int state); DECLARE_INPUT_CHANGED_MEMBER(single_interrupt_line); - // display common - int m_display_wait; // led/lamp off-delay in milliseconds (default 33ms) - int m_display_maxy; // display matrix number of rows - int m_display_maxx; // display matrix number of columns (max 47 for now) - - u32 m_grid; // VFD current row data - u64 m_plate; // VFD current column data - - u64 m_display_state[0x20]; // display matrix rows data (last bit is used for always-on) - u16 m_display_segmask[0x20]; // if not 0, display matrix row is a digit, mask indicates connected segments - u8 m_display_decay[0x20][0x40]; // (internal use) - - TIMER_DEVICE_CALLBACK_MEMBER(display_decay_tick); - void display_update(); - void set_display_size(int maxx, int maxy); - void set_display_segmask(u32 digits, u32 mask); - void display_matrix(int maxx, int maxy, u64 setx, u32 sety, bool update = true); - protected: virtual void machine_start() override; virtual void machine_reset() override; @@ -175,16 +149,9 @@ protected: void hh_hmcs40_state::machine_start() { - // resolve handlers - m_out_x.resolve(); - m_out_a.resolve(); - m_out_digit.resolve(); + screenless_state::machine_start(); // zerofill - memset(m_display_state, 0, sizeof(m_display_state)); - memset(m_display_decay, 0, sizeof(m_display_decay)); - memset(m_display_segmask, 0, sizeof(m_display_segmask)); - memset(m_r, 0, sizeof(m_r)); memset(m_int, 0, sizeof(m_int)); m_d = 0; @@ -193,14 +160,6 @@ void hh_hmcs40_state::machine_start() m_plate = 0; // register for savestates - save_item(NAME(m_display_maxy)); - save_item(NAME(m_display_maxx)); - save_item(NAME(m_display_wait)); - - save_item(NAME(m_display_state)); - save_item(NAME(m_display_decay)); - save_item(NAME(m_display_segmask)); - save_item(NAME(m_r)); save_item(NAME(m_int)); save_item(NAME(m_d)); @@ -222,80 +181,6 @@ void hh_hmcs40_state::machine_reset() ***************************************************************************/ -// The device may strobe the outputs very fast, it is unnoticeable to the user. -// To prevent flickering here, we need to simulate a decay. - -void hh_hmcs40_state::display_update() -{ - for (int y = 0; y < m_display_maxy; y++) - { - u64 active_state = 0; - - for (int x = 0; x <= m_display_maxx; x++) - { - // turn on powered segments - if (m_display_state[y] >> x & 1) - m_display_decay[y][x] = m_display_wait; - - // determine active state - u64 ds = (m_display_decay[y][x] != 0) ? 1 : 0; - active_state |= (ds << x); - - // output to y.x, or y.a when always-on - if (x != m_display_maxx) - m_out_x[y][x] = ds; - else - m_out_a[y] = ds; - } - - // output to digity - if (m_display_segmask[y] != 0) - m_out_digit[y] = active_state & m_display_segmask[y]; - } -} - -TIMER_DEVICE_CALLBACK_MEMBER(hh_hmcs40_state::display_decay_tick) -{ - // slowly turn off unpowered segments - for (int y = 0; y < m_display_maxy; y++) - for (int x = 0; x <= m_display_maxx; x++) - if (m_display_decay[y][x] != 0) - m_display_decay[y][x]--; - - display_update(); -} - -void hh_hmcs40_state::set_display_size(int maxx, int maxy) -{ - m_display_maxx = maxx; - m_display_maxy = maxy; -} - -void hh_hmcs40_state::set_display_segmask(u32 digits, u32 mask) -{ - // set a segment mask per selected digit, but leave unselected ones alone - for (int i = 0; i < 0x20; i++) - { - if (digits & 1) - m_display_segmask[i] = mask; - digits >>= 1; - } -} - -void hh_hmcs40_state::display_matrix(int maxx, int maxy, u64 setx, u32 sety, bool update) -{ - set_display_size(maxx, maxy); - - // update current state - u64 mask = (u64(1) << maxx) - 1; - for (int y = 0; y < maxy; y++) - m_display_state[y] = (sety >> y & 1) ? ((setx & mask) | (u64(1) << maxx)) : 0; - - if (update) - display_update(); -} - - // generic input handlers u16 hh_hmcs40_state::read_inputs(int columns) @@ -445,11 +330,10 @@ void bambball_state::bambball(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 478); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_bambball); /* sound hardware */ @@ -594,12 +478,10 @@ void bmboxing_state::bmboxing(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 529); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -724,12 +606,10 @@ void bfriskyt_state::bfriskyt(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 675); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -846,11 +726,10 @@ void packmon_state::packmon(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 680); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_packmon); /* sound hardware */ @@ -975,12 +854,10 @@ void bzaxxon_state::bzaxxon(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(613, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1099,12 +976,10 @@ void zackman_state::zackman(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(487, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1233,12 +1108,10 @@ void bpengo_state::bpengo(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 759); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1363,12 +1236,10 @@ void bbtime_state::bbtime(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(379, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1473,12 +1344,10 @@ void bdoramon_state::bdoramon(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 668); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1543,8 +1412,7 @@ WRITE16_MEMBER(bultrman_state::grid_w) m_grid = data >> 8 & 0xff; // D0-D2: plate 15-17 (update display there) - //plate_w(space, 4, data & 7); - plate_w(space, 4, data & (1 << offset) & 7); + plate_w(space, 4, data & 7); } // config @@ -1576,12 +1444,10 @@ void bultrman_state::bultrman(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 673); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1677,12 +1543,10 @@ void machiman_state::machiman(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1534, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -1845,7 +1709,6 @@ void pairmtch_state::pairmtch(machine_config &config) config.m_perfect_cpu_quantum = subtag("maincpu"); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_pairmtch); /* sound hardware */ @@ -1971,12 +1834,10 @@ void alnattck_state::alnattck(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 700); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -2116,12 +1977,10 @@ void cdkong_state::cdkong(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(605, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -2262,12 +2121,10 @@ void cgalaxn_state::cgalaxn(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(526, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -2395,12 +2252,10 @@ void cpacman_state::cpacman(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(484, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -2532,12 +2387,10 @@ void cmspacmn_state::cmspacmn(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(481, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -2685,7 +2538,6 @@ void sag_state::sag(machine_config &config) m_maincpu->write_d().set(FUNC(sag_state::grid_w)); m_maincpu->read_d().set(FUNC(sag_state::input_r)); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_sag); /* sound hardware */ @@ -2824,12 +2676,10 @@ void egalaxn2_state::egalaxn2(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(505, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -3114,12 +2964,10 @@ void eturtles_state::eturtles(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(484, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -3237,12 +3085,10 @@ void estargte_state::estargte(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 854); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -3367,12 +3213,10 @@ void ghalien_state::ghalien(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 699); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -3500,11 +3344,10 @@ void gckong_state::gckong(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(479, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_gckong); /* sound hardware */ @@ -3628,12 +3471,10 @@ void gdigdug_state::gdigdug(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(476, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -3800,11 +3641,10 @@ void mwcbaseb_state::mwcbaseb(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 478); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_mwcbaseb); /* sound hardware */ @@ -3940,11 +3780,10 @@ void msthawk_state::msthawk(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 696); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); config.set_default_layout(layout_msthawk); /* sound hardware */ @@ -4041,12 +3880,10 @@ void pbqbert_state::pbqbert(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(603, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -4168,12 +4005,10 @@ void kingman_state::kingman(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(374, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -4295,12 +4130,10 @@ void tmtron_state::tmtron(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(1920, 662); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); @@ -4401,12 +4234,10 @@ void vinvader_state::vinvader(machine_config &config) /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_SVG)); screen.set_svg_region("svg"); - screen.set_refresh_hz(50); + screen.set_refresh_hz(60); screen.set_size(233, 1080); screen.set_visarea_full(); - TIMER(config, "display_decay").configure_periodic(FUNC(hh_hmcs40_state::display_decay_tick), attotime::from_msec(1)); - /* sound hardware */ SPEAKER(config, "mono").front_center(); SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); |