mirror of
https://github.com/holub/mame
synced 2025-06-05 04:16:28 +03:00
misc drivers: small cleanup to class var init
This commit is contained in:
parent
a8fe401275
commit
eb5f919366
@ -66,7 +66,7 @@ private:
|
||||
void digit_w(u8 data);
|
||||
u8 input_r();
|
||||
|
||||
u8 m_io[2] = { 0, 0 };
|
||||
u8 m_io[2] = { };
|
||||
u8 m_4042 = 0;
|
||||
};
|
||||
|
||||
|
@ -99,15 +99,13 @@ private:
|
||||
void latch_w(offs_t offset, u8 data);
|
||||
DECLARE_WRITE_LINE_MEMBER(lcd_update_w);
|
||||
|
||||
u8 m_latch[5];
|
||||
u8 m_latch[5] = { };
|
||||
u8 m_dac_data = 0;
|
||||
u8 m_lcd_update = 0;
|
||||
};
|
||||
|
||||
void debut_state::machine_start()
|
||||
{
|
||||
memset(m_latch, 0, sizeof(m_latch));
|
||||
|
||||
// resolve handlers
|
||||
m_out_digit.resolve();
|
||||
|
||||
|
@ -81,7 +81,6 @@ protected:
|
||||
virtual void machine_start() override;
|
||||
|
||||
private:
|
||||
|
||||
// devices
|
||||
required_device<cop420_cpu_device> m_maincpu;
|
||||
|
||||
|
@ -198,8 +198,7 @@ public:
|
||||
m_board(*this, "board"),
|
||||
m_display(*this, "display"),
|
||||
m_dac(*this, "dac"),
|
||||
m_inputs(*this, "IN.%u", 0),
|
||||
m_rotate(true)
|
||||
m_inputs(*this, "IN.%u", 0)
|
||||
{ }
|
||||
|
||||
// machine configs
|
||||
@ -238,7 +237,7 @@ protected:
|
||||
void leds_w(offs_t offset, u8 data);
|
||||
void digit_w(offs_t offset, u8 data);
|
||||
|
||||
bool m_rotate;
|
||||
bool m_rotate = true;
|
||||
u8 m_select = 0;
|
||||
u8 m_7seg_data = 0;
|
||||
u8 m_led_data = 0;
|
||||
|
@ -101,8 +101,7 @@ public:
|
||||
m_speech(*this, "speech"),
|
||||
m_speech_rom(*this, "speech"),
|
||||
m_language(*this, "language"),
|
||||
m_inputs(*this, "IN.%u", 0),
|
||||
m_rotate(false)
|
||||
m_inputs(*this, "IN.%u", 0)
|
||||
{ }
|
||||
|
||||
// machine configs
|
||||
@ -143,7 +142,7 @@ protected:
|
||||
u8 ppi_portb_r();
|
||||
void ppi_portc_w(u8 data);
|
||||
|
||||
bool m_rotate;
|
||||
bool m_rotate = false;
|
||||
u8 m_led_data = 0;
|
||||
u8 m_7seg_data = 0;
|
||||
u8 m_inp_mux = 0;
|
||||
|
@ -64,7 +64,6 @@ private:
|
||||
u8 m_led_data = 0;
|
||||
};
|
||||
|
||||
|
||||
void mondial2_state::machine_start()
|
||||
{
|
||||
save_item(NAME(m_keypad_mux));
|
||||
|
@ -73,8 +73,8 @@ private:
|
||||
void ram_data_w(u8 data);
|
||||
|
||||
std::unique_ptr<u8[]> m_ram;
|
||||
u8 m_ram_address[2] = { 0, 0 };
|
||||
u64 m_lcd_data[2] = { 0, 0 };
|
||||
u8 m_ram_address[2] = { };
|
||||
u64 m_lcd_data[2] = { };
|
||||
};
|
||||
|
||||
void exchess_state::machine_start()
|
||||
|
@ -123,7 +123,7 @@ private:
|
||||
void p6_w(u8 data);
|
||||
|
||||
u8 m_inp_mux = 0;
|
||||
u8 m_led_data[2] = { 0, 0 };
|
||||
u8 m_led_data[2] = { };
|
||||
};
|
||||
|
||||
void leo_state::machine_start()
|
||||
|
@ -72,7 +72,7 @@ private:
|
||||
u8 input_r();
|
||||
|
||||
u8 m_inp_mux = 0;
|
||||
u8 m_led_data[2] = { 0, 0 };
|
||||
u8 m_led_data[2] = { };
|
||||
};
|
||||
|
||||
void prschess_state::machine_start()
|
||||
|
@ -109,7 +109,7 @@ private:
|
||||
void p6_w(u8 data);
|
||||
|
||||
u8 m_inp_mux = 0;
|
||||
u8 m_led_data[2] = { 0, 0 };
|
||||
u8 m_led_data[2] = { };
|
||||
};
|
||||
|
||||
void ren_state::machine_start()
|
||||
|
@ -154,10 +154,6 @@ private:
|
||||
|
||||
void talkingbb_state::machine_start()
|
||||
{
|
||||
// zerofill
|
||||
m_bank = 0;
|
||||
m_inp_mux = 0;
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_bank));
|
||||
save_item(NAME(m_inp_mux));
|
||||
|
@ -71,10 +71,6 @@ private:
|
||||
|
||||
void talkingfb_state::machine_start()
|
||||
{
|
||||
// zerofill
|
||||
m_bank = 0;
|
||||
m_inp_mux = 0;
|
||||
|
||||
// register for savestates
|
||||
save_item(NAME(m_bank));
|
||||
save_item(NAME(m_inp_mux));
|
||||
|
Loading…
Reference in New Issue
Block a user