summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-03-13 20:38:34 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-03-13 20:38:34 -0400
commit854a56a1df8265b93341b4d56094d5cff2e51c48 (patch)
treea38f742aff2aa9937e5c8402fbf2098559dbec15
parent91b633c3639b2754e82b590747a6c37e64bc8898 (diff)
spdodgeb.cpp, wy100.cpp: Clean up odds and ends (nw)
-rw-r--r--src/mame/drivers/spdodgeb.cpp13
-rw-r--r--src/mame/drivers/wy100.cpp1
-rw-r--r--src/mame/includes/spdodgeb.h13
3 files changed, 1 insertions, 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<uint8_t> m_videoram;
required_shared_ptr<uint8_t> 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;