summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/includes/tagteam.h6
-rw-r--r--src/mame/includes/taito_b.h2
-rw-r--r--src/mame/includes/taito_l.h2
-rw-r--r--src/mame/includes/taito_z.h10
-rw-r--r--src/mame/includes/taitojc.h22
-rw-r--r--src/mame/includes/tank8.h6
-rw-r--r--src/mame/includes/tankbust.h12
-rw-r--r--src/mame/includes/tatsumi.h20
-rw-r--r--src/mame/includes/tbowl.h20
-rw-r--r--src/mame/includes/tceptor.h22
-rw-r--r--src/mame/includes/tecmo16.h22
-rw-r--r--src/mame/includes/tehkanwc.h20
-rw-r--r--src/mame/includes/terracre.h8
-rw-r--r--src/mame/includes/tetrisp2.h34
-rw-r--r--src/mame/includes/thepit.h18
-rw-r--r--src/mame/includes/thief.h8
-rw-r--r--src/mame/includes/thunderj.h2
-rw-r--r--src/mame/includes/ti85.h38
-rw-r--r--src/mame/includes/tiamc1.h26
-rw-r--r--src/mame/includes/tigeroad.h6
-rw-r--r--src/mame/includes/timelimt.h12
-rw-r--r--src/mame/includes/timeplt.h6
-rw-r--r--src/mame/includes/timex.h4
-rw-r--r--src/mame/includes/tmc1800.h14
-rw-r--r--src/mame/includes/tmnt.h46
-rw-r--r--src/mame/includes/toaplan1.h34
-rw-r--r--src/mame/includes/toki.h10
-rw-r--r--src/mame/includes/toobin.h4
-rw-r--r--src/mame/includes/tp84.h12
-rw-r--r--src/mame/includes/trackfld.h18
-rw-r--r--src/mame/includes/tranz330.h2
-rw-r--r--src/mame/includes/travrusa.h4
-rw-r--r--src/mame/includes/triplhnt.h16
-rw-r--r--src/mame/includes/trs80m2.h2
-rw-r--r--src/mame/includes/truco.h2
-rw-r--r--src/mame/includes/trucocl.h10
-rw-r--r--src/mame/includes/tsamurai.h26
-rw-r--r--src/mame/includes/tsconf.h18
-rw-r--r--src/mame/includes/tubep.h50
-rw-r--r--src/mame/includes/tumbleb.h20
-rw-r--r--src/mame/includes/tunhunt.h48
-rw-r--r--src/mame/includes/turbo.h42
-rw-r--r--src/mame/includes/turrett.h52
-rw-r--r--src/mame/includes/twincobr.h48
-rw-r--r--src/mame/includes/tx1.h50
-rw-r--r--src/mame/includes/ultratnk.h8
46 files changed, 431 insertions, 431 deletions
diff --git a/src/mame/includes/tagteam.h b/src/mame/includes/tagteam.h
index 6afdca4ba08..163a5a0af5c 100644
--- a/src/mame/includes/tagteam.h
+++ b/src/mame/includes/tagteam.h
@@ -41,9 +41,9 @@ private:
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_colorram;
- int m_palettebank;
- tilemap_t *m_bg_tilemap;
- uint8_t m_sound_nmi_mask;
+ int m_palettebank = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ uint8_t m_sound_nmi_mask = 0;
void irq_clear_w(uint8_t data);
void sound_nmi_mask_w(uint8_t data);
diff --git a/src/mame/includes/taito_b.h b/src/mame/includes/taito_b.h
index 35dfd29c8a2..1a2cf6fa7ef 100644
--- a/src/mame/includes/taito_b.h
+++ b/src/mame/includes/taito_b.h
@@ -144,7 +144,7 @@ protected:
private:
std::unique_ptr<bitmap_ind16> m_realpunc_bitmap;
- uint16_t m_realpunc_video_ctrl;
+ uint16_t m_realpunc_video_ctrl = 0;
};
class hitice_state : public taitob_state
diff --git a/src/mame/includes/taito_l.h b/src/mame/includes/taito_l.h
index f770ffc4019..f592b09f071 100644
--- a/src/mame/includes/taito_l.h
+++ b/src/mame/includes/taito_l.h
@@ -220,7 +220,7 @@ private:
void horshoes_tile_cb(u32 &code);
void bankg_w(u8 data);
- int m_horshoes_gfxbank;
+ int m_horshoes_gfxbank = 0;
void horshoes_map(address_map &map);
};
diff --git a/src/mame/includes/taito_z.h b/src/mame/includes/taito_z.h
index 9e8be273f4f..c8ec0b28a34 100644
--- a/src/mame/includes/taito_z.h
+++ b/src/mame/includes/taito_z.h
@@ -175,9 +175,9 @@ private:
output_finder<2> m_shutter_out;
- int m_road_palbank;
- int m_shutter_toggle;
- u8 m_shutter_control;
+ int m_road_palbank = 0;
+ int m_shutter_toggle = 0;
+ u8 m_shutter_control = 0;
};
@@ -248,8 +248,8 @@ private:
void racingb_map(address_map &map);
void racingb_cpub_map(address_map &map);
- int m_sci_spriteframe;
- s32 m_sci_int6;
+ int m_sci_spriteframe = 0;
+ s32 m_sci_int6 = 0;
};
diff --git a/src/mame/includes/taitojc.h b/src/mame/includes/taitojc.h
index 54455ce958b..0aa4700caf5 100644
--- a/src/mame/includes/taitojc.h
+++ b/src/mame/includes/taitojc.h
@@ -68,28 +68,28 @@ private:
output_finder<8> m_lamps;
output_finder<5> m_counters;
- uint32_t m_dsp_rom_pos;
+ uint32_t m_dsp_rom_pos = 0;
- int m_first_dsp_reset;
+ int m_first_dsp_reset = 0;
int16_t m_viewport_data[3];
int16_t m_projection_data[3];
int16_t m_intersection_data[3];
- int m_gfx_index;
+ int m_gfx_index = 0;
std::unique_ptr<uint32_t[]> m_char_ram;
std::unique_ptr<uint32_t[]> m_tile_ram;
- tilemap_t *m_tilemap;
+ tilemap_t *m_tilemap = nullptr;
- uint8_t m_mcu_comm_main;
- uint8_t m_mcu_comm_hc11;
- uint8_t m_mcu_data_main;
- uint8_t m_mcu_data_hc11;
+ uint8_t m_mcu_comm_main = 0;
+ uint8_t m_mcu_comm_hc11 = 0;
+ uint8_t m_mcu_data_main = 0;
+ uint8_t m_mcu_data_hc11 = 0;
- uint8_t m_has_dsp_hack;
+ uint8_t m_has_dsp_hack = 0;
- int m_speed_meter;
- int m_brake_meter;
+ int m_speed_meter = 0;
+ int m_brake_meter = 0;
void coin_control_w(uint8_t data);
diff --git a/src/mame/includes/tank8.h b/src/mame/includes/tank8.h
index 6de7591faa7..ebacd73c172 100644
--- a/src/mame/includes/tank8.h
+++ b/src/mame/includes/tank8.h
@@ -100,12 +100,12 @@ private:
required_shared_ptr<uint8_t> m_pos_d_ram;
required_shared_ptr<uint8_t> m_team;
- int m_collision_index;
- tilemap_t *m_tilemap;
+ int m_collision_index = 0;
+ tilemap_t *m_tilemap = nullptr;
bitmap_ind16 m_helper1;
bitmap_ind16 m_helper2;
bitmap_ind16 m_helper3;
- emu_timer *m_collision_timer;
+ emu_timer *m_collision_timer = nullptr;
};
/*----------- defined in audio/tank8.c -----------*/
diff --git a/src/mame/includes/tankbust.h b/src/mame/includes/tankbust.h
index ea13697dc32..d78b3305f31 100644
--- a/src/mame/includes/tankbust.h
+++ b/src/mame/includes/tankbust.h
@@ -41,15 +41,15 @@ private:
required_shared_ptr<uint8_t> m_colorram;
required_shared_ptr<uint8_t> m_spriteram;
- int m_latch;
- uint32_t m_timer1;
+ int m_latch = 0;
+ uint32_t m_timer1 = 0;
int m_e0xx_data[8];
- uint8_t m_variable_data;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_txt_tilemap;
+ uint8_t m_variable_data = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_txt_tilemap = nullptr;
uint8_t m_xscroll[2];
uint8_t m_yscroll[2];
- uint8_t m_irq_mask;
+ uint8_t m_irq_mask = 0;
void soundlatch_w(uint8_t data);
void e0xx_w(offs_t offset, uint8_t data);
diff --git a/src/mame/includes/tatsumi.h b/src/mame/includes/tatsumi.h
index c47c5532b4d..15fd6230212 100644
--- a/src/mame/includes/tatsumi.h
+++ b/src/mame/includes/tatsumi.h
@@ -244,16 +244,16 @@ private:
required_region_ptr<uint8_t> m_cyclwarr_tileclut;
std::vector<uint8_t> m_mask;
- tilemap_t *m_layer[4];
-
- uint16_t m_video_config[4];
- uint16_t m_mixing_control;
- uint16_t m_bigfight_a40000[2];
- uint16_t m_bigfight_bank;
- uint16_t m_bigfight_last_bank;
- uint16_t m_road_color_bank, m_prev_road_bank;
- uint16_t m_layer_page_size[4];
- bool m_layer1_can_be_road;
+ tilemap_t *m_layer[4]{};
+
+ uint16_t m_video_config[4]{};
+ uint16_t m_mixing_control = 0;
+ uint16_t m_bigfight_a40000[2]{};
+ uint16_t m_bigfight_bank = 0;
+ uint16_t m_bigfight_last_bank = 0;
+ uint16_t m_road_color_bank = 0, m_prev_road_bank = 0;
+ uint16_t m_layer_page_size[4]{};
+ bool m_layer1_can_be_road = false;
std::unique_ptr<uint8_t[]> m_decoded_gfx;
void tile_expand();
diff --git a/src/mame/includes/tbowl.h b/src/mame/includes/tbowl.h
index 7f10d2f9f09..1165ad63f91 100644
--- a/src/mame/includes/tbowl.h
+++ b/src/mame/includes/tbowl.h
@@ -52,16 +52,16 @@ private:
required_shared_ptr<uint8_t> m_bg2videoram;
required_shared_ptr<uint8_t> m_spriteram;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_bg2_tilemap;
- uint16_t m_xscroll;
- uint16_t m_yscroll;
- uint16_t m_bg2xscroll;
- uint16_t m_bg2yscroll;
- int m_adpcm_pos[2];
- int m_adpcm_end[2];
- int m_adpcm_data[2];
+ tilemap_t *m_tx_tilemap = nullptr;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_bg2_tilemap = nullptr;
+ uint16_t m_xscroll = 0;
+ uint16_t m_yscroll = 0;
+ uint16_t m_bg2xscroll = 0;
+ uint16_t m_bg2yscroll = 0;
+ int m_adpcm_pos[2]{};
+ int m_adpcm_end[2]{};
+ int m_adpcm_data[2]{};
void coincounter_w(uint8_t data);
void boardb_bankswitch_w(uint8_t data);
diff --git a/src/mame/includes/tceptor.h b/src/mame/includes/tceptor.h
index 782ca290bef..7f4007b7663 100644
--- a/src/mame/includes/tceptor.h
+++ b/src/mame/includes/tceptor.h
@@ -37,9 +37,9 @@ public:
void tceptor(machine_config &config);
private:
- uint8_t m_m6809_irq_enable;
- uint8_t m_m68k_irq_enable;
- uint8_t m_mcu_irq_enable;
+ uint8_t m_m6809_irq_enable = 0;
+ uint8_t m_m68k_irq_enable = 0;
+ uint8_t m_mcu_irq_enable = 0;
required_device<cpu_device> m_maincpu;
required_device_array<m65c02_device, 2> m_audiocpu;
required_device<cpu_device> m_subcpu;
@@ -50,18 +50,18 @@ private:
required_shared_ptr<uint8_t> m_bg_ram;
required_shared_ptr<uint8_t> m_m68k_shared_ram;
required_shared_ptr<uint16_t> m_sprite_ram;
- int m_sprite16;
- int m_sprite32;
- int m_bg;
- tilemap_t *m_tx_tilemap;
- tilemap_t *m_bg_tilemap[2];
- int32_t m_bg_scroll_x[2];
- int32_t m_bg_scroll_y[2];
+ int m_sprite16 = 0;
+ int m_sprite32 = 0;
+ int m_bg = 0;
+ tilemap_t *m_tx_tilemap = nullptr;
+ tilemap_t *m_bg_tilemap[2]{};
+ int32_t m_bg_scroll_x[2]{};
+ int32_t m_bg_scroll_y[2]{};
bitmap_ind16 m_temp_bitmap;
std::unique_ptr<uint16_t[]> m_sprite_ram_buffered;
std::unique_ptr<uint8_t[]> m_decoded_16;
std::unique_ptr<uint8_t[]> m_decoded_32;
- int m_is_mask_spr[1024/16];
+ int m_is_mask_spr[1024/16]{};
uint8_t m68k_shared_r(offs_t offset);
void m68k_shared_w(offs_t offset, uint8_t data);
void m6809_irq_enable_w(uint8_t data);
diff --git a/src/mame/includes/tecmo16.h b/src/mame/includes/tecmo16.h
index 6a534452cd7..96df8017f10 100644
--- a/src/mame/includes/tecmo16.h
+++ b/src/mame/includes/tecmo16.h
@@ -52,21 +52,21 @@ private:
required_shared_ptr<uint16_t> m_charram;
required_device<buffered_spriteram16_device> m_spriteram;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_tx_tilemap;
+ tilemap_t *m_fg_tilemap = nullptr;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_tx_tilemap = nullptr;
bitmap_ind16 m_sprite_bitmap;
bitmap_ind16 m_tile_bitmap_bg;
bitmap_ind16 m_tile_bitmap_fg;
bitmap_ind16 m_tile_bitmap_tx;
- int m_flipscreen;
- int m_game_is_riot;
- uint16_t m_scroll_x_w;
- uint16_t m_scroll_y_w;
- uint16_t m_scroll2_x_w;
- uint16_t m_scroll2_y_w;
- uint16_t m_scroll_char_x_w;
- uint16_t m_scroll_char_y_w;
+ int m_flipscreen = 0;
+ int m_game_is_riot = 0;
+ uint16_t m_scroll_x_w = 0;
+ uint16_t m_scroll_y_w = 0;
+ uint16_t m_scroll2_x_w = 0;
+ uint16_t m_scroll2_y_w = 0;
+ uint16_t m_scroll_char_x_w = 0;
+ uint16_t m_scroll_char_y_w = 0;
void videoram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
void colorram_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
diff --git a/src/mame/includes/tehkanwc.h b/src/mame/includes/tehkanwc.h
index 207f69b43d5..dcb82141610 100644
--- a/src/mame/includes/tehkanwc.h
+++ b/src/mame/includes/tehkanwc.h
@@ -63,16 +63,16 @@ private:
output_finder<2> m_digits;
- int m_track0[2];
- int m_track1[2];
- int m_msm_data_offs;
- int m_toggle;
- uint8_t m_scroll_x[2];
- uint8_t m_led0;
- uint8_t m_led1;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- emu_timer *m_reset_timer;
+ int m_track0[2]{};
+ int m_track1[2]{};
+ int m_msm_data_offs = 0;
+ int m_toggle = 0;
+ uint8_t m_scroll_x[2]{};
+ uint8_t m_led0 = 0;
+ uint8_t m_led1 = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
+ emu_timer *m_reset_timer = nullptr;
void sub_cpu_halt_w(uint8_t data);
uint8_t track_0_r(offs_t offset);
diff --git a/src/mame/includes/terracre.h b/src/mame/includes/terracre.h
index c20f242cfe8..4c42099aff9 100644
--- a/src/mame/includes/terracre.h
+++ b/src/mame/includes/terracre.h
@@ -44,10 +44,10 @@ private:
required_shared_ptr<uint16_t> m_bg_videoram;
required_shared_ptr<uint16_t> m_fg_videoram;
- uint16_t m_xscroll;
- uint16_t m_yscroll;
- tilemap_t *m_background;
- tilemap_t *m_foreground;
+ uint16_t m_xscroll = 0;
+ uint16_t m_yscroll = 0;
+ tilemap_t *m_background = nullptr;
+ tilemap_t *m_foreground = nullptr;
void amazon_sound_w(uint16_t data);
uint8_t soundlatch_clear_r();
void amazon_background_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
diff --git a/src/mame/includes/tetrisp2.h b/src/mame/includes/tetrisp2.h
index c5afba264e4..c363a9c17c4 100644
--- a/src/mame/includes/tetrisp2.h
+++ b/src/mame/includes/tetrisp2.h
@@ -112,16 +112,16 @@ protected:
required_shared_ptr<u16> m_paletteram;
output_finder<45> m_leds;
- u16 m_rockn_protectdata;
- u16 m_rockn_adpcmbank;
- u16 m_rockn_soundvolume;
- int m_rot_ofsx, m_rot_ofsy;
- int m_bank_lo;
- int m_bank_hi;
-
- tilemap_t *m_tilemap_bg;
- tilemap_t *m_tilemap_fg;
- tilemap_t *m_tilemap_rot;
+ u16 m_rockn_protectdata = 0;
+ u16 m_rockn_adpcmbank = 0;
+ u16 m_rockn_soundvolume = 0;
+ int m_rot_ofsx, m_rot_ofsy = 0;
+ int m_bank_lo = 0;
+ int m_bank_hi = 0;
+
+ tilemap_t *m_tilemap_bg = nullptr;
+ tilemap_t *m_tilemap_fg = nullptr;
+ tilemap_t *m_tilemap_rot = nullptr;
};
class rocknms_state : public tetrisp2_state
@@ -182,12 +182,12 @@ private:
TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_fg);
TILE_GET_INFO_MEMBER(get_tile_info_rocknms_sub_rot);
- u16 m_rocknms_main2sub;
- u16 m_rocknms_sub2main;
+ u16 m_rocknms_main2sub = 0;
+ u16 m_rocknms_sub2main = 0;
- tilemap_t *m_tilemap_sub_bg;
- tilemap_t *m_tilemap_sub_fg;
- tilemap_t *m_tilemap_sub_rot;
+ tilemap_t *m_tilemap_sub_bg = nullptr;
+ tilemap_t *m_tilemap_sub_fg = nullptr;
+ tilemap_t *m_tilemap_sub_rot = nullptr;
DECLARE_WRITE_LINE_MEMBER(sub_flipscreen_w);
DECLARE_WRITE_LINE_MEMBER(sub_timer_irq_w);
@@ -225,8 +225,8 @@ public:
private:
u16 stepstag_coins_r();
- u16 vj_upload_idx;
- bool vj_upload_fini;
+ u16 vj_upload_idx = 0;
+ bool vj_upload_fini = false;
void stepstag_b00000_w(u16 data);
void stepstag_b20000_w(offs_t offset, u16 data, u16 mem_mask = ~0);
void stepstag_main2pc_w(u16 data);
diff --git a/src/mame/includes/thepit.h b/src/mame/includes/thepit.h
index 28712eba70b..4b2eb712c8d 100644
--- a/src/mame/includes/thepit.h
+++ b/src/mame/includes/thepit.h
@@ -49,17 +49,17 @@ private:
required_shared_ptr<uint8_t> m_attributesram;
required_shared_ptr<uint8_t> m_spriteram;
- uint8_t m_graphics_bank;
- uint8_t m_flip_x;
- uint8_t m_flip_y;
- tilemap_t *m_solid_tilemap;
- tilemap_t *m_tilemap;
+ uint8_t m_graphics_bank = 0;
+ uint8_t m_flip_x = 0;
+ uint8_t m_flip_y = 0;
+ tilemap_t *m_solid_tilemap = nullptr;
+ tilemap_t *m_tilemap = nullptr;
std::unique_ptr<uint8_t[]> m_dummy_tile;
- uint8_t m_nmi_mask;
+ uint8_t m_nmi_mask = 0;
- int m_question_address;
- int m_question_rom;
- int m_remap_address[16];
+ int m_question_address = 0;
+ int m_question_rom = 0;
+ int m_remap_address[16]{};
DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
DECLARE_WRITE_LINE_MEMBER(sound_enable_w);
diff --git a/src/mame/includes/thief.h b/src/mame/includes/thief.h
index 94ca9754e4b..7ebb072753d 100644
--- a/src/mame/includes/thief.h
+++ b/src/mame/includes/thief.h
@@ -33,10 +33,10 @@ public:
private:
std::unique_ptr<uint8_t[]> m_videoram;
- uint8_t m_input_select;
- uint8_t m_read_mask;
- uint8_t m_write_mask;
- uint8_t m_video_control;
+ uint8_t m_input_select = 0;
+ uint8_t m_read_mask = 0;
+ uint8_t m_write_mask = 0;
+ uint8_t m_video_control = 0;
coprocessor_t m_coprocessor;
void thief_input_select_w(uint8_t data);
uint8_t thief_io_r();
diff --git a/src/mame/includes/thunderj.h b/src/mame/includes/thunderj.h
index d7a04b93174..2cc279117eb 100644
--- a/src/mame/includes/thunderj.h
+++ b/src/mame/includes/thunderj.h
@@ -51,7 +51,7 @@ private:
required_device<cpu_device> m_maincpu;
required_device<cpu_device> m_extra;
- uint8_t m_alpha_tile_bank;
+ uint8_t m_alpha_tile_bank = 0;
static const atari_motion_objects_config s_mob_config;
};
diff --git a/src/mame/includes/ti85.h b/src/mame/includes/ti85.h
index c176abe0737..90fe311b34b 100644
--- a/src/mame/includes/ti85.h
+++ b/src/mame/includes/ti85.h
@@ -107,24 +107,24 @@ private:
uint8_t m_power_mode;
uint8_t m_cpu_speed;
uint8_t m_keypad_mask;
- uint8_t m_video_buffer_width;
- uint8_t m_interrupt_speed;
- uint8_t m_port4_bit0;
- uint8_t m_ti81_port_7_data;
+ uint8_t m_video_buffer_width = 0;
+ uint8_t m_interrupt_speed = 0;
+ uint8_t m_port4_bit0 = 0;
+ uint8_t m_ti81_port_7_data = 0;
std::unique_ptr<uint8_t[]> m_ti8x_ram;
- uint8_t m_PCR;
- uint8_t m_ti8x_port2;
- uint8_t m_ti83p_port4;
- uint8_t m_ti83pse_port21;
- int m_ti_video_memory_size;
- int m_ti_screen_x_size;
- int m_ti_screen_y_size;
- int m_ti_number_of_frames;
+ uint8_t m_PCR = 0;
+ uint8_t m_ti8x_port2 = 0;
+ uint8_t m_ti83p_port4 = 0;
+ uint8_t m_ti83pse_port21 = 0;
+ int m_ti_video_memory_size = 0;
+ int m_ti_screen_x_size = 0;
+ int m_ti_screen_y_size = 0;
+ int m_ti_number_of_frames = 0;
std::unique_ptr<uint8_t[]> m_frames;
- uint8_t * m_bios;
- emu_timer *m_ti85_timer;
- emu_timer *m_ti83_1st_timer;
- emu_timer *m_ti83_2nd_timer;
+ uint8_t * m_bios = nullptr;
+ emu_timer *m_ti85_timer = nullptr;
+ emu_timer *m_ti83_1st_timer = nullptr;
+ emu_timer *m_ti83_2nd_timer = nullptr;
uint8_t ti85_port_0000_r();
uint8_t ti8x_keypad_r();
uint8_t ti85_port_0006_r();
@@ -200,9 +200,9 @@ private:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
void ti83pse_count(uint8_t timer, uint8_t data);
- emu_timer *m_crystal_timer1;
- emu_timer *m_crystal_timer2;
- emu_timer *m_crystal_timer3;
+ emu_timer *m_crystal_timer1 = nullptr;
+ emu_timer *m_crystal_timer2 = nullptr;
+ emu_timer *m_crystal_timer3 = nullptr;
uint8_t ti83pse_ctimer1_setup_r();
void ti83pse_ctimer1_setup_w(uint8_t data);
uint8_t ti83pse_ctimer1_loop_r();
diff --git a/src/mame/includes/tiamc1.h b/src/mame/includes/tiamc1.h
index 6cf46869505..c034d97f747 100644
--- a/src/mame/includes/tiamc1.h
+++ b/src/mame/includes/tiamc1.h
@@ -30,19 +30,19 @@ protected:
private:
std::unique_ptr<uint8_t[]> m_videoram;
- uint8_t *m_tileram;
- uint8_t *m_charram;
- uint8_t *m_spriteram_x;
- uint8_t *m_spriteram_y;
- uint8_t *m_spriteram_a;
- uint8_t *m_spriteram_n;
- uint8_t *m_paletteram;
- uint8_t m_layers_ctrl;
- uint8_t m_bg_vshift;
- uint8_t m_bg_hshift;
- uint8_t m_bg_bplctrl;
- tilemap_t *m_bg_tilemap1;
- tilemap_t *m_bg_tilemap2;
+ uint8_t *m_tileram = nullptr;
+ uint8_t *m_charram = nullptr;
+ uint8_t *m_spriteram_x = nullptr;
+ uint8_t *m_spriteram_y = nullptr;
+ uint8_t *m_spriteram_a = nullptr;
+ uint8_t *m_spriteram_n = nullptr;
+ uint8_t *m_paletteram = nullptr;
+ uint8_t m_layers_ctrl =0;
+ uint8_t m_bg_vshift = 0;
+ uint8_t m_bg_hshift = 0;
+ uint8_t m_bg_bplctrl = 0;
+ tilemap_t *m_bg_tilemap1 = nullptr;
+ tilemap_t *m_bg_tilemap2 = nullptr;
std::unique_ptr<rgb_t[]> m_palette_ptr;
void tiamc1_control_w(uint8_t data);
void tiamc1_videoram_w(offs_t offset, uint8_t data);
diff --git a/src/mame/includes/tigeroad.h b/src/mame/includes/tigeroad.h
index 4cd76cae190..bb5123031f4 100644
--- a/src/mame/includes/tigeroad.h
+++ b/src/mame/includes/tigeroad.h
@@ -60,9 +60,9 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
required_device<tigeroad_spr_device> m_spritegen;
- u8 m_bgcharbank;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
+ u8 m_bgcharbank = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
void comad_sound_io_map(address_map &map);
void comad_sound_map(address_map &map);
diff --git a/src/mame/includes/timelimt.h b/src/mame/includes/timelimt.h
index 1fe70c0d0f4..f8125bbfa3f 100644
--- a/src/mame/includes/timelimt.h
+++ b/src/mame/includes/timelimt.h
@@ -37,12 +37,12 @@ protected:
required_shared_ptr<uint8_t> m_bg_videoram;
required_shared_ptr<uint8_t> m_spriteram;
- bool m_nmi_enabled;
- bool m_nmi_state;
- int m_scrollx;
- int m_scrolly;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
+ bool m_nmi_enabled = false;
+ bool m_nmi_state = false;
+ int m_scrollx = 0;
+ int m_scrolly = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
DECLARE_WRITE_LINE_MEMBER(nmi_enable_w);
DECLARE_WRITE_LINE_MEMBER(coin_lockout_w);
diff --git a/src/mame/includes/timeplt.h b/src/mame/includes/timeplt.h
index c7daa3b4f0e..4eeba6bce82 100644
--- a/src/mame/includes/timeplt.h
+++ b/src/mame/includes/timeplt.h
@@ -55,11 +55,11 @@ private:
required_shared_ptr<uint8_t> m_spriteram2;
/* video-related */
- tilemap_t *m_bg_tilemap;
+ tilemap_t *m_bg_tilemap = nullptr;
/* misc */
- uint8_t m_nmi_enable;
- bool m_video_enable;
+ uint8_t m_nmi_enable = 0;
+ bool m_video_enable = false;
/* common */
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
diff --git a/src/mame/includes/timex.h b/src/mame/includes/timex.h
index dc8d25d7a4e..ae7342b01ec 100644
--- a/src/mame/includes/timex.h
+++ b/src/mame/includes/timex.h
@@ -88,8 +88,8 @@ private:
void port_ff_w(offs_t offset, u8 data);
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(cart_load);
- int m_dock_cart_type, m_ram_chunks;
- memory_region *m_dock_crt;
+ int m_dock_cart_type = 0, m_ram_chunks = 0;
+ memory_region *m_dock_crt = nullptr;
void ts2068_io(address_map &map);
void ts2068_mem(address_map &map);
diff --git a/src/mame/includes/tmc1800.h b/src/mame/includes/tmc1800.h
index a9e43909d63..66f898e77dd 100644
--- a/src/mame/includes/tmc1800.h
+++ b/src/mame/includes/tmc1800.h
@@ -81,7 +81,7 @@ protected:
required_device<cdp1861_device> m_vdc;
/* keyboard state */
- int m_keylatch; /* key latch */
+ int m_keylatch = 0;
};
class osc1000b_state : public tmc1800_base_state
@@ -110,7 +110,7 @@ protected:
virtual void machine_reset() override;
/* keyboard state */
- int m_keylatch;
+ int m_keylatch = 0;
};
class tmc2000_state : public tmc1800_base_state
@@ -153,14 +153,14 @@ protected:
output_finder<> m_led;
// memory
- int m_rac;
- int m_roc;
+ int m_rac = 0;
+ int m_roc = 0;
/* video state */
- uint8_t m_color;
+ uint8_t m_color = 0;
/* keyboard state */
- int m_keylatch;
+ int m_keylatch = 0;
};
class nano_state : public tmc1800_base_state
@@ -205,7 +205,7 @@ protected:
required_ioport m_monitor;
output_finder<> m_led;
/* keyboard state */
- int m_keylatch; /* key latch */
+ int m_keylatch = 0;
};
#endif
diff --git a/src/mame/includes/tmnt.h b/src/mame/includes/tmnt.h
index 81a1ba5ee3b..014f18eeab6 100644
--- a/src/mame/includes/tmnt.h
+++ b/src/mame/includes/tmnt.h
@@ -78,24 +78,24 @@ protected:
optional_shared_ptr<uint16_t> m_tmnt2_1c0800;
/* video-related */
- int m_layer_colorbase[3];
- int m_sprite_colorbase;
- int m_layerpri[3];
- int m_sorted_layer[3]; // this might not be necessary, but tmnt2 uses it in a strange way...
-
- tilemap_t *m_roz_tilemap;
- int m_glfgreat_pixel;
- int m_blswhstl_rombank;
- int m_tmnt_priorityflag;
- int m_lastdim;
- int m_lasten;
- int m_dim_c;
- int m_dim_v; /* lgtnfght, ssriders, tmnt2 only */
+ int m_layer_colorbase[3]{};
+ int m_sprite_colorbase = 0;
+ int m_layerpri[3]{};
+ int m_sorted_layer[3]{}; // this might not be necessary, but tmnt2 uses it in a strange way...
+
+ tilemap_t *m_roz_tilemap = nullptr;
+ int m_glfgreat_pixel = 0;
+ int m_blswhstl_rombank = 0;
+ int m_tmnt_priorityflag = 0;
+ int m_lastdim = 0;
+ int m_lasten = 0;
+ int m_dim_c = 0;
+ int m_dim_v = 0; /* lgtnfght, ssriders, tmnt2 only */
/* misc */
- int m_tmnt_soundlatch;
- int m_toggle;
- int m_last;
+ int m_tmnt_soundlatch = 0;
+ int m_toggle = 0;
+ int m_last = 0;
uint16_t m_cuebrick_nvram[0x400 * 0x20 / 2]; // 32k paged in a 1k window
/* devices */
@@ -118,7 +118,7 @@ protected:
/* memory buffers */
int16_t m_sampledata[0x40000];
- uint8_t m_irq5_mask;
+ uint8_t m_irq5_mask = 0;
uint16_t k052109_word_noA12_r(offs_t offset);
void k052109_word_noA12_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
void punkshot_k052109_word_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
@@ -233,10 +233,10 @@ private:
required_ioport_array<4> m_analog_controller;
- uint8_t m_controller_select;
- int m_roz_rom_bank;
- int m_roz_char_bank;
- int m_roz_rom_mode;
+ uint8_t m_controller_select = 0;
+ int m_roz_rom_bank = 0;
+ int m_roz_char_bank = 0;
+ int m_roz_rom_mode = 0;
};
class prmrsocr_state : public tmnt_state
@@ -265,8 +265,8 @@ private:
void prmrsocr_audio_map(address_map &map);
void prmrsocr_main_map(address_map &map);
- int m_sprite_bank;
- int m_roz_char_bank;
+ int m_sprite_bank = 0;
+ int m_roz_char_bank = 0;
};
#endif // MAME_INCLUDES_TMNT_H
diff --git a/src/mame/includes/toaplan1.h b/src/mame/includes/toaplan1.h
index c1092f814ef..aee5e554737 100644
--- a/src/mame/includes/toaplan1.h
+++ b/src/mame/includes/toaplan1.h
@@ -56,7 +56,7 @@ protected:
optional_ioport m_dswb_io;
optional_ioport m_tjump_io;
- u8 m_intenable;
+ u8 m_intenable = 0;
std::unique_ptr<u16[]> m_tilevram[4];
/*
@@ -74,21 +74,21 @@ protected:
s32 m_bcu_flipscreen; /* Tile controller flip flag */
s32 m_fcu_flipscreen; /* Sprite controller flip flag */
- s32 m_pf_voffs;
- s32 m_spriteram_offs;
+ s32 m_pf_voffs = 0;
+ s32 m_spriteram_offs = 0;
- s32 m_scrollx[4];
- s32 m_scrolly[4];
+ s32 m_scrollx[4]{};
+ s32 m_scrolly[4]{};
#ifdef MAME_DEBUG
- int m_display_pf[4];
- int m_displog;
+ int m_display_pf[4]{};
+ int m_displog = 0;
#endif
- s32 m_tiles_offsetx;
- s32 m_tiles_offsety;
+ s32 m_tiles_offsetx = 0;
+ s32 m_tiles_offsety = 0;
- tilemap_t *m_tilemap[4];
+ tilemap_t *m_tilemap[4]{};
void intenable_w(u8 data);
u8 shared_r(offs_t offset);
@@ -205,11 +205,11 @@ protected:
private:
/* Demon world */
- int m_dsp_on;
- int m_dsp_bio;
- int m_dsp_execute;
- u32 m_dsp_addr_w;
- u32 m_main_ram_seg;
+ int m_dsp_on = 0;
+ int m_dsp_bio = 0;
+ int m_dsp_execute = 0;
+ u32 m_dsp_addr_w = 0;
+ u32 m_main_ram_seg = 0;
void dsp_addrsel_w(u16 data);
u16 dsp_r();
@@ -241,8 +241,8 @@ protected:
private:
// Fire Shark sound
- u8 m_to_mcu;
- u8 m_cmdavailable;
+ u8 m_to_mcu = 0;
+ u8 m_cmdavailable = 0;
void mcu_w(u8 data);
u8 soundlatch_r();
diff --git a/src/mame/includes/toki.h b/src/mame/includes/toki.h
index a1feb033c4a..2d05f52e1d6 100644
--- a/src/mame/includes/toki.h
+++ b/src/mame/includes/toki.h
@@ -59,12 +59,12 @@ private:
required_shared_ptr<uint16_t> m_videoram;
required_shared_ptr<uint16_t> m_scrollram;
- int m_msm5205next;
- int m_toggle;
+ int m_msm5205next = 0;
+ int m_toggle = 0;
- tilemap_t *m_background_layer;
- tilemap_t *m_foreground_layer;
- tilemap_t *m_text_layer;
+ tilemap_t *m_background_layer = nullptr;
+ tilemap_t *m_foreground_layer = nullptr;
+ tilemap_t *m_text_layer = nullptr;
void tokib_soundcommand_w(uint16_t data);
uint16_t pip_r();
diff --git a/src/mame/includes/toobin.h b/src/mame/includes/toobin.h
index b8fb0bdcaac..861a5620ad2 100644
--- a/src/mame/includes/toobin.h
+++ b/src/mame/includes/toobin.h
@@ -72,10 +72,10 @@ private:
required_shared_ptr<uint16_t> m_xscroll;
required_shared_ptr<uint16_t> m_yscroll;
- double m_brightness;
+ double m_brightness = 0;
bitmap_ind16 m_pfbitmap;
- emu_timer *m_scanline_interrupt_timer;
+ emu_timer *m_scanline_interrupt_timer = nullptr;
static const atari_motion_objects_config s_mob_config;
};
diff --git a/src/mame/includes/tp84.h b/src/mame/includes/tp84.h
index e24c101b29f..f1cad841584 100644
--- a/src/mame/includes/tp84.h
+++ b/src/mame/includes/tp84.h
@@ -51,13 +51,13 @@ private:
required_device<screen_device> m_screen;
required_device<palette_device> m_palette;
required_device_array<filter_rc_device, 3> m_filter;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- bool m_flipscreen_x;
- bool m_flipscreen_y;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
+ bool m_flipscreen_x = false;
+ bool m_flipscreen_y = false;
- bool m_irq_enable;
- bool m_sub_irq_mask;
+ bool m_irq_enable = false;
+ bool m_sub_irq_mask = false;
DECLARE_WRITE_LINE_MEMBER(irq_enable_w);
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
diff --git a/src/mame/includes/trackfld.h b/src/mame/includes/trackfld.h
index 5ab0bcd3c05..16c7a8392dc 100644
--- a/src/mame/includes/trackfld.h
+++ b/src/mame/includes/trackfld.h
@@ -101,17 +101,17 @@ private:
required_device<palette_device> m_palette;
/* video-related */
- tilemap_t *m_bg_tilemap;
- int m_bg_bank;
- int m_sprite_bank1;
- int m_sprite_bank2;
- int m_old_gfx_bank; // needed by atlantol
- int m_sprites_gfx_banked;
+ tilemap_t *m_bg_tilemap = nullptr;
+ int m_bg_bank = 0;
+ int m_sprite_bank1 = 0;
+ int m_sprite_bank2 = 0;
+ int m_old_gfx_bank = 0; // needed by atlantol
+ int m_sprites_gfx_banked = 0;
- bool m_irq_mask;
- bool m_nmi_mask;
+ bool m_irq_mask = false;
+ bool m_nmi_mask = false;
- uint8_t m_SN76496_latch;
+ uint8_t m_SN76496_latch = 0;
DECLARE_WRITE_LINE_MEMBER(coin_counter_1_w);
DECLARE_WRITE_LINE_MEMBER(coin_counter_2_w);
diff --git a/src/mame/includes/tranz330.h b/src/mame/includes/tranz330.h
index 058678117c0..ce702185caf 100644
--- a/src/mame/includes/tranz330.h
+++ b/src/mame/includes/tranz330.h
@@ -70,7 +70,7 @@ private:
required_device<speaker_sound_device> m_speaker;
required_ioport_array<4> m_keypad;
- uint8_t m_keypad_col_mask;
+ uint8_t m_keypad_col_mask = 0;
};
#endif // VERIFONE_TRANZ330_H
diff --git a/src/mame/includes/travrusa.h b/src/mame/includes/travrusa.h
index ff3f494ab0c..5a689f5065b 100644
--- a/src/mame/includes/travrusa.h
+++ b/src/mame/includes/travrusa.h
@@ -35,8 +35,8 @@ private:
required_shared_ptr<uint8_t> m_spriteram;
/* video-related */
- tilemap_t* m_bg_tilemap;
- int m_scrollx[2];
+ tilemap_t* m_bg_tilemap = nullptr;
+ int m_scrollx[2]{};
void travrusa_videoram_w(offs_t offset, uint8_t data);
void travrusa_scroll_x_low_w(uint8_t data);
void travrusa_scroll_x_high_w(uint8_t data);
diff --git a/src/mame/includes/triplhnt.h b/src/mame/includes/triplhnt.h
index b09b0bdcd67..17a48f0fc24 100644
--- a/src/mame/includes/triplhnt.h
+++ b/src/mame/includes/triplhnt.h
@@ -96,15 +96,15 @@ private:
required_shared_ptr<uint8_t> m_code_ram;
output_finder<> m_lamp;
- uint8_t m_cmos[16];
- uint8_t m_da_latch;
- uint8_t m_cmos_latch;
- uint8_t m_hit_code;
- int m_sprite_zoom;
- int m_sprite_bank;
+ uint8_t m_cmos[16]{};
+ uint8_t m_da_latch = 0;
+ uint8_t m_cmos_latch = 0;
+ uint8_t m_hit_code = 0;
+ int m_sprite_zoom = 0;
+ int m_sprite_bank = 0;
bitmap_ind16 m_helper;
- emu_timer *m_hit_timer;
- tilemap_t* m_bg_tilemap;
+ emu_timer *m_hit_timer = nullptr;
+ tilemap_t* m_bg_tilemap = nullptr;
};
/*----------- defined in audio/triplhnt.cpp -----------*/
diff --git a/src/mame/includes/trs80m2.h b/src/mame/includes/trs80m2.h
index e54443e1b89..831a358eae6 100644
--- a/src/mame/includes/trs80m2.h
+++ b/src/mame/includes/trs80m2.h
@@ -168,7 +168,7 @@ protected:
required_device<cpu_device> m_subcpu;
required_device<am9519_device> m_uic;
- uint16_t m_ual;
+ uint16_t m_ual = 0;
uint8_t m_limit[2];
uint8_t m_offset[2];
};
diff --git a/src/mame/includes/truco.h b/src/mame/includes/truco.h
index d9e16027694..fb33edc525d 100644
--- a/src/mame/includes/truco.h
+++ b/src/mame/includes/truco.h
@@ -38,7 +38,7 @@ private:
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_battery_ram;
- int m_trigger;
+ int m_trigger = 0;
void porta_w(uint8_t data);
DECLARE_WRITE_LINE_MEMBER(pia_ca2_w);
diff --git a/src/mame/includes/trucocl.h b/src/mame/includes/trucocl.h
index 3a70d961a5c..72419330b8e 100644
--- a/src/mame/includes/trucocl.h
+++ b/src/mame/includes/trucocl.h
@@ -36,14 +36,14 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
private:
- int m_cur_dac_address;
- int m_cur_dac_address_index;
+ int m_cur_dac_address = 0;
+ int m_cur_dac_address_index = 0;
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_colorram;
- tilemap_t *m_bg_tilemap;
+ tilemap_t *m_bg_tilemap = nullptr;
- uint8_t m_irq_mask;
- emu_timer *m_dac_irq_timer;
+ uint8_t m_irq_mask = 0;
+ emu_timer *m_dac_irq_timer = nullptr;
void irq_enable_w(uint8_t data);
void trucocl_videoram_w(offs_t offset, uint8_t data);
diff --git a/src/mame/includes/tsamurai.h b/src/mame/includes/tsamurai.h
index 981c7eca517..01012b9d46b 100644
--- a/src/mame/includes/tsamurai.h
+++ b/src/mame/includes/tsamurai.h
@@ -78,22 +78,22 @@ protected:
optional_shared_ptr<uint8_t> m_bg_videoram;
required_shared_ptr<uint8_t> m_spriteram;
- tilemap_t *m_background;
- tilemap_t *m_foreground;
+ tilemap_t *m_background = nullptr;
+ tilemap_t *m_foreground = nullptr;
//common
- int m_textbank1;
- int m_nmi_enabled;
+ int m_textbank1 = 0;
+ int m_nmi_enabled = 0;
// tsamurai and m660 specific
- int m_bgcolor;
- int m_sound_command1;
- int m_sound_command2;
+ int m_bgcolor = 0;
+ int m_sound_command1 = 0;
+ int m_sound_command2 = 0;
virtual TILE_GET_INFO_MEMBER(get_bg_tile_info);
virtual TILE_GET_INFO_MEMBER(get_fg_tile_info);
- int m_numsprites;
+ int m_numsprites = 0;
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect );
};
@@ -126,9 +126,9 @@ private:
void vsgongf_sound_command_w(uint8_t data);
//vsgongf specific
- int m_vsgongf_sound_nmi_enabled;
- int m_vsgongf_color;
- int m_key_count; //debug only
+ int m_vsgongf_sound_nmi_enabled = 0;
+ int m_vsgongf_color = 0;
+ int m_key_count = 0; //debug only
INTERRUPT_GEN_MEMBER(vsgongf_sound_interrupt);
@@ -171,8 +171,8 @@ private:
void z80_m660_io_map(address_map &map);
//m660 specific
- int m_textbank2;
- int m_sound_command3;
+ int m_textbank2 = 0;
+ int m_sound_command3 = 0;
};
#endif // MAME_INCLUDES_TSAMURAI_H
diff --git a/src/mame/includes/tsconf.h b/src/mame/includes/tsconf.h
index 99a19675a1d..051ddae38ec 100644
--- a/src/mame/includes/tsconf.h
+++ b/src/mame/includes/tsconf.h
@@ -134,8 +134,8 @@ private:
};
void update_frame_timer();
- emu_timer *m_frame_irq_timer;
- emu_timer *m_line_irq_timer;
+ emu_timer *m_frame_irq_timer = nullptr;
+ emu_timer *m_line_irq_timer = nullptr;
INTERRUPT_GEN_MEMBER(tsconf_vblank_interrupt);
@@ -191,7 +191,7 @@ private:
std::map<tsconf_regs, u8> m_scanline_delayed_regs_update;
u8 m_regs[0x100];
- address_space *m_program;
+ address_space *m_program = nullptr;
memory_view m_bank0_rom;
required_memory_bank_array<5> m_banks;
@@ -200,17 +200,17 @@ private:
required_device<beta_disk_device> m_beta;
required_device<tsconfdma_device> m_dma;
required_device<spi_sdcard_sdhc_device> m_sdcard;
- u8 m_zctl_di;
- u8 m_zctl_cs;
+ u8 m_zctl_di = 0;
+ u8 m_zctl_cs = 0;
required_device<glukrs_device> m_glukrs;
- gluk_ext m_port_f7_ext;
- u8 m_port_f7_gluk_reg;
+ gluk_ext m_port_f7_ext{};
+ u8 m_port_f7_gluk_reg = 0;
- s16 m_gfx_y_frame_offset;
+ s16 m_gfx_y_frame_offset = 0;
required_device<device_palette_interface> m_palette;
required_device<gfxdecode_device> m_gfxdecode;
- tilemap_t *m_ts_tilemap[3];
+ tilemap_t *m_ts_tilemap[3]{};
required_device<ram_device> m_cram;
required_device<ram_device> m_sfile;
};
diff --git a/src/mame/includes/tubep.h b/src/mame/includes/tubep.h
index 37a49e4cf29..8a6c8c905fd 100644
--- a/src/mame/includes/tubep.h
+++ b/src/mame/includes/tubep.h
@@ -52,32 +52,32 @@ protected:
optional_shared_ptr<uint8_t> m_backgroundram;
required_shared_ptr<uint8_t> m_sprite_colorsharedram;
- emu_timer *m_interrupt_timer;
- emu_timer *m_sprite_timer;
- int m_curr_scanline;
+ emu_timer *m_interrupt_timer = nullptr;
+ emu_timer *m_sprite_timer = nullptr;
+ int m_curr_scanline = 0;
std::unique_ptr<uint8_t[]> m_spritemap;
uint8_t m_prom2[32];
- uint32_t m_romD_addr;
- uint32_t m_romEF_addr;
- uint32_t m_E16_add_b;
- uint32_t m_HINV;
- uint32_t m_VINV;
- uint32_t m_XSize;
- uint32_t m_YSize;
- uint32_t m_mark_1;
- uint32_t m_mark_2;
- uint32_t m_colorram_addr_hi;
- uint32_t m_ls273_g6;
- uint32_t m_ls273_j6;
- uint32_t m_romHI_addr_mid;
- uint32_t m_romHI_addr_msb;
- uint8_t m_DISP;
- uint8_t m_background_romsel;
- uint8_t m_color_A4;
- uint8_t m_ls175_b7;
- uint8_t m_ls175_e8;
- uint8_t m_ls377_data;
- uint32_t m_page;
+ uint32_t m_romD_addr = 0;
+ uint32_t m_romEF_addr = 0;
+ uint32_t m_E16_add_b = 0;
+ uint32_t m_HINV = 0;
+ uint32_t m_VINV = 0;
+ uint32_t m_XSize = 0;
+ uint32_t m_YSize = 0;
+ uint32_t m_mark_1 = 0;
+ uint32_t m_mark_2 = 0;
+ uint32_t m_colorram_addr_hi = 0;
+ uint32_t m_ls273_g6 = 0;
+ uint32_t m_ls273_j6 = 0;
+ uint32_t m_romHI_addr_mid = 0;
+ uint32_t m_romHI_addr_msb = 0;
+ uint8_t m_DISP = 0;
+ uint8_t m_background_romsel = 0;
+ uint8_t m_color_A4 = 0;
+ uint8_t m_ls175_b7 = 0;
+ uint8_t m_ls175_e8 = 0;
+ uint8_t m_ls377_data = 0;
+ uint32_t m_page = 0;
DECLARE_WRITE_LINE_MEMBER(coin1_counter_w);
DECLARE_WRITE_LINE_MEMBER(coin2_counter_w);
void main_cpu_irq_line_clear_w(uint8_t data);
@@ -164,7 +164,7 @@ private:
required_device<ls157_device> m_adpcm_mux;
required_shared_ptr<uint8_t> m_rjammer_backgroundram;
- bool m_msm5205_toggle;
+ bool m_msm5205_toggle = 0;
};
#endif // MAME_INCLUDES_TUBEP_H
diff --git a/src/mame/includes/tumbleb.h b/src/mame/includes/tumbleb.h
index c35f4230b99..7eca558b2bb 100644
--- a/src/mame/includes/tumbleb.h
+++ b/src/mame/includes/tumbleb.h
@@ -79,17 +79,17 @@ protected:
optional_shared_ptr<uint16_t> m_control;
/* misc */
- int m_music_command;
- int m_music_bank;
- int m_music_is_playing;
+ int m_music_command = 0;
+ int m_music_bank = 0;
+ int m_music_is_playing = 0;
/* video-related */
- tilemap_t *m_pf1_tilemap;
- tilemap_t *m_pf1_alt_tilemap;
- tilemap_t *m_pf2_tilemap;
- tilemap_t *m_pf2_alt_tilemap;
- uint16_t m_control_0[8];
- uint16_t m_tilebank;
+ tilemap_t *m_pf1_tilemap = nullptr;
+ tilemap_t *m_pf1_alt_tilemap = nullptr;
+ tilemap_t *m_pf2_tilemap = nullptr;
+ tilemap_t *m_pf2_alt_tilemap = nullptr;
+ uint16_t m_control_0[8]{};
+ uint16_t m_tilebank = 0;
/* devices */
required_device<cpu_device> m_maincpu;
@@ -101,7 +101,7 @@ protected:
required_device<screen_device> m_screen;
optional_device<generic_latch_8_device> m_soundlatch;
- uint8_t m_semicom_prot_offset;
+ uint8_t m_semicom_prot_offset = 0;
uint16_t m_protbase;
void tumblepb_oki_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
uint16_t tumblepb_prot_r();
diff --git a/src/mame/includes/tunhunt.h b/src/mame/includes/tunhunt.h
index e6b17b02d84..6c78707ce8a 100644
--- a/src/mame/includes/tunhunt.h
+++ b/src/mame/includes/tunhunt.h
@@ -63,32 +63,32 @@ private:
required_shared_ptr<uint8_t> m_generic_paletteram_8;
output_finder<> m_led;
- uint8_t m_control;
- tilemap_t *m_fg_tilemap;
+ uint8_t m_control = 0;
+ tilemap_t *m_fg_tilemap = nullptr;
bitmap_ind16 m_tmpbitmap;
- uint8_t m_mobsc0;
- uint8_t m_mobsc1;
- uint8_t m_lineh[13];
- uint8_t m_shl0st;
- uint8_t m_shl1st;
- uint8_t m_vstrlo;
- uint8_t m_linesh;
- uint8_t m_shl0pc;
- uint8_t m_shl1pc;
- uint8_t m_linec[13];
- uint8_t m_shl0v;
- uint8_t m_shl1v;
- uint8_t m_mobjh;
- uint8_t m_linev[13];
- uint8_t m_shl0vs;
- uint8_t m_shl1vs;
- uint8_t m_mobvs;
- uint8_t m_linevs[13];
- uint8_t m_shel0h;
- uint8_t m_mobst;
- uint8_t m_shel1h;
- uint8_t m_mobjv;
+ uint8_t m_mobsc0 = 0;
+ uint8_t m_mobsc1 = 0;
+ uint8_t m_lineh[13]{};
+ uint8_t m_shl0st = 0;
+ uint8_t m_shl1st = 0;
+ uint8_t m_vstrlo = 0;
+ uint8_t m_linesh = 0;
+ uint8_t m_shl0pc = 0;
+ uint8_t m_shl1pc = 0;
+ uint8_t m_linec[13]{};
+ uint8_t m_shl0v = 0;
+ uint8_t m_shl1v = 0;
+ uint8_t m_mobjh = 0;
+ uint8_t m_linev[13]{};
+ uint8_t m_shl0vs = 0;
+ uint8_t m_shl1vs = 0;
+ uint8_t m_mobvs = 0;
+ uint8_t m_linevs[13]{};
+ uint8_t m_shel0h = 0;
+ uint8_t m_mobst = 0;
+ uint8_t m_shel1h = 0;
+ uint8_t m_mobjv = 0;
};
#endif // MAME_INCLUDES_TUNHUNT_H
diff --git a/src/mame/includes/turbo.h b/src/mame/includes/turbo.h
index a14929b7e5e..3832ea78d22 100644
--- a/src/mame/includes/turbo.h
+++ b/src/mame/includes/turbo.h
@@ -64,23 +64,23 @@ protected:
output_finder<> m_lamp;
// machine state
- uint8_t m_i8279_scanlines;
+ uint8_t m_i8279_scanlines = 0;
// sound state
- uint8_t m_sound_state[3];
+ uint8_t m_sound_state[3]{};
// video state
- tilemap_t * m_fg_tilemap;
+ tilemap_t * m_fg_tilemap = nullptr;
struct sprite_info
{
- uint16_t ve; // VE0-15 signals for this row
- uint8_t lst; // LST0-7 signals for this row
- uint32_t latched[8]; // latched pixel data
- uint8_t plb[8]; // latched PLB state
- uint32_t offset[8]; // current offset for this row
- uint32_t frac[8]; // leftover fraction
- uint32_t step[8]; // stepping value
+ uint16_t ve = 0; // VE0-15 signals for this row
+ uint8_t lst = 0; // LST0-7 signals for this row
+ uint32_t latched[8]{}; // latched pixel data
+ uint8_t plb[8]{}; // latched PLB state
+ uint32_t offset[8]{}; // current offset for this row
+ uint32_t frac[8]{}; // leftover fraction
+ uint32_t step[8]{}; // stepping value
};
sprite_info m_sprite_info;
@@ -170,17 +170,17 @@ protected:
private:
required_shared_ptr<uint8_t> m_spriteram;
- uint8_t m_col;
- uint8_t m_ply;
- uint8_t m_flip;
- uint8_t m_mdis;
- uint8_t m_mdir;
- uint8_t m_tdis;
- uint8_t m_tdir;
- uint8_t m_fdis;
- uint8_t m_fdir;
- uint8_t m_hdis;
- uint8_t m_hdir;
+ uint8_t m_col = 0;
+ uint8_t m_ply = 0;
+ uint8_t m_flip = 0;
+ uint8_t m_mdis = 0;
+ uint8_t m_mdir = 0;
+ uint8_t m_tdis = 0;
+ uint8_t m_tdir = 0;
+ uint8_t m_fdis = 0;
+ uint8_t m_fdir = 0;
+ uint8_t m_hdis = 0;
+ uint8_t m_hdir = 0;
void ppi0a_w(uint8_t data);
void ppi0b_w(uint8_t data);
diff --git a/src/mame/includes/turrett.h b/src/mame/includes/turrett.h
index 6192a5f56ff..79fc296b4b7 100644
--- a/src/mame/includes/turrett.h
+++ b/src/mame/includes/turrett.h
@@ -69,29 +69,29 @@ private:
uint32_t update_inputs(void);
// members
- emu_timer *m_dma_timer;
- uint32_t m_inputs_active;
+ emu_timer *m_dma_timer = nullptr;
+ uint32_t m_inputs_active = 0;
std::unique_ptr<uint16_t[]> m_video_ram[2];
- uint16_t m_last_pixel;
- int32_t m_video_ctrl;
- uint16_t m_video_fade;
- int16_t m_x_pos;
- int16_t m_x_start;
- int16_t m_x_mod;
- int16_t m_dx;
- int16_t m_y_pos;
- int16_t m_scale_cnt_y;
- int16_t m_scale_cnt_x;
- bool m_skip_x;
- bool m_skip_y;
- int16_t m_scale;
- int16_t m_hotspot_x;
- int16_t m_hotspot_y;
- bool m_dma_idle;
- uint32_t m_dma_addr[2];
- uint32_t m_ipt_val;
- uint8_t m_frame;
- uint8_t m_adc;
+ uint16_t m_last_pixel = 0;
+ int32_t m_video_ctrl = 0;
+ uint16_t m_video_fade = 0;
+ int16_t m_x_pos = 0;
+ int16_t m_x_start = 0;
+ int16_t m_x_mod = 0;
+ int16_t m_dx = 0;
+ int16_t m_y_pos = 0;
+ int16_t m_scale_cnt_y = 0;
+ int16_t m_scale_cnt_x = 0;
+ bool m_skip_x = false;
+ bool m_skip_y = false;
+ int16_t m_scale = 0;
+ int16_t m_hotspot_x = 0;
+ int16_t m_hotspot_y = 0;
+ bool m_dma_idle = false;
+ uint32_t m_dma_addr[2]{};
+ uint32_t m_ipt_val = 0;
+ uint8_t m_frame = 0;
+ uint8_t m_adc = 0;
void cpu_map(address_map &map);
void turrett_sound_map(address_map &map);
@@ -134,12 +134,12 @@ private:
struct
{
- uint32_t m_address;
- uint32_t m_volume;
- bool m_playing;
+ uint32_t m_address = 0;
+ uint32_t m_volume = 0;
+ bool m_playing = false;
} m_channels[SOUND_CHANNELS];
- int32_t m_volume_table[0x50];
+ int32_t m_volume_table[0x50]{};
};
// device type definition
diff --git a/src/mame/includes/twincobr.h b/src/mame/includes/twincobr.h
index 8ec4e59bd28..127be71dea4 100644
--- a/src/mame/includes/twincobr.h
+++ b/src/mame/includes/twincobr.h
@@ -51,33 +51,33 @@ protected:
optional_device<buffered_spriteram8_device> m_spriteram8;
optional_device<buffered_spriteram16_device> m_spriteram16;
- u32 m_fg_rom_bank;
- u32 m_bg_ram_bank;
- int m_intenable;
- int m_dsp_bio;
- int m_fsharkbt_8741;
- int m_dsp_execute;
- u32 m_dsp_addr_w;
- u32 m_main_ram_seg;
+ u32 m_fg_rom_bank = 0;
+ u32 m_bg_ram_bank = 0;
+ int m_intenable = 0;
+ int m_dsp_bio = 0;
+ int m_fsharkbt_8741 = 0;
+ int m_dsp_execute = 0;
+ u32 m_dsp_addr_w = 0;
+ u32 m_main_ram_seg = 0;
std::unique_ptr<u16[]> m_bgvideoram16;
std::unique_ptr<u16[]> m_fgvideoram16;
std::unique_ptr<u16[]> m_txvideoram16;
- size_t m_bgvideoram_size;
- size_t m_fgvideoram_size;
- size_t m_txvideoram_size;
- s32 m_txscrollx;
- s32 m_txscrolly;
- s32 m_fgscrollx;
- s32 m_fgscrolly;
- s32 m_bgscrollx;
- s32 m_bgscrolly;
- s32 m_txoffs;
- s32 m_fgoffs;
- s32 m_bgoffs;
- s32 m_display_on;
- tilemap_t *m_bg_tilemap;
- tilemap_t *m_fg_tilemap;
- tilemap_t *m_tx_tilemap;
+ size_t m_bgvideoram_size = 0;
+ size_t m_fgvideoram_size = 0;
+ size_t m_txvideoram_size = 0;
+ s32 m_txscrollx = 0;
+ s32 m_txscrolly = 0;
+ s32 m_fgscrollx = 0;
+ s32 m_fgscrolly = 0;
+ s32 m_bgscrollx = 0;
+ s32 m_bgscrolly = 0;
+ s32 m_txoffs = 0;
+ s32 m_fgoffs = 0;
+ s32 m_bgoffs = 0;
+ s32 m_display_on = 0;
+ tilemap_t *m_bg_tilemap = nullptr;
+ tilemap_t *m_fg_tilemap = nullptr;
+ tilemap_t *m_tx_tilemap = nullptr;
void twincobr_dsp_addrsel_w(u16 data);
u16 twincobr_dsp_r();
diff --git a/src/mame/includes/tx1.h b/src/mame/includes/tx1.h
index 50273bca170..39107c0fa95 100644
--- a/src/mame/includes/tx1.h
+++ b/src/mame/includes/tx1.h
@@ -80,7 +80,7 @@ private:
uint16_t retval;
uint16_t muxlatch; // TX-1
int dbgaddr;
- int dbgpc;
+ int dbgpc = 0;
uint16_t get_datarom_addr() const;
uint16_t get_bb_datarom_addr() const;
@@ -90,8 +90,8 @@ private:
class sn74s516_t
{
public:
- int16_t X;
- int16_t Y;
+ int16_t X = 0;
+ int16_t Y = 0;
union
{
@@ -103,9 +103,9 @@ private:
int32_t ZW32;
} ZW;
- int code;
- int state;
- int ZWfl;
+ int code = 0;
+ int state = 0;
+ int ZWfl = 0;
void kick(running_machine &machine, math_t &math, uint16_t *data, int ins);
@@ -117,29 +117,29 @@ private:
struct vregs_t
{
- uint16_t scol; /* Road colours */
- uint32_t slock; /* Scroll lock */
- uint8_t flags; /* Road flags */
+ uint16_t scol = 0; /* Road colours */
+ uint32_t slock = 0; /* Scroll lock */
+ uint8_t flags = 0; /* Road flags */
- uint32_t ba_val; /* Accumulator */
- uint32_t ba_inc;
- uint32_t bank_mode;
+ uint32_t ba_val = 0; /* Accumulator */
+ uint32_t ba_inc = 0;
+ uint32_t bank_mode = 0;
- uint16_t h_val; /* Accumulator */
- uint16_t h_inc;
- uint16_t h_init;
+ uint16_t h_val = 0; /* Accumulator */
+ uint16_t h_inc = 0;
+ uint16_t h_init = 0;
- uint8_t slin_val; /* Accumulator */
- uint8_t slin_inc;
+ uint8_t slin_val = 0; /* Accumulator */
+ uint8_t slin_inc = 0;
/* Buggyboy only */
- uint8_t wa8;
- uint8_t wa4;
+ uint8_t wa8 = 0;
+ uint8_t wa4 = 0;
- uint16_t wave_lfsr;
- uint8_t sky;
- uint16_t gas;
- uint8_t shift;
+ uint16_t wave_lfsr = 0;
+ uint8_t sky = 0;
+ uint16_t gas = 0;
+ uint8_t shift = 0;
};
math_t m_math;
@@ -163,7 +163,7 @@ private:
required_device<screen_device> m_screen;
required_device<tx1_sound_device> m_sound;
- emu_timer *m_interrupt_timer;
+ emu_timer *m_interrupt_timer = nullptr;
vregs_t m_vregs;
std::unique_ptr<uint8_t[]> m_chr_bmp;
@@ -171,7 +171,7 @@ private:
std::unique_ptr<uint8_t[]> m_rod_bmp;
std::unique_ptr<bitmap_ind16> m_bitmap;
- bool m_needs_update;
+ bool m_needs_update = false;
void kick_sn74s516(uint16_t *data, int ins);
void tx1_update_state();
diff --git a/src/mame/includes/ultratnk.h b/src/mame/includes/ultratnk.h
index 47c66510b46..f55783acb58 100644
--- a/src/mame/includes/ultratnk.h
+++ b/src/mame/includes/ultratnk.h
@@ -80,11 +80,11 @@ private:
required_ioport_array<4> m_joy;
- int m_da_latch;
- int m_collision[4];
- tilemap_t* m_playfield;
+ int m_da_latch = 0;
+ int m_collision[4]{};
+ tilemap_t* m_playfield = nullptr;
bitmap_ind16 m_helper;
- emu_timer *m_nmi_timer;
+ emu_timer *m_nmi_timer = nullptr;
};
#endif // MAME_INCLUDES_ULTRATNK_H