diff --git a/src/mame/drivers/quizshow.cpp b/src/mame/drivers/quizshow.cpp index bda7174559b..fee79e86895 100644 --- a/src/mame/drivers/quizshow.cpp +++ b/src/mame/drivers/quizshow.cpp @@ -95,11 +95,11 @@ private: uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); TIMER_DEVICE_CALLBACK_MEMBER(clock_timer_cb); - tilemap_t *m_tilemap; - uint32_t m_clocks; - int m_blink_state; - int m_category_enable; - int m_tape_head_pos; + tilemap_t *m_tilemap = nullptr; + uint32_t m_clocks = 0; + int m_blink_state = 0; + int m_category_enable = 0; + int m_tape_head_pos = 0; }; diff --git a/src/mame/drivers/qx10.cpp b/src/mame/drivers/qx10.cpp index 25425b212ab..16dcef899c5 100644 --- a/src/mame/drivers/qx10.cpp +++ b/src/mame/drivers/qx10.cpp @@ -186,33 +186,33 @@ private: required_device m_palette; /* FDD */ - int m_fdcint; - uint8_t m_motor_clk; - uint16_t m_counter; - //int m_fdcready; + int m_fdcint = 0; + uint8_t m_motor_clk = 0; + uint16_t m_counter = 0; + //int m_fdcready = 0; - int m_spkr_enable; - int m_spkr_freq; - int m_pit1_out0; + int m_spkr_enable = 0; + int m_spkr_freq = 0; + int m_pit1_out0 = 0; /* centronics */ - int m_centronics_error; - int m_centronics_busy; - int m_centronics_paper; - int m_centronics_select; - int m_centronics_sense; + int m_centronics_error = 0; + int m_centronics_busy = 0; + int m_centronics_paper = 0; + int m_centronics_select = 0; + int m_centronics_sense = 0; /* memory */ memory_view m_ram_view; - int m_external_bank; - int m_membank; - int m_memprom; - int m_memcmos; - uint8_t m_cmosram[0x800]; + int m_external_bank = 0; + int m_membank = 0; + int m_memprom = 0; + int m_memcmos = 0; + uint8_t m_cmosram[0x800]{}; - uint8_t m_color_mode; - uint8_t m_zoom; + uint8_t m_color_mode = 0; + uint8_t m_zoom = 0; }; UPD7220_DISPLAY_PIXELS_MEMBER( qx10_state::hgdc_display_pixels ) diff --git a/src/mame/drivers/r2dtank.cpp b/src/mame/drivers/r2dtank.cpp index f034c239146..13bd2ad2d69 100644 --- a/src/mame/drivers/r2dtank.cpp +++ b/src/mame/drivers/r2dtank.cpp @@ -94,9 +94,9 @@ private: required_device m_ay1; required_device m_ay2; - uint8_t m_flipscreen; - uint32_t m_ttl74123_output; - uint8_t m_AY8910_selected; + uint8_t m_flipscreen = 0; + uint32_t m_ttl74123_output = 0; + uint8_t m_AY8910_selected = 0; uint8_t audio_command_r(); void audio_command_w(uint8_t data); diff --git a/src/mame/drivers/r9751.cpp b/src/mame/drivers/r9751.cpp index 86426e180cb..e273d394157 100644 --- a/src/mame/drivers/r9751.cpp +++ b/src/mame/drivers/r9751.cpp @@ -128,19 +128,19 @@ private: required_device m_wd33c93; required_shared_ptr m_main_ram; - m68000_base_device* ptr_m68000; + m68000_base_device* ptr_m68000 = nullptr; // Begin registers - uint32_t reg_ff050004; - uint32_t reg_fff80040; - uint32_t fdd_dest_address; // 5FF080B0 - uint32_t fdd_cmd_complete; - uint32_t smioc_dma_bank; - uint32_t fdd_dma_bank; + uint32_t reg_ff050004 = 0; + uint32_t reg_fff80040 = 0; + uint32_t fdd_dest_address = 0; // 5FF080B0 + uint32_t fdd_cmd_complete = 0; + uint32_t smioc_dma_bank = 0; + uint32_t fdd_dma_bank = 0; attotime timer_32khz_last; // End registers - address_space *m_mem; + address_space *m_mem = nullptr; // functions uint32_t swap_uint32( uint32_t val ); diff --git a/src/mame/drivers/rabbit.cpp b/src/mame/drivers/rabbit.cpp index 695a43681f3..692e69a5b3f 100644 --- a/src/mame/drivers/rabbit.cpp +++ b/src/mame/drivers/rabbit.cpp @@ -154,12 +154,12 @@ private: std::unique_ptr m_sprite_bitmap; rectangle m_sprite_clip; - int m_vblirqlevel; - int m_bltirqlevel; - int m_banking; + int m_vblirqlevel = 0; + int m_bltirqlevel = 0; + int m_banking = 0; std::unique_ptr m_tilemap_ram[4]; - tilemap_t *m_tilemap[4]; - emu_timer *m_blit_done_timer; + tilemap_t *m_tilemap[4]{}; + emu_timer *m_blit_done_timer = nullptr; TILE_GET_INFO_MEMBER(get_tilemap0_tile_info); TILE_GET_INFO_MEMBER(get_tilemap1_tile_info); diff --git a/src/mame/drivers/rambo.cpp b/src/mame/drivers/rambo.cpp index 5cb099840a1..1667cb535e6 100644 --- a/src/mame/drivers/rambo.cpp +++ b/src/mame/drivers/rambo.cpp @@ -44,7 +44,7 @@ private: void rambo_prg_map(address_map &map); void rambo_data_map(address_map &map); - uint8_t m_port_a; + uint8_t m_port_a = 0; required_device m_maincpu; }; diff --git a/src/mame/drivers/rastersp.cpp b/src/mame/drivers/rastersp.cpp index 80d47a9a0cb..59e4c3c37bc 100644 --- a/src/mame/drivers/rastersp.cpp +++ b/src/mame/drivers/rastersp.cpp @@ -137,11 +137,11 @@ private: DECLARE_WRITE_LINE_MEMBER(vblank_irq); std::unique_ptr m_nvram8; - uint8_t m_irq_status; - uint32_t m_dpyaddr; + uint8_t m_irq_status = 0; + uint32_t m_dpyaddr = 0; std::unique_ptr m_paletteram; - uint32_t m_speedup_count; - uint32_t m_tms_io_regs[0x80]; + uint32_t m_speedup_count = 0; + uint32_t m_tms_io_regs[0x80]{}; bitmap_ind16 m_update_bitmap; uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); diff --git a/src/mame/drivers/rbmk.cpp b/src/mame/drivers/rbmk.cpp index 3a8924ed343..3a30801dbcd 100644 --- a/src/mame/drivers/rbmk.cpp +++ b/src/mame/drivers/rbmk.cpp @@ -103,9 +103,9 @@ private: required_device m_ymsnd; required_ioport_array<3> m_dsw; - uint16_t m_tilebank; - uint8_t m_mux_data; - uint16_t m_dip_mux; + uint16_t m_tilebank = 0; + uint8_t m_mux_data = 0; + uint16_t m_dip_mux = 0; void mcu_io(address_map &map); void mcu_mem(address_map &map); diff --git a/src/mame/drivers/rd100.cpp b/src/mame/drivers/rd100.cpp index f067ced3ed1..2a59a7d33d0 100644 --- a/src/mame/drivers/rd100.cpp +++ b/src/mame/drivers/rd100.cpp @@ -56,9 +56,9 @@ private: required_ioport_array<9> m_keys; required_device m_pia1; - uint8_t m_key_scan; - bool m_shift; - bool m_ctrl; + uint8_t m_key_scan = 0; + bool m_shift = false; + bool m_ctrl = false; }; diff --git a/src/mame/drivers/re900.cpp b/src/mame/drivers/re900.cpp index 046a73d4ea0..7ec02992b9c 100644 --- a/src/mame/drivers/re900.cpp +++ b/src/mame/drivers/re900.cpp @@ -125,12 +125,12 @@ private: required_device m_maincpu; // re900 specific - uint8_t m_psg_pa; - uint8_t m_psg_pb; - uint8_t m_mux_data; - uint8_t m_ledant; - uint8_t m_player; - uint8_t m_stat_a; + uint8_t m_psg_pa = 0; + uint8_t m_psg_pb = 0; + uint8_t m_mux_data = 0; + uint8_t m_ledant = 0; + uint8_t m_player = 0; + uint8_t m_stat_a = 0; output_finder<84> m_lamps; }; diff --git a/src/mame/drivers/rex6000.cpp b/src/mame/drivers/rex6000.cpp index acf8a15ae3e..510860aa2bb 100644 --- a/src/mame/drivers/rex6000.cpp +++ b/src/mame/drivers/rex6000.cpp @@ -168,7 +168,7 @@ public: private: int oz_wzd_extract_tag(const std::vector &data, const char *tag, char *dest_buf); - uint16_t m_kb_mask; + uint16_t m_kb_mask = 0; }; diff --git a/src/mame/drivers/rgum.cpp b/src/mame/drivers/rgum.cpp index f526d075ef9..9f59b0c292e 100644 --- a/src/mame/drivers/rgum.cpp +++ b/src/mame/drivers/rgum.cpp @@ -63,9 +63,9 @@ private: required_device m_upd; required_device m_gfxdecode; required_device m_palette; - uint8_t m_hbeat; - bool m_aysnd_data_next; - bool m_aysnd_toggle_enabled; + uint8_t m_hbeat = 0; + bool m_aysnd_data_next = false; + bool m_aysnd_toggle_enabled = false; void aysnd_2000_w(uint8_t data); void aysnd_2002_w(uint8_t data); diff --git a/src/mame/drivers/riscpc.cpp b/src/mame/drivers/riscpc.cpp index bb74dc4fd98..e09a9348165 100644 --- a/src/mame/drivers/riscpc.cpp +++ b/src/mame/drivers/riscpc.cpp @@ -66,7 +66,7 @@ private: void a7000_map(address_map &map); void riscpc_map(address_map &map); - bool m_i2cmem_clock; + bool m_i2cmem_clock = false; DECLARE_READ_LINE_MEMBER(iocr_od0_r); DECLARE_READ_LINE_MEMBER(iocr_od1_r); DECLARE_WRITE_LINE_MEMBER(iocr_od0_w); diff --git a/src/mame/drivers/rmhaihai.cpp b/src/mame/drivers/rmhaihai.cpp index 4928f92d61a..471ca6ae24f 100644 --- a/src/mame/drivers/rmhaihai.cpp +++ b/src/mame/drivers/rmhaihai.cpp @@ -82,9 +82,9 @@ protected: required_ioport_array<2> m_key; - tilemap_t *m_bg_tilemap; - uint8_t m_keyboard_cmd; - uint8_t m_gfxbank; + tilemap_t *m_bg_tilemap = nullptr; + uint8_t m_keyboard_cmd = 0; + uint8_t m_gfxbank = 0; }; diff --git a/src/mame/drivers/roland_d10.cpp b/src/mame/drivers/roland_d10.cpp index 3df347a0777..8aadbcff775 100644 --- a/src/mame/drivers/roland_d10.cpp +++ b/src/mame/drivers/roland_d10.cpp @@ -93,11 +93,11 @@ private: void d110_map(address_map &map); void d110_bank_map(address_map &map); - uint8_t m_lcd_data_buffer[256]; - int m_lcd_data_buffer_pos; - uint8_t m_midi; - int m_midi_pos; - uint8_t m_port0; + uint8_t m_lcd_data_buffer[256]{}; + int m_lcd_data_buffer_pos = 0; + uint8_t m_midi = 0; + int m_midi_pos = 0; + uint8_t m_port0 = 0; required_device m_bank; required_device m_rams; required_device m_memcs; diff --git a/src/mame/drivers/roland_mt32.cpp b/src/mame/drivers/roland_mt32.cpp index 112b9e9e496..e08e7e94f03 100644 --- a/src/mame/drivers/roland_mt32.cpp +++ b/src/mame/drivers/roland_mt32.cpp @@ -224,11 +224,11 @@ private: void mt32_map(address_map &map); - uint8_t lcd_data_buffer[256]; - int lcd_data_buffer_pos; - uint8_t midi; - int midi_pos; - uint8_t port0; + uint8_t lcd_data_buffer[256]{}; + int lcd_data_buffer_pos = 0; + uint8_t midi = 0; + int midi_pos = 0; + uint8_t port0 = 0; }; mt32_state::mt32_state(const machine_config &mconfig, device_type type, const char *tag) : diff --git a/src/mame/drivers/rollext.cpp b/src/mame/drivers/rollext.cpp index 14e16e77295..2946ac217c3 100644 --- a/src/mame/drivers/rollext.cpp +++ b/src/mame/drivers/rollext.cpp @@ -183,7 +183,7 @@ private: int m_fb_current; - uint8_t *m_texture_ram; + uint8_t *m_texture_ram = nullptr; }; template diff --git a/src/mame/drivers/roul.cpp b/src/mame/drivers/roul.cpp index 4bee2a01fbc..6685e731076 100644 --- a/src/mame/drivers/roul.cpp +++ b/src/mame/drivers/roul.cpp @@ -112,7 +112,7 @@ private: uint8_t m_reg[0x10]; std::unique_ptr m_videobuf; - uint8_t m_lamp_old; + uint8_t m_lamp_old = 0; }; diff --git a/src/mame/drivers/route16.cpp b/src/mame/drivers/route16.cpp index b2f00a4ff1c..36f556df04e 100644 --- a/src/mame/drivers/route16.cpp +++ b/src/mame/drivers/route16.cpp @@ -191,7 +191,7 @@ private: required_device m_sn; required_device m_dac; - int m_speakres_vrx; + int m_speakres_vrx = 0; }; diff --git a/src/mame/drivers/rtpc.cpp b/src/mame/drivers/rtpc.cpp index 4d04c90107f..4e68efcf037 100644 --- a/src/mame/drivers/rtpc.cpp +++ b/src/mame/drivers/rtpc.cpp @@ -195,19 +195,19 @@ protected: required_region_ptr m_ipl; - u8 m_mcu_p0; - u8 m_mcu_p1; - u8 m_mcu_p2; - u8 m_mcu_p3; + u8 m_mcu_p0 = 0; + u8 m_mcu_p1 = 0; + u8 m_mcu_p2 = 0; + u8 m_mcu_p3 = 0; - u8 m_ppi_pb; - u8 m_mcu_uart; + u8 m_ppi_pb = 0; + u8 m_mcu_uart = 0; - u8 m_ch8er; // dma channel 8 enable register - u8 m_crra; // component reset register a - u8 m_crrb; // component reset register b + u8 m_ch8er = 0; // dma channel 8 enable register + u8 m_crra = 0; // component reset register a + u8 m_crrb = 0; // component reset register b - u8 m_ext[2]; // external serial registers + u8 m_ext[2]{}; // external serial registers }; static double const speaker_levels[4] = { 0.0, 1.0 / 3.0, 2.0 / 3.0, 1.0 }; diff --git a/src/mame/drivers/runaway.cpp b/src/mame/drivers/runaway.cpp index 4dbedd6cfa6..2c56db77c41 100644 --- a/src/mame/drivers/runaway.cpp +++ b/src/mame/drivers/runaway.cpp @@ -101,7 +101,7 @@ private: required_device m_earom; - uint8_t m_tile_bank; + uint8_t m_tile_bank = 0; };