From 854a56a1df8265b93341b4d56094d5cff2e51c48 Mon Sep 17 00:00:00 2001 From: AJR Date: Fri, 13 Mar 2020 20:38:34 -0400 Subject: spdodgeb.cpp, wy100.cpp: Clean up odds and ends (nw) --- src/mame/drivers/spdodgeb.cpp | 13 ------------- src/mame/drivers/wy100.cpp | 1 - src/mame/includes/spdodgeb.h | 13 +------------ 3 files changed, 1 insertion(+), 26 deletions(-) diff --git a/src/mame/drivers/spdodgeb.cpp b/src/mame/drivers/spdodgeb.cpp index c6adc310f7f..76e99767c4a 100644 --- a/src/mame/drivers/spdodgeb.cpp +++ b/src/mame/drivers/spdodgeb.cpp @@ -153,12 +153,7 @@ void spdodgeb_state::mcu_map(address_map &map) READ_LINE_MEMBER(spdodgeb_state::mcu_busy_r) { -#if 0 - m_toggle ^= 0x01; - return m_toggle; -#else return BIT(m_mcu_status, 7); -#endif } static INPUT_PORTS_START( spdodgeb ) @@ -268,30 +263,22 @@ GFXDECODE_END void spdodgeb_state::machine_start() { - save_item(NAME(m_toggle)); save_item(NAME(m_adpcm_pos)); save_item(NAME(m_adpcm_end)); save_item(NAME(m_adpcm_idle)); save_item(NAME(m_adpcm_data)); save_item(NAME(m_mcu_status)); save_item(NAME(m_inputs)); - save_item(NAME(m_tapc)); - save_item(NAME(m_last_port)); - save_item(NAME(m_last_dash)); } void spdodgeb_state::machine_reset() { - m_toggle = 0; m_adpcm_pos[0] = m_adpcm_pos[1] = 0; m_adpcm_end[0] = m_adpcm_end[1] = 0; m_adpcm_idle[0] = m_adpcm_data[1] = 0; m_adpcm_data[0] = m_adpcm_data[1] = -1; m_mcu_status = 0; memset(m_inputs, 0, sizeof(m_inputs)); - memset(m_tapc, 0, sizeof(m_tapc)); - m_last_port[0] = m_last_port[1] = 0; - m_last_dash[0] = m_last_dash[1] = 0; } void spdodgeb_state::spdodgeb(machine_config &config) diff --git a/src/mame/drivers/wy100.cpp b/src/mame/drivers/wy100.cpp index 792924ee7fb..693c37039fc 100644 --- a/src/mame/drivers/wy100.cpp +++ b/src/mame/drivers/wy100.cpp @@ -205,7 +205,6 @@ void wy100_state::wy100(machine_config &config) m_maincpu->p1_out_cb().append("spkrgate", FUNC(input_merger_device::in_w<0>)).bit(7); m_maincpu->p2_out_cb().set(FUNC(wy100_state::p2_w)); m_maincpu->t0_in_cb().set("keyboard", FUNC(wy100_keyboard_device::sense_r)).invert(); - //m_maincpu->t1_in_cb().set(m_pci, FUNC(mc2661_device::rxrdy_r)).invert(); m_maincpu->t1_in_cb().set(m_pci, FUNC(scn2651_device::rxrdy_r)); WY100_KEYBOARD(config, "keyboard"); diff --git a/src/mame/includes/spdodgeb.h b/src/mame/includes/spdodgeb.h index cbd8d4fa050..7baa915329e 100644 --- a/src/mame/includes/spdodgeb.h +++ b/src/mame/includes/spdodgeb.h @@ -58,24 +58,13 @@ private: required_shared_ptr m_videoram; required_shared_ptr m_spriteram; - int m_toggle; int m_adpcm_pos[2]; int m_adpcm_end[2]; int m_adpcm_idle[2]; int m_adpcm_data[2]; uint8_t m_mcu_status; uint8_t m_inputs[5]; - uint8_t m_tapc[4]; - uint8_t m_last_port[2]; - uint8_t m_last_dash[2]; -#if 0 - int m_running[2]; - int m_jumped[2]; - int m_prev[2][2]; - int m_countup[2][2]; - int m_countdown[2][2]; - int m_prev[2]; -#endif + int m_tile_palbank; int m_sprite_palbank; tilemap_t *m_bg_tilemap; -- cgit v1.2.3