summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2022-03-30 20:02:37 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2022-03-30 20:02:37 +1100
commitb1b9babf8c6bb6abc929c937f678bebfd3894fc3 (patch)
tree4f6f7e51a82075ac5ce3e68e9d5930d6db0a9e64 /src/mame/machine
parente09c5764d0eb8dc71c217657b12b0e55464cc189 (diff)
init vars for coverity (mame/machine/3-m)
Diffstat (limited to 'src/mame/machine')
-rw-r--r--src/mame/machine/315-5838_317-0229_comp.h28
-rw-r--r--src/mame/machine/315-5881_crypt.h26
-rw-r--r--src/mame/machine/315-6154.h2
-rw-r--r--src/mame/machine/315_5296.h4
-rw-r--r--src/mame/machine/3dom2.h8
-rw-r--r--src/mame/machine/6883sam.h8
-rw-r--r--src/mame/machine/agatkeyb.h2
-rw-r--r--src/mame/machine/alpha8201.h8
-rw-r--r--src/mame/machine/apexc.h2
-rw-r--r--src/mame/machine/apollo_kbd.h8
-rw-r--r--src/mame/machine/apple2common.h10
-rw-r--r--src/mame/machine/at.h20
-rw-r--r--src/mame/machine/atarixga.h16
-rw-r--r--src/mame/machine/bfm_bd1.h36
-rw-r--r--src/mame/machine/bfm_bda.h36
-rw-r--r--src/mame/machine/cedar_magnet_board.h10
-rw-r--r--src/mame/machine/cedar_magnet_flop.h16
-rw-r--r--src/mame/machine/cedar_magnet_plane.h18
-rw-r--r--src/mame/machine/cedar_magnet_sprite.h18
-rw-r--r--src/mame/machine/coco_vhd.h8
-rw-r--r--src/mame/machine/cuda.h30
-rw-r--r--src/mame/machine/dc-ctrl.h8
-rw-r--r--src/mame/machine/dmv_keyb.h6
-rw-r--r--src/mame/machine/docg3.h38
-rw-r--r--src/mame/machine/egret.h38
-rw-r--r--src/mame/machine/elan_eu3a05commonsys.h16
-rw-r--r--src/mame/machine/esqlcd.h8
-rw-r--r--src/mame/machine/esqvfd.h16
-rw-r--r--src/mame/machine/fidel_clockdiv.h6
-rw-r--r--src/mame/machine/gaelcrpt.h2
-rw-r--r--src/mame/machine/gdrom.h6
-rw-r--r--src/mame/machine/hal2.h42
-rw-r--r--src/mame/machine/hp48_port.h4
-rw-r--r--src/mame/machine/hpc1.h36
-rw-r--r--src/mame/machine/hpc3.h12
-rw-r--r--src/mame/machine/hyperscan_card.h8
-rw-r--r--src/mame/machine/igs025.h24
-rw-r--r--src/mame/machine/igs028.h2
-rw-r--r--src/mame/machine/inder_vid.h2
-rw-r--r--src/mame/machine/interpro_arbga.h30
-rw-r--r--src/mame/machine/interpro_ioga.h26
-rw-r--r--src/mame/machine/interpro_mcga.h8
-rw-r--r--src/mame/machine/ioc2.h2
-rw-r--r--src/mame/machine/iteagle_fpga.h2
-rw-r--r--src/mame/machine/k007452.h8
-rw-r--r--src/mame/machine/k573fpga.h16
-rw-r--r--src/mame/machine/k7659kb.h8
-rw-r--r--src/mame/machine/konppc.h18
-rw-r--r--src/mame/machine/m1comm.h28
-rw-r--r--src/mame/machine/m20_8086.h2
-rw-r--r--src/mame/machine/m2comm.h28
-rw-r--r--src/mame/machine/m3comm.h24
-rw-r--r--src/mame/machine/macrtc.h28
-rw-r--r--src/mame/machine/mapledev.h10
-rw-r--r--src/mame/machine/mathbox.h4
-rw-r--r--src/mame/machine/mbee.cpp2
-rw-r--r--src/mame/machine/mega32x.h112
-rw-r--r--src/mame/machine/megacd.h56
-rw-r--r--src/mame/machine/midwayic.h84
-rw-r--r--src/mame/machine/mie.h14
-rw-r--r--src/mame/machine/mmboard.h4
61 files changed, 551 insertions, 551 deletions
diff --git a/src/mame/machine/315-5838_317-0229_comp.h b/src/mame/machine/315-5838_317-0229_comp.h
index c5185ed9879..de3cbc894fa 100644
--- a/src/mame/machine/315-5838_317-0229_comp.h
+++ b/src/mame/machine/315-5838_317-0229_comp.h
@@ -47,20 +47,20 @@ private:
void write_prot_data(uint32_t data, uint32_t mem_mask, int rev_words);
void set_prot_addr(uint32_t data, uint32_t mem_mask);
- uint32_t m_srcoffset;
- uint32_t m_srcstart; // failsafe
- bool m_abort;
+ uint32_t m_srcoffset = 0;
+ uint32_t m_srcstart = 0; // failsafe
+ bool m_abort = false;
struct {
- uint16_t mode;
+ uint16_t mode = 0;
struct {
- uint8_t len; /* in bits */
- uint8_t idx; /* in the dictionary */
- uint16_t pattern; /* of the first node */
+ uint8_t len = 0; /* in bits */
+ uint8_t idx = 0; /* in the dictionary */
+ uint16_t pattern = 0; /* of the first node */
} tree[12];
- int it2;
- uint8_t dictionary[256];
- int id;
+ int it2 = 0;
+ uint8_t dictionary[256]{};
+ int id = 0;
} m_compstate;
void set_table_upload_mode_w(uint16_t val);
@@ -69,10 +69,10 @@ private:
uint8_t get_decompressed_byte(void);
uint16_t decipher(uint16_t c);
- int m_num_bits_compressed;
- uint16_t m_val_compressed;
- int m_num_bits;
- uint16_t m_val;
+ int m_num_bits_compressed = 0;
+ uint16_t m_val_compressed = 0;
+ int m_num_bits = 0;
+ uint16_t m_val = 0;
int m_hackmode;
#ifdef SEGA315_DUMP_DEBUG
diff --git a/src/mame/machine/315-5881_crypt.h b/src/mame/machine/315-5881_crypt.h
index 7d4af94d670..5a39c60e814 100644
--- a/src/mame/machine/315-5881_crypt.h
+++ b/src/mame/machine/315-5881_crypt.h
@@ -43,7 +43,7 @@ protected:
private:
- bool first_read;
+ bool first_read = false;
enum {
// BUFFER_SIZE = 32768, LINE_SIZE = 512,
@@ -51,25 +51,25 @@ private:
FLAG_COMPRESSED = 0x20000
};
- uint32_t key;
+ uint32_t key = 0;
std::unique_ptr<uint8_t[]> buffer;
std::unique_ptr<uint8_t[]> line_buffer;
std::unique_ptr<uint8_t[]> line_buffer_prev;
- uint32_t prot_cur_address;
- uint16_t subkey, dec_hist;
- uint32_t dec_header;
+ uint32_t prot_cur_address = 0;
+ uint16_t subkey, dec_hist = 0;
+ uint32_t dec_header = 0;
- bool enc_ready;
+ bool enc_ready = 0;
- int buffer_pos, line_buffer_pos, line_buffer_size, buffer_bit, buffer_bit2;
- uint8_t buffer2[2];
- uint16_t buffer2a;
+ int buffer_pos = 0, line_buffer_pos = 0, line_buffer_size = 0, buffer_bit = 0, buffer_bit2 = 0;
+ uint8_t buffer2[2]{};
+ uint16_t buffer2a = 0;
- int block_size;
- int block_pos;
- int block_numlines;
- int done_compression;
+ int block_size = 0;
+ int block_pos = 0;
+ int block_numlines = 0;
+ int done_compression = 0;
struct sbox {
uint8_t table[64];
diff --git a/src/mame/machine/315-6154.h b/src/mame/machine/315-6154.h
index 2775aa4fb1f..70f1de2e9a4 100644
--- a/src/mame/machine/315-6154.h
+++ b/src/mame/machine/315-6154.h
@@ -38,7 +38,7 @@ protected:
private:
address_space_config m_configuration_config;
address_space_config m_memory_config;
- address_space *m_configuration;
+ address_space *m_configuration = nullptr;
u32 m_registers[0x100 / 4];
u32 m_bases[4 * 3];
diff --git a/src/mame/machine/315_5296.h b/src/mame/machine/315_5296.h
index 92232962c69..c191399cc88 100644
--- a/src/mame/machine/315_5296.h
+++ b/src/mame/machine/315_5296.h
@@ -65,8 +65,8 @@ private:
devcb_write_line::array<3> m_out_cnt_cb;
uint8_t m_output_latch[8];
- uint8_t m_cnt;
- uint8_t m_dir;
+ uint8_t m_cnt = 0;
+ uint8_t m_dir = 0;
uint8_t m_dir_override;
};
diff --git a/src/mame/machine/3dom2.h b/src/mame/machine/3dom2.h
index b4eac8df956..25df60b11bc 100644
--- a/src/mame/machine/3dom2.h
+++ b/src/mame/machine/3dom2.h
@@ -370,10 +370,10 @@ private:
devcb_write_line::array<4> m_gpio_out;
// Registers
- uint32_t m_mcfg;
- uint32_t m_mref;
- uint32_t m_mcntl;
- uint32_t m_reset;
+ uint32_t m_mcfg = 0;
+ uint32_t m_mref = 0;
+ uint32_t m_mcntl = 0;
+ uint32_t m_reset = 0;
};
diff --git a/src/mame/machine/6883sam.h b/src/mame/machine/6883sam.h
index d3e7e725e8a..1a283d74e66 100644
--- a/src/mame/machine/6883sam.h
+++ b/src/mame/machine/6883sam.h
@@ -144,12 +144,12 @@ private:
memory_access<14, 0, 0, ENDIANNESS_BIG>::cache m_rom_space[3];
memory_access< 5, 0, 0, ENDIANNESS_BIG>::specific m_io_space[3];
memory_access< 7, 0, 0, ENDIANNESS_BIG>::cache m_boot_space;
- uint16_t m_counter_mask;
+ uint16_t m_counter_mask = 0;
// SAM state
- uint16_t m_counter;
- uint8_t m_counter_xdiv;
- uint8_t m_counter_ydiv;
+ uint16_t m_counter = 0;
+ uint8_t m_counter_xdiv = 0;
+ uint8_t m_counter_ydiv = 0;
// typically called by CPU
void internal_write(offs_t offset, uint8_t data);
diff --git a/src/mame/machine/agatkeyb.h b/src/mame/machine/agatkeyb.h
index 10693e0fcd7..fe56998c05d 100644
--- a/src/mame/machine/agatkeyb.h
+++ b/src/mame/machine/agatkeyb.h
@@ -60,7 +60,7 @@ private:
attotime typematic_delay() const;
attotime typematic_period() const;
- bool m_meta;
+ bool m_meta = false;
u16 m_last_modifiers;
devcb_write8 m_keyboard_cb;
devcb_write_line m_out_meta_cb;
diff --git a/src/mame/machine/alpha8201.h b/src/mame/machine/alpha8201.h
index 0d776b11603..77b292fb17c 100644
--- a/src/mame/machine/alpha8201.h
+++ b/src/mame/machine/alpha8201.h
@@ -33,10 +33,10 @@ private:
required_device<hmcs40_cpu_device> m_mcu;
// internal state
- int m_bus; // shared RAM bus direction
- u16 m_mcu_address; // MCU side RAM address
- u16 m_mcu_d; // MCU D output data
- u8 m_mcu_r[4]; // MCU R0-R3 output data
+ int m_bus = 0; // shared RAM bus direction
+ u16 m_mcu_address = 0; // MCU side RAM address
+ u16 m_mcu_d = 0; // MCU D output data
+ u8 m_mcu_r[4]{}; // MCU R0-R3 output data
std::unique_ptr<u8[]> m_shared_ram; // 1KB RAM
void mcu_update_address();
diff --git a/src/mame/machine/apexc.h b/src/mame/machine/apexc.h
index 4c009d857fd..24e3e3215c9 100644
--- a/src/mame/machine/apexc.h
+++ b/src/mame/machine/apexc.h
@@ -51,7 +51,7 @@ public:
private:
virtual void device_start() override { }
- int m_writable;
+ int m_writable = 0;
};
/*
diff --git a/src/mame/machine/apollo_kbd.h b/src/mame/machine/apollo_kbd.h
index 35a2720215b..bb3027663ae 100644
--- a/src/mame/machine/apollo_kbd.h
+++ b/src/mame/machine/apollo_kbd.h
@@ -103,10 +103,10 @@ private:
private:
apollo_kbd_device *m_device; // pointer back to our device
- int m_last_b; // previous mouse button values
- int m_last_x; // previous mouse x-axis value
- int m_last_y; // previous mouse y-axis value
- int m_tx_pending; // mouse data packet is pending
+ int m_last_b = 0; // previous mouse button values
+ int m_last_x = 0; // previous mouse x-axis value
+ int m_last_y = 0; // previous mouse y-axis value
+ int m_tx_pending = 0; // mouse data packet is pending
};
static const int XMIT_RING_SIZE = 64;
diff --git a/src/mame/machine/apple2common.h b/src/mame/machine/apple2common.h
index bdfb34c4802..ba179a30ad9 100644
--- a/src/mame/machine/apple2common.h
+++ b/src/mame/machine/apple2common.h
@@ -35,11 +35,11 @@ protected:
private:
optional_device<g65816_device> m_GScpu;
- double m_x_calibration, m_y_calibration;
- double m_joystick_x1_time;
- double m_joystick_y1_time;
- double m_joystick_x2_time;
- double m_joystick_y2_time;
+ double m_x_calibration = 0, m_y_calibration = 0;
+ double m_joystick_x1_time = 0;
+ double m_joystick_y1_time = 0;
+ double m_joystick_x2_time = 0;
+ double m_joystick_y2_time = 0;
offs_t com_2byte_op(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const char *opname);
offs_t com_3byte_op(std::ostream &stream, offs_t pc, const util::disasm_interface::data_buffer &opcodes, const char *opname);
diff --git a/src/mame/machine/at.h b/src/mame/machine/at.h
index 0aa4aa129b4..346721ffbbd 100644
--- a/src/mame/machine/at.h
+++ b/src/mame/machine/at.h
@@ -55,16 +55,16 @@ private:
required_device<mc146818_device> m_mc146818;
optional_device<at_keyboard_controller_device> m_keybc; // removed in mtouchxl.cpp and vis.cpp
- uint8_t m_at_spkrdata;
- uint8_t m_pit_out2;
- int m_dma_channel;
- bool m_cur_eop, m_cur_eop2;
- uint8_t m_dma_offset[2][4];
- uint8_t m_at_pages[0x10];
- uint16_t m_dma_high_byte;
- uint8_t m_at_speaker;
- uint8_t m_channel_check;
- uint8_t m_nmi_enabled;
+ uint8_t m_at_spkrdata = 0;
+ uint8_t m_pit_out2 = 0;
+ int m_dma_channel = 0;
+ bool m_cur_eop = false, m_cur_eop2 = false;
+ uint8_t m_dma_offset[2][4]{};
+ uint8_t m_at_pages[0x10]{};
+ uint16_t m_dma_high_byte = 0;
+ uint8_t m_at_speaker = 0;
+ uint8_t m_channel_check = 0;
+ uint8_t m_nmi_enabled = 0;
DECLARE_WRITE_LINE_MEMBER(pit8254_out2_changed);
diff --git a/src/mame/machine/atarixga.h b/src/mame/machine/atarixga.h
index 4b199c2a730..6d7e1861de9 100644
--- a/src/mame/machine/atarixga.h
+++ b/src/mame/machine/atarixga.h
@@ -60,9 +60,9 @@ private:
FPGA_DECIPHER
};
- fpga_mode m_mode;
- uint16_t m_address; // last written address
- uint16_t m_ciphertext; // last written ciphertext
+ fpga_mode m_mode{};
+ uint16_t m_address = 0; // last written address
+ uint16_t m_ciphertext = 0; // last written ciphertext
};
class atari_136095_0072_device : public atari_xga_device
@@ -98,13 +98,13 @@ private:
struct
{
- uint16_t addr;
- uint32_t data[64];
+ uint16_t addr = 0;
+ uint32_t data[64]{};
} m_update;
- fpga_mode m_mode;
- uint8_t m_poly_lsb;
- uint16_t m_reply;
+ fpga_mode m_mode{};
+ uint8_t m_poly_lsb = 0;
+ uint16_t m_reply = 0;
};
diff --git a/src/mame/machine/bfm_bd1.h b/src/mame/machine/bfm_bd1.h
index 09dc69a04e9..9c3b520d915 100644
--- a/src/mame/machine/bfm_bd1.h
+++ b/src/mame/machine/bfm_bd1.h
@@ -45,25 +45,25 @@ private:
std::unique_ptr<output_finder<16> > m_outputs;
uint8_t m_port_val;
- int m_cursor_pos;
- int m_window_start; // display window start pos 0-15
- int m_window_end; // display window end pos 0-15
- int m_window_size; // window size
- int m_shift_count;
- int m_shift_data;
- int m_pcursor_pos;
- int m_scroll_active;
- int m_display_mode;
- int m_flash_rate;
- int m_flash_control;
- int m_sclk;
- int m_data;
+ int m_cursor_pos = 0;
+ int m_window_start = 0; // display window start pos 0-15
+ int m_window_end = 0; // display window end pos 0-15
+ int m_window_size = 0; // window size
+ int m_shift_count = 0;
+ int m_shift_data = 0;
+ int m_pcursor_pos = 0;
+ int m_scroll_active = 0;
+ int m_display_mode = 0;
+ int m_flash_rate = 0;
+ int m_flash_control = 0;
+ int m_sclk = 0;
+ int m_data = 0;
- uint8_t m_cursor;
- uint16_t m_chars[16];
- uint8_t m_attrs[16];
- uint16_t m_user_data; // user defined character data (16 bit)
- uint16_t m_user_def; // user defined character state
+ uint8_t m_cursor = 0;
+ uint16_t m_chars[16]{};
+ uint8_t m_attrs[16]{};
+ uint16_t m_user_data = 0; // user defined character data (16 bit)
+ uint16_t m_user_def = 0; // user defined character state
};
DECLARE_DEVICE_TYPE(BFM_BD1, bfm_bd1_device)
diff --git a/src/mame/machine/bfm_bda.h b/src/mame/machine/bfm_bda.h
index a8e6cacd2c5..f937c5a8709 100644
--- a/src/mame/machine/bfm_bda.h
+++ b/src/mame/machine/bfm_bda.h
@@ -42,25 +42,25 @@ private:
std::unique_ptr<output_finder<16> > m_outputs;
uint8_t m_port_val;
- int m_cursor_pos;
- int m_window_start; // display window start pos 0-15
- int m_window_end; // display window end pos 0-15
- int m_window_size; // window size
- int m_shift_count;
- int m_shift_data;
- int m_pcursor_pos;
- int m_blank_flag;
- int m_flash_flag;
- int m_scroll_active;
- int m_display_mode;
- int m_flash_rate;
- int m_flash_control;
+ int m_cursor_pos = 0;
+ int m_window_start = 0; // display window start pos 0-15
+ int m_window_end = 0; // display window end pos 0-15
+ int m_window_size = 0; // window size
+ int m_shift_count = 0;
+ int m_shift_data = 0;
+ int m_pcursor_pos = 0;
+ int m_blank_flag = 0;
+ int m_flash_flag = 0;
+ int m_scroll_active = 0;
+ int m_display_mode = 0;
+ int m_flash_rate = 0;
+ int m_flash_control = 0;
- uint8_t m_cursor;
- uint16_t m_chars[16];
- uint8_t m_attrs[16];
- uint16_t m_user_data; // user defined character data (16 bit)
- uint16_t m_user_def; // user defined character state
+ uint8_t m_cursor = 0;
+ uint16_t m_chars[16]{};
+ uint8_t m_attrs[16]{};
+ uint16_t m_user_data = 0; // user defined character data (16 bit)
+ uint16_t m_user_def = 0; // user defined character state
};
DECLARE_DEVICE_TYPE(BFM_BDA, bfm_bda_device)
diff --git a/src/mame/machine/cedar_magnet_board.h b/src/mame/machine/cedar_magnet_board.h
index 6ec96309687..c72473be6bf 100644
--- a/src/mame/machine/cedar_magnet_board.h
+++ b/src/mame/machine/cedar_magnet_board.h
@@ -44,11 +44,11 @@ private:
TIMER_CALLBACK_MEMBER(halt_clear_callback);
TIMER_CALLBACK_MEMBER(reset_clear_callback);
- bool m_is_running;
- emu_timer *m_halt_assert_timer;
- emu_timer *m_halt_clear_timer;
- emu_timer *m_reset_assert_timer;
- emu_timer *m_reset_clear_timer;
+ bool m_is_running = false;
+ emu_timer *m_halt_assert_timer = nullptr;
+ emu_timer *m_halt_clear_timer = nullptr;
+ emu_timer *m_reset_assert_timer = nullptr;
+ emu_timer *m_reset_clear_timer = nullptr;
};
#endif // MAME_MACHINE_CEDAR_MAGNET_BOARD_H
diff --git a/src/mame/machine/cedar_magnet_flop.h b/src/mame/machine/cedar_magnet_flop.h
index e8c5433f5d4..fecedcdedd4 100644
--- a/src/mame/machine/cedar_magnet_flop.h
+++ b/src/mame/machine/cedar_magnet_flop.h
@@ -34,14 +34,14 @@ protected:
private:
required_region_ptr<u8> m_disk;
- u8 m_flopdat;
- u8 m_flopcmd;
- u8 m_flopsec;
- u8 m_flopstat;
- u8 m_floptrk;
-
- u8 m_curtrack;
- int m_secoffs;
+ u8 m_flopdat = 0;
+ u8 m_flopcmd = 0;
+ u8 m_flopsec = 0;
+ u8 m_flopstat = 0;
+ u8 m_floptrk = 0;
+
+ u8 m_curtrack = 0;
+ int m_secoffs = 0;
};
diff --git a/src/mame/machine/cedar_magnet_plane.h b/src/mame/machine/cedar_magnet_plane.h
index 78527c8118e..fbbb7d48579 100644
--- a/src/mame/machine/cedar_magnet_plane.h
+++ b/src/mame/machine/cedar_magnet_plane.h
@@ -34,17 +34,17 @@ protected:
private:
std::unique_ptr<u8[]> m_framebuffer;
- int m_curline;
- int m_lineoffset;
+ int m_curline = 0;
+ int m_lineoffset = 0;
- u8 m_pio0_pa_data;
- u8 m_pio0_pb_data;
- u8 m_scrollx;
- u8 m_scrolly;
- int m_direction;
+ u8 m_pio0_pa_data = 0;
+ u8 m_pio0_pb_data = 0;
+ u8 m_scrollx = 0;
+ u8 m_scrolly = 0;
+ int m_direction = 0;
- u8 m_cd_data;
- u8 m_cf_data;
+ u8 m_cd_data = 0;
+ u8 m_cf_data = 0;
u8 pio0_pa_r();
void pio0_pa_w(u8 data);
diff --git a/src/mame/machine/cedar_magnet_sprite.h b/src/mame/machine/cedar_magnet_sprite.h
index eb559b56139..78c334d6796 100644
--- a/src/mame/machine/cedar_magnet_sprite.h
+++ b/src/mame/machine/cedar_magnet_sprite.h
@@ -44,20 +44,20 @@ private:
void do_blit();
std::unique_ptr<u8[]> m_framebuffer;
- u8 m_pio2_pb_data;
+ u8 m_pio2_pb_data = 0;
required_device<address_map_bank_device> m_sprite_ram_bankdev;
- u8 m_upperaddr;
- u8 m_loweraddr;
+ u8 m_upperaddr = 0;
+ u8 m_loweraddr = 0;
- u8 m_spritesize;
- u8 m_pio0_pb_data;
- u8 m_spritecodelow;
- u8 m_spritecodehigh;
+ u8 m_spritesize = 0;
+ u8 m_pio0_pb_data = 0;
+ u8 m_spritecodelow = 0;
+ u8 m_spritecodehigh = 0;
- int m_high_write;
- u8 m_uppersprite;
+ int m_high_write = 0;
+ u8 m_uppersprite = 0;
u8 pio0_pa_r();
void pio0_pa_w(u8 data);
diff --git a/src/mame/machine/coco_vhd.h b/src/mame/machine/coco_vhd.h
index 78c7ca20b56..98463dcc5db 100644
--- a/src/mame/machine/coco_vhd.h
+++ b/src/mame/machine/coco_vhd.h
@@ -56,10 +56,10 @@ protected:
private:
required_device<cpu_device> m_cpu;
- address_space * m_cpu_space;
- uint32_t m_logical_record_number;
- uint32_t m_buffer_address;
- uint8_t m_status;
+ address_space * m_cpu_space = nullptr;
+ uint32_t m_logical_record_number = 0;
+ uint32_t m_buffer_address = 0;
+ uint8_t m_status = 0;
};
// device type definition
diff --git a/src/mame/machine/cuda.h b/src/mame/machine/cuda.h
index 513f49e5f5a..db22197f20b 100644
--- a/src/mame/machine/cuda.h
+++ b/src/mame/machine/cuda.h
@@ -90,21 +90,21 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
private:
- uint8_t ddrs[3];
- uint8_t ports[3];
- uint8_t pll_ctrl;
- uint8_t timer_ctrl;
- uint8_t timer_counter, ripple_counter;
- uint8_t onesec;
- uint8_t treq, byteack, tip, via_data, via_clock, last_adb;
- uint64_t last_adb_time;
- bool cuda_controls_power;
- bool adb_in;
- int reset_line;
- int m_adb_dtime;
- emu_timer *m_timer, *m_prog_timer;
- uint8_t pram[0x100], disk_pram[0x100];
- bool pram_loaded;
+ uint8_t ddrs[3]{};
+ uint8_t ports[3]{};
+ uint8_t pll_ctrl = 0;
+ uint8_t timer_ctrl = 0;
+ uint8_t timer_counter = 0, ripple_counter = 0;
+ uint8_t onesec = 0;
+ uint8_t treq = 0, byteack = 0, tip = 0, via_data = 0, via_clock = 0, last_adb = 0;
+ uint64_t last_adb_time = 0;
+ bool cuda_controls_power = false;
+ bool adb_in = false;
+ int reset_line = 0;
+ int m_adb_dtime = 0;
+ emu_timer *m_timer = nullptr, *m_prog_timer = nullptr;
+ uint8_t pram[0x100]{}, disk_pram[0x100]{};
+ bool pram_loaded = false;
void send_port(uint8_t offset, uint8_t data);
};
diff --git a/src/mame/machine/dc-ctrl.h b/src/mame/machine/dc-ctrl.h
index 4d29af1da97..4fd4cd65131 100644
--- a/src/mame/machine/dc-ctrl.h
+++ b/src/mame/machine/dc-ctrl.h
@@ -36,10 +36,10 @@ protected:
// device-level overrides
virtual void device_start() override;
- const char *model, *license, *versions;
- uint32_t id;
- uint32_t electric_current;
- uint32_t region;
+ const char *model = nullptr, *license = nullptr, *versions = nullptr;
+ uint32_t id = 0;
+ uint32_t electric_current = 0;
+ uint32_t region = 0;
optional_ioport_array<8> port;
diff --git a/src/mame/machine/dmv_keyb.h b/src/mame/machine/dmv_keyb.h
index 8ae990f5762..75b6c46a19d 100644
--- a/src/mame/machine/dmv_keyb.h
+++ b/src/mame/machine/dmv_keyb.h
@@ -44,9 +44,9 @@ private:
required_device<i8741a_device> m_maincpu;
required_ioport_array<16> m_keyboard;
- uint8_t m_col;
- int m_sd_data_state;
- int m_sd_poll_state;
+ uint8_t m_col = 0;
+ int m_sd_data_state = 0;
+ int m_sd_poll_state = 0;
uint8_t port1_r();
uint8_t port2_r();
diff --git a/src/mame/machine/docg3.h b/src/mame/machine/docg3.h
index f795c562db0..8c7c7caf659 100644
--- a/src/mame/machine/docg3.h
+++ b/src/mame/machine/docg3.h
@@ -72,26 +72,26 @@ private:
void sec_2_write16(uint32_t offset, uint16_t data);
void sec_2_write8(uint32_t offset, uint8_t data);
- int m_size;
+ int m_size = 0;
- uint32_t m_planes;
- uint32_t m_blocks;
- uint32_t m_pages;
- uint32_t m_user_data_size;
- uint32_t m_extra_area_size;
- std::unique_ptr<uint8_t[]> m_data[3];
- uint32_t m_data_size[3];
- uint8_t m_sec_2[0x800];
- uint32_t m_data_1036;
- uint32_t m_data_1036_count;
- uint32_t m_transfer_offset;
- uint8_t m_device;
- uint32_t m_block;
- uint32_t m_page;
- uint32_t m_plane;
- uint32_t m_transfersize;
- uint8_t m_test;
- uint32_t m_address_count;
+ uint32_t m_planes = 0;
+ uint32_t m_blocks = 0;
+ uint32_t m_pages = 0;
+ uint32_t m_user_data_size = 0;
+ uint32_t m_extra_area_size = 0;
+ std::unique_ptr<uint8_t[]> m_data[3]{};
+ uint32_t m_data_size[3]{};
+ uint8_t m_sec_2[0x800]{};
+ uint32_t m_data_1036 = 0;
+ uint32_t m_data_1036_count = 0;
+ uint32_t m_transfer_offset = 0;
+ uint8_t m_device = 0;
+ uint32_t m_block = 0;
+ uint32_t m_page = 0;
+ uint32_t m_plane = 0;
+ uint32_t m_transfersize = 0;
+ uint8_t m_test = 0;
+ uint32_t m_address_count = 0;
};
// device type definition
diff --git a/src/mame/machine/egret.h b/src/mame/machine/egret.h
index a2994035925..91fc4fd0683 100644
--- a/src/mame/machine/egret.h
+++ b/src/mame/machine/egret.h
@@ -101,28 +101,28 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
private:
- uint8_t ddrs[3];
- uint8_t ports[3];
- uint8_t pll_ctrl;
- uint8_t timer_ctrl;
- uint8_t timer_counter;
- uint8_t onesec;
- uint8_t xcvr_session, via_full, sys_session, via_data, via_clock, last_adb;
- uint64_t last_adb_time;
- bool egret_controls_power;
- bool adb_in;
- int reset_line;
- int m_adb_dtime;
- emu_timer *m_timer;
- uint8_t pram[0x100], disk_pram[0x100];
- bool pram_loaded;
+ uint8_t ddrs[3]{};
+ uint8_t ports[3]{};
+ uint8_t pll_ctrl = 0;
+ uint8_t timer_ctrl = 0;
+ uint8_t timer_counter = 0;
+ uint8_t onesec = 0;
+ uint8_t xcvr_session = 0, via_full = 0, sys_session = 0, via_data = 0, via_clock = 0, last_adb = 0;
+ uint64_t last_adb_time = 0;
+ bool egret_controls_power = false;
+ bool adb_in = false;
+ int reset_line = 0;
+ int m_adb_dtime = 0;
+ emu_timer *m_timer = nullptr;
+ uint8_t pram[0x100]{}, disk_pram[0x100]{};
+ bool pram_loaded = false;
#if USE_BUS_ADB
optional_device <adb_connector> m_adb_connector[2];
- adb_device *m_adb_device[2];
- bool m_adb_device_out[2];
- bool m_adb_device_poweron[2];
- bool m_adb_out;
+ adb_device *m_adb_device[2]{};
+ bool m_adb_device_out[2]{};
+ bool m_adb_device_poweron[2]{};
+ bool m_adb_out = false;
#endif
void send_port(uint8_t offset, uint8_t data);
diff --git a/src/mame/machine/elan_eu3a05commonsys.h b/src/mame/machine/elan_eu3a05commonsys.h
index 39cbb2d2eeb..3e62c48d556 100644
--- a/src/mame/machine/elan_eu3a05commonsys.h
+++ b/src/mame/machine/elan_eu3a05commonsys.h
@@ -36,15 +36,15 @@ protected:
required_device<m6502_device> m_cpu;
required_device<address_map_bank_device> m_bank;
- uint8_t m_intmask[2];
+ uint8_t m_intmask[2]{};
- int m_custom_irq;
- int m_custom_nmi;
- uint16_t m_custom_irq_vector;
- uint16_t m_custom_nmi_vector;
+ int m_custom_irq = 0;
+ int m_custom_nmi = 0;
+ uint16_t m_custom_irq_vector = 0;
+ uint16_t m_custom_nmi_vector = 0;
- uint8_t m_rombank_hi;
- uint8_t m_rombank_lo;
+ uint8_t m_rombank_hi = 0;
+ uint8_t m_rombank_lo = 0;
bool m_is_pal; // this is usually a jumper connected to the chip that the software can read (clocks also differ on PAL units)
bool m_allow_timer_irq;
@@ -62,7 +62,7 @@ private:
uint8_t radica_5009_unk_r() { return machine().rand(); }
- emu_timer *m_unk_timer;
+ emu_timer *m_unk_timer = nullptr;
static const device_timer_id TIMER_UNK = 0;
int m_whichtimer;
diff --git a/src/mame/machine/esqlcd.h b/src/mame/machine/esqlcd.h
index 33b06395408..47affeed641 100644
--- a/src/mame/machine/esqlcd.h
+++ b/src/mame/machine/esqlcd.h
@@ -22,9 +22,9 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- uint8_t m_lcdpg[4][32];
- int m_lcdPage;
- int m_lcdPos, m_lcdSavedPos;
+ uint8_t m_lcdpg[4][32]{};
+ int m_lcdPage = 0;
+ int m_lcdPos = 0, m_lcdSavedPos = 0;
output_finder<4, 32*7> m_lcdPix;
output_finder<16> m_leds;
@@ -35,7 +35,7 @@ private:
static char rotate_lcd_char(uint8_t lcdChar, int charRow);
- int m_lcd_command;
+ int m_lcd_command = 0;
};
DECLARE_DEVICE_TYPE(ESQ2X16_SQ1, esq2x16_sq1_device)
diff --git a/src/mame/machine/esqvfd.h b/src/mame/machine/esqvfd.h
index fdaf87f6665..5b827b335b2 100644
--- a/src/mame/machine/esqvfd.h
+++ b/src/mame/machine/esqvfd.h
@@ -51,14 +51,14 @@ protected:
virtual void device_timer(emu_timer &timer, device_timer_id id, int param) override;
output_helper::ptr m_vfds;
- int m_cursx, m_cursy;
- int m_savedx, m_savedy;
- int const m_rows, m_cols;
- uint8_t m_curattr;
- uint8_t m_lastchar;
- uint8_t m_chars[2][40];
- uint8_t m_attrs[2][40];
- uint8_t m_dirty[2][40];
+ int m_cursx = 0, m_cursy = 0;
+ int m_savedx = 0, m_savedy = 0;
+ int const m_rows = 0, m_cols = 0;
+ uint8_t m_curattr = 0;
+ uint8_t m_lastchar = 0;
+ uint8_t m_chars[2][40]{};
+ uint8_t m_attrs[2][40]{};
+ uint8_t m_dirty[2][40]{};
};
class esq1x22_device : public esqvfd_device {
diff --git a/src/mame/machine/fidel_clockdiv.h b/src/mame/machine/fidel_clockdiv.h
index daf12fa66d1..c52e33c52c7 100644
--- a/src/mame/machine/fidel_clockdiv.h
+++ b/src/mame/machine/fidel_clockdiv.h
@@ -39,9 +39,9 @@ private:
memory_passthrough_handler m_read_tap;
memory_passthrough_handler m_write_tap;
- u16 m_div_status;
- double m_div_scale;
- emu_timer *m_div_timer;
+ u16 m_div_status = 0;
+ double m_div_scale = 0;
+ emu_timer *m_div_timer = nullptr;
};
diff --git a/src/mame/machine/gaelcrpt.h b/src/mame/machine/gaelcrpt.h
index 2ce4367132a..a6c987a3709 100644
--- a/src/mame/machine/gaelcrpt.h
+++ b/src/mame/machine/gaelcrpt.h
@@ -26,7 +26,7 @@ protected:
private:
int decrypt(int const enc_prev_word, int const dec_prev_word, int const enc_word);
- int32_t m_lastpc, m_lastoffset, m_lastencword, m_lastdecword;
+ int32_t m_lastpc = 0, m_lastoffset = 0, m_lastencword = 0, m_lastdecword = 0;
// config
uint8_t m_param1;
diff --git a/src/mame/machine/gdrom.h b/src/mame/machine/gdrom.h
index 12014f62094..2d67e274c0d 100644
--- a/src/mame/machine/gdrom.h
+++ b/src/mame/machine/gdrom.h
@@ -35,9 +35,9 @@ protected:
private:
uint8_t GDROM_Cmd11_Reply[32];
- uint32_t read_type; // for command 0x30 only
- uint32_t data_select; // for command 0x30 only
- uint32_t transferOffset;
+ uint32_t read_type = 0; // for command 0x30 only
+ uint32_t data_select = 0; // for command 0x30 only
+ uint32_t transferOffset = 0;
bool is_real_gdrom_disc;
};
diff --git a/src/mame/machine/hal2.h b/src/mame/machine/hal2.h
index cf146842c48..0320dbd2c28 100644
--- a/src/mame/machine/hal2.h
+++ b/src/mame/machine/hal2.h
@@ -82,27 +82,27 @@ protected:
required_device<dac_16bit_r2r_twos_complement_device> m_ldac;
required_device<dac_16bit_r2r_twos_complement_device> m_rdac;
- uint16_t m_isr;
- uint16_t m_iar;
- uint16_t m_idr[4];
-
- uint16_t m_codeca_ctrl[2];
- uint16_t m_codeca_channel;
- uint16_t m_codeca_clock;
- uint16_t m_codeca_channel_count;
-
- uint16_t m_codecb_ctrl[2];
- uint16_t m_codecb_channel;
- uint16_t m_codecb_clock;
- uint16_t m_codecb_channel_count;
-
- uint16_t m_bres_clock_sel[3];
- uint16_t m_bres_clock_inc[3];
- uint16_t m_bres_clock_modctrl[3];
- uint16_t m_bres_clock_freq[3];
- attotime m_bres_clock_rate[3];
-
- uint16_t m_curr_dac;
+ uint16_t m_isr = 0;
+ uint16_t m_iar = 0;
+ uint16_t m_idr[4]{};
+
+ uint16_t m_codeca_ctrl[2]{};
+ uint16_t m_codeca_channel = 0;
+ uint16_t m_codeca_clock = 0;
+ uint16_t m_codeca_channel_count = 0;
+
+ uint16_t m_codecb_ctrl[2]{};
+ uint16_t m_codecb_channel = 0;
+ uint16_t m_codecb_clock = 0;
+ uint16_t m_codecb_channel_count = 0;
+
+ uint16_t m_bres_clock_sel[3]{};
+ uint16_t m_bres_clock_inc[3]{};
+ uint16_t m_bres_clock_modctrl[3]{};
+ uint16_t m_bres_clock_freq[3]{};
+ attotime m_bres_clock_rate[3]{};
+
+ uint16_t m_curr_dac = 0;
static const uint32_t s_channel_pair[4];
};
diff --git a/src/mame/machine/hp48_port.h b/src/mame/machine/hp48_port.h
index 4d2fcc4ba2a..c98391198b2 100644
--- a/src/mame/machine/hp48_port.h
+++ b/src/mame/machine/hp48_port.h
@@ -59,8 +59,8 @@ private:
void fill_port();
void unfill_port();
- int m_module; /* memory module where the port is visible */
- int m_max_size; /* maximum size, in bytes 128 KB or 4 GB */
+ int m_module = 0; /* memory module where the port is visible */
+ int m_max_size = 0; /* maximum size, in bytes 128 KB or 4 GB */
uint32_t m_port_size;
bool m_port_write;
diff --git a/src/mame/machine/hpc1.h b/src/mame/machine/hpc1.h
index 514ca272a36..e7b87c5ac0c 100644
--- a/src/mame/machine/hpc1.h
+++ b/src/mame/machine/hpc1.h
@@ -96,15 +96,15 @@ protected:
struct scsi_dma_t
{
- uint32_t m_desc;
- uint32_t m_addr;
- uint32_t m_ctrl;
- uint32_t m_length;
- uint32_t m_next;
- bool m_irq;
- bool m_drq;
- bool m_to_mem;
- bool m_active;
+ uint32_t m_desc = 0;
+ uint32_t m_addr = 0;
+ uint32_t m_ctrl = 0;
+ uint32_t m_length = 0;
+ uint32_t m_next = 0;
+ bool m_irq = false;
+ bool m_drq = false;
+ bool m_to_mem = false;
+ bool m_active = false;
};
static void cdrom_config(device_t *device);
@@ -112,19 +112,19 @@ protected:
static void indigo_mice(device_slot_interface &device);
void wd33c93(device_t *device);
- uint8_t m_misc_status;
- uint32_t m_cpu_aux_ctrl;
- uint32_t m_parbuf_ptr;
- uint32_t m_local_int_status[2];
- uint32_t m_local_int_mask[2];
- bool m_int_status[2];
- uint32_t m_vme_int_mask[2];
+ uint8_t m_misc_status = 0;
+ uint32_t m_cpu_aux_ctrl = 0;
+ uint32_t m_parbuf_ptr = 0;
+ uint32_t m_local_int_status[2]{};
+ uint32_t m_local_int_mask[2]{};
+ bool m_int_status[2]{};
+ uint32_t m_vme_int_mask[2]{};
scsi_dma_t m_scsi_dma;
- uint8_t m_duart_int_status;
+ uint8_t m_duart_int_status = 0;
- address_space *m_cpu_space;
+ address_space *m_cpu_space = nullptr;
static char const *const RS232A_TAG;
static char const *const RS232B_TAG;
diff --git a/src/mame/machine/hpc3.h b/src/mame/machine/hpc3.h
index 508f707bc30..74eb96438e0 100644
--- a/src/mame/machine/hpc3.h
+++ b/src/mame/machine/hpc3.h
@@ -130,12 +130,12 @@ protected:
bool m_active;
uint32_t m_cur_ptr;
uint32_t m_desc_ptr;
- uint32_t m_desc_flags;
- uint32_t m_next_ptr;
- uint32_t m_bytes_left;
- uint32_t m_config;
- uint32_t m_control;
- emu_timer *m_timer;
+ uint32_t m_desc_flags = 0;
+ uint32_t m_next_ptr = 0;
+ uint32_t m_bytes_left = 0;
+ uint32_t m_config = 0;
+ uint32_t m_control = 0;
+ emu_timer *m_timer = nullptr;
};
enum
diff --git a/src/mame/machine/hyperscan_card.h b/src/mame/machine/hyperscan_card.h
index 5a48483149a..5518bf4ee7e 100644
--- a/src/mame/machine/hyperscan_card.h
+++ b/src/mame/machine/hyperscan_card.h
@@ -39,12 +39,12 @@ private:
void make_resp(std::vector<uint8_t> const &data, bool add_crc);
void check_command();
- int m_state;
- int m_bit_pos;
- uint8_t m_data;
+ int m_state = 0;
+ int m_bit_pos = 0;
+ uint8_t m_data = 0;
std::vector<uint8_t> m_cmd_buf;
std::vector<uint8_t> m_resp_buf;
- uint8_t m_resp_idx;
+ uint8_t m_resp_idx = 0;
attotime m_last_at;
uint8_t m_memory[120];
};
diff --git a/src/mame/machine/igs025.h b/src/mame/machine/igs025.h
index 237d7f3db51..c57628d7464 100644
--- a/src/mame/machine/igs025.h
+++ b/src/mame/machine/igs025.h
@@ -16,9 +16,9 @@ public:
uint16_t killbld_igs025_prot_r(offs_t offset);
// use setters instead of making public?
- const uint8_t (*m_kb_source_data)[0xec];
- uint32_t m_kb_game_id;
- uint32_t m_kb_region;
+ const uint8_t (*m_kb_source_data)[0xec]{};
+ uint32_t m_kb_game_id = 0;
+ uint32_t m_kb_region = 0;
template <typename... T> void set_external_cb(T &&... args) { m_execute_external.set(std::forward<T>(args)...); }
@@ -33,14 +33,14 @@ protected:
igs025_execute_external m_execute_external;
- uint16_t m_kb_prot_hold;
- uint16_t m_kb_prot_hilo;
- uint16_t m_kb_prot_hilo_select;
+ uint16_t m_kb_prot_hold = 0;
+ uint16_t m_kb_prot_hilo = 0;
+ uint16_t m_kb_prot_hilo_select = 0;
- int m_kb_cmd;
- int m_kb_reg;
- int m_kb_ptr;
- uint8_t m_kb_swap;
+ int m_kb_cmd = 0;
+ int m_kb_reg = 0;
+ int m_kb_ptr = 0;
+ uint8_t m_kb_swap = 0;
void killbld_protection_calculate_hilo();
void killbld_protection_calculate_hold(int y, int z);
@@ -48,8 +48,8 @@ protected:
void no_callback_setup(void);
- uint16_t m_olds_bs;
- uint16_t m_kb_cmd3;
+ uint16_t m_olds_bs = 0;
+ uint16_t m_kb_cmd3 = 0;
};
diff --git a/src/mame/machine/igs028.h b/src/mame/machine/igs028.h
index 287f5671a51..9198afd1503 100644
--- a/src/mame/machine/igs028.h
+++ b/src/mame/machine/igs028.h
@@ -12,7 +12,7 @@ class igs028_device : public device_t
public:
igs028_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- uint16_t* m_sharedprotram;
+ uint16_t* m_sharedprotram = nullptr;
void IGS028_handle(void);
diff --git a/src/mame/machine/inder_vid.h b/src/mame/machine/inder_vid.h
index 0a866ed3a6e..d827230fd76 100644
--- a/src/mame/machine/inder_vid.h
+++ b/src/mame/machine/inder_vid.h
@@ -44,7 +44,7 @@ private:
required_device<palette_device> m_palette;
required_device<tms34010_device> m_tms;
- int m_shiftfull; // this might be a driver specific hack for a TMS bug.
+ int m_shiftfull = 0; // this might be a driver specific hack for a TMS bug.
TMS340X0_TO_SHIFTREG_CB_MEMBER(to_shiftreg);
TMS340X0_FROM_SHIFTREG_CB_MEMBER(from_shiftreg);
diff --git a/src/mame/machine/interpro_arbga.h b/src/mame/machine/interpro_arbga.h
index d16f53770a9..f5b95fd7704 100644
--- a/src/mame/machine/interpro_arbga.h
+++ b/src/mame/machine/interpro_arbga.h
@@ -67,21 +67,21 @@ protected:
virtual void device_reset() override;
private:
- u32 m_sdepid;
- u32 m_arbsnap;
- u32 m_fixprils;
- u32 m_fixprims;
- u32 m_sysdomls;
- u32 m_sysdomms;
- u32 m_tctrl;
- u8 m_inem;
- u8 m_enem;
- u32 m_hog;
- u32 m_lock;
- u32 m_lockprs;
- u32 m_hiblockls;
- u32 m_hiblockms;
- u32 m_arbrev;
+ u32 m_sdepid = 0;
+ u32 m_arbsnap = 0;
+ u32 m_fixprils = 0;
+ u32 m_fixprims = 0;
+ u32 m_sysdomls = 0;
+ u32 m_sysdomms = 0;
+ u32 m_tctrl = 0;
+ u8 m_inem = 0;
+ u8 m_enem = 0;
+ u32 m_hog = 0;
+ u32 m_lock = 0;
+ u32 m_lockprs = 0;
+ u32 m_hiblockls = 0;
+ u32 m_hiblockms = 0;
+ u32 m_arbrev = 0;
};
// device type definition
diff --git a/src/mame/machine/interpro_ioga.h b/src/mame/machine/interpro_ioga.h
index 56dc6995cc6..90a63f17013 100644
--- a/src/mame/machine/interpro_ioga.h
+++ b/src/mame/machine/interpro_ioga.h
@@ -412,8 +412,8 @@ protected:
void eth_control_w(offs_t offset, u16 data, u16 mem_mask = ~0);
private:
- u32 m_eth_base;
- u16 m_eth_control;
+ u32 m_eth_base = 0;
+ u16 m_eth_control = 0;
};
class turquoise_ioga_device : public interpro_ioga_device
@@ -454,8 +454,8 @@ protected:
void eth_control_w(offs_t offset, u16 data, u16 mem_mask = ~0);
private:
- u32 m_eth_base;
- u16 m_eth_control;
+ u32 m_eth_base = 0;
+ u16 m_eth_control = 0;
};
class sapphire_ioga_device : public interpro_ioga_device
@@ -549,18 +549,18 @@ protected:
private:
static const u8 INTERRUPT_COUNT = 19;
- u32 m_eth_remap;
- u32 m_eth_mappg;
- u32 m_eth_control;
+ u32 m_eth_remap = 0;
+ u32 m_eth_mappg = 0;
+ u32 m_eth_control = 0;
- u32 m_timer2_count;
- u32 m_timer2_value;
- u32 m_timer3_count;
+ u32 m_timer2_count = 0;
+ u32 m_timer2_value = 0;
+ u32 m_timer3_count = 0;
- emu_timer *m_timer2;
- emu_timer *m_timer3;
+ emu_timer *m_timer2 = nullptr;
+ emu_timer *m_timer3 = nullptr;
- u16 m_swicr[8];
+ u16 m_swicr[8]{};
};
// device type definition
diff --git a/src/mame/machine/interpro_mcga.h b/src/mame/machine/interpro_mcga.h
index 2887fa07ab8..9818d4d81c1 100644
--- a/src/mame/machine/interpro_mcga.h
+++ b/src/mame/machine/interpro_mcga.h
@@ -64,10 +64,10 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- u16 m_control, m_error, m_memsize;
- u8 m_frcrd, m_cbsub;
+ u16 m_control = 0, m_error = 0, m_memsize = 0;
+ u8 m_frcrd = 0, m_cbsub = 0;
- u16 m_reg[3];
+ u16 m_reg[3]{};
private:
@@ -116,7 +116,7 @@ public:
void error_control_w(u16 data) { m_error_control = data; }
private:
- u16 m_error_control;
+ u16 m_error_control = 0;
};
// device type definition
diff --git a/src/mame/machine/ioc2.h b/src/mame/machine/ioc2.h
index 63113d08077..b69cc24d6f0 100644
--- a/src/mame/machine/ioc2.h
+++ b/src/mame/machine/ioc2.h
@@ -177,7 +177,7 @@ protected:
uint32_t m_par_read_cnt;
uint32_t m_par_cntl;
- uint8_t m_system_id;
+ uint8_t m_system_id = 0;
static char const *const SCC_TAG;
static char const *const PI1_TAG;
diff --git a/src/mame/machine/iteagle_fpga.h b/src/mame/machine/iteagle_fpga.h
index 5c1e394d2e8..391934e7898 100644
--- a/src/mame/machine/iteagle_fpga.h
+++ b/src/mame/machine/iteagle_fpga.h
@@ -135,7 +135,7 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
private:
- address_space *m_memory_space;
+ address_space *m_memory_space = nullptr;
uint16_t m_sw_version;
uint8_t m_hw_version;
diff --git a/src/mame/machine/k007452.h b/src/mame/machine/k007452.h
index 2ffe202061c..b294ee83c4d 100644
--- a/src/mame/machine/k007452.h
+++ b/src/mame/machine/k007452.h
@@ -33,10 +33,10 @@ protected:
private:
// internal state
- u8 m_math_regs[6];
- u16 m_multiply_result;
- u16 m_divide_quotient;
- u16 m_divide_remainder;
+ u8 m_math_regs[6]{};
+ u16 m_multiply_result = 0;
+ u16 m_divide_quotient = 0;
+ u16 m_divide_remainder = 0;
};
diff --git a/src/mame/machine/k573fpga.h b/src/mame/machine/k573fpga.h
index 1b89d623d41..1309c01501c 100644
--- a/src/mame/machine/k573fpga.h
+++ b/src/mame/machine/k573fpga.h
@@ -69,16 +69,16 @@ private:
required_shared_ptr<uint16_t> ram;
required_device<mas3507d_device> mas3507d;
- uint16_t crypto_key1, crypto_key2;
- uint8_t crypto_key3;
+ uint16_t crypto_key1 = 0, crypto_key2 = 0;
+ uint8_t crypto_key3 = 0;
- uint32_t mp3_start_addr, mp3_cur_addr, mp3_end_addr;
- bool use_ddrsbm_fpga;
+ uint32_t mp3_start_addr = 0, mp3_cur_addr = 0, mp3_end_addr = 0;
+ bool use_ddrsbm_fpga = false;
- bool is_stream_active, is_timer_active;
- uint32_t counter_previous, counter_offset;
- int32_t counter_current;
- uint32_t last_playback_status;
+ bool is_stream_active = false, is_timer_active = false;
+ uint32_t counter_previous = 0, counter_offset = 0;
+ int32_t counter_current = 0;
+ uint32_t last_playback_status = 0;
};
#endif // MAME_MACHINE_K573FPGA_H
diff --git a/src/mame/machine/k7659kb.h b/src/mame/machine/k7659kb.h
index f48ea303d62..24e5bed5cb8 100644
--- a/src/mame/machine/k7659kb.h
+++ b/src/mame/machine/k7659kb.h
@@ -46,13 +46,13 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
virtual ioport_constructor device_input_ports() const override;
- emu_timer *m_timer;
+ emu_timer *m_timer = nullptr;
private:
uint8_t key_pos(uint8_t val);
- uint8_t m_lookup;
- uint8_t m_key;
- const uint8_t *m_p_rom;
+ uint8_t m_lookup = 0;
+ uint8_t m_key = 0;
+ const uint8_t *m_p_rom = nullptr;
};
diff --git a/src/mame/machine/konppc.h b/src/mame/machine/konppc.h
index 41b6e49ad9a..fb4ce32f023 100644
--- a/src/mame/machine/konppc.h
+++ b/src/mame/machine/konppc.h
@@ -80,22 +80,22 @@ private:
uint32_t dsp_comm_sharc[MAX_CG_BOARDS][2];
uint8_t dsp_shared_ram_bank[MAX_CG_BOARDS];
- int32_t cgboard_id;
+ int32_t cgboard_id = 0;
int32_t cgboard_type;
int32_t num_cgboards;
std::unique_ptr<uint32_t[]> dsp_shared_ram[MAX_CG_BOARDS];
- uint32_t dsp_state[MAX_CG_BOARDS];
- uint32_t nwk_device_sel[MAX_CG_BOARDS];
- const char *texture_bank[MAX_CG_BOARDS];
+ uint32_t dsp_state[MAX_CG_BOARDS]{};
+ uint32_t nwk_device_sel[MAX_CG_BOARDS]{};
+ const char *texture_bank[MAX_CG_BOARDS]{};
- int nwk_fifo_half_full_r;
- int nwk_fifo_half_full_w;
- int nwk_fifo_full;
- int nwk_fifo_mask;
+ int nwk_fifo_half_full_r = 0;
+ int nwk_fifo_half_full_w = 0;
+ int nwk_fifo_full = 0;
+ int nwk_fifo_mask = 0;
- bool enable_3d[MAX_CG_BOARDS];
+ bool enable_3d[MAX_CG_BOARDS]{};
std::unique_ptr<uint32_t[]> nwk_fifo[MAX_CG_BOARDS];
int32_t nwk_fifo_read_ptr[MAX_CG_BOARDS];
diff --git a/src/mame/machine/m1comm.h b/src/mame/machine/m1comm.h
index 451c6e9b436..6f7190c894f 100644
--- a/src/mame/machine/m1comm.h
+++ b/src/mame/machine/m1comm.h
@@ -78,26 +78,26 @@ private:
// - share_r
// - share_w
- uint8_t m_shared[0x1000]; // 2x 2k = 4k; model1 accesses this with 16bit data and 11bit address (A0 to A10)
- uint8_t m_syn; // bit0 is used to trigger DOP line on VINT, bit1 is used to enable/disable VINT/IRQ5
- uint8_t m_zfg; // z80 flip gate, bit0 is stored
- uint8_t m_cn; // bit0 is used to enable/disable the comm board
- uint8_t m_fg; // flip gate, bit0 is stored, bit7 is connected to ZFG bit 0
+ uint8_t m_shared[0x1000]{}; // 2x 2k = 4k; model1 accesses this with 16bit data and 11bit address (A0 to A10)
+ uint8_t m_syn = 0; // bit0 is used to trigger DOP line on VINT, bit1 is used to enable/disable VINT/IRQ5
+ uint8_t m_zfg = 0; // z80 flip gate, bit0 is stored
+ uint8_t m_cn = 0; // bit0 is used to enable/disable the comm board
+ uint8_t m_fg = 0; // flip gate, bit0 is stored, bit7 is connected to ZFG bit 0
#ifdef M1COMM_SIMULATION
osd_file::ptr m_line_rx; // rx line - can be either differential, simple serial or toslink
osd_file::ptr m_line_tx; // tx line - is differential, simple serial and toslink
- char m_localhost[256];
- char m_remotehost[256];
- uint8_t m_buffer0[0x200];
- uint8_t m_buffer1[0x200];
+ char m_localhost[256]{};
+ char m_remotehost[256]{};
+ uint8_t m_buffer0[0x200]{};
+ uint8_t m_buffer1[0x200]{};
uint8_t m_framesync;
- uint8_t m_linkenable;
- uint16_t m_linktimer;
- uint8_t m_linkalive;
- uint8_t m_linkid;
- uint8_t m_linkcount;
+ uint8_t m_linkenable = 0;
+ uint16_t m_linktimer = 0;
+ uint8_t m_linkalive = 0;
+ uint8_t m_linkid = 0;
+ uint8_t m_linkcount = 0;
void comm_tick();
int read_frame(int dataSize);
diff --git a/src/mame/machine/m20_8086.h b/src/mame/machine/m20_8086.h
index ae083e47d62..98b561328c8 100644
--- a/src/mame/machine/m20_8086.h
+++ b/src/mame/machine/m20_8086.h
@@ -44,7 +44,7 @@ private:
required_device<pic8259_device> m_pic;
required_device<ram_device> m_ram;
bool m_8086_halt;
- int m_nvi, m_vi;
+ int m_nvi = 0, m_vi = 0;
IRQ_CALLBACK_MEMBER(int_cb);
};
diff --git a/src/mame/machine/m2comm.h b/src/mame/machine/m2comm.h
index bc437299da6..83821ba961a 100644
--- a/src/mame/machine/m2comm.h
+++ b/src/mame/machine/m2comm.h
@@ -51,27 +51,27 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
private:
- uint8_t m_shared[0x4000]; // 16k shared memory
- uint8_t m_zfg; // z80 flip gate - bit 0 switches memory banks, bit7 is connected to FG bit 0
- uint8_t m_cn; // bit0 is used to enable/disable the comm board
- uint8_t m_fg; // i960 flip gate - bit0 is stored, bit7 is connected to ZFG bit 0
+ uint8_t m_shared[0x4000]{}; // 16k shared memory
+ uint8_t m_zfg = 0; // z80 flip gate - bit 0 switches memory banks, bit7 is connected to FG bit 0
+ uint8_t m_cn = 0; // bit0 is used to enable/disable the comm board
+ uint8_t m_fg = 0; // i960 flip gate - bit0 is stored, bit7 is connected to ZFG bit 0
osd_file::ptr m_line_rx; // rx line - can be either differential, simple serial or toslink
osd_file::ptr m_line_tx; // tx line - is differential, simple serial and toslink
- char m_localhost[256];
- char m_remotehost[256];
- uint8_t m_buffer0[0x1000];
- uint8_t m_buffer1[0x1000];
+ char m_localhost[256]{};
+ char m_remotehost[256]{};
+ uint8_t m_buffer0[0x1000]{};
+ uint8_t m_buffer1[0x1000]{};
uint8_t m_framesync;
uint16_t m_frameoffset;
#ifdef M2COMM_SIMULATION
- uint8_t m_linkenable;
- uint16_t m_linktimer;
- uint8_t m_linkalive;
- uint8_t m_linkid;
- uint8_t m_linkcount;
- uint8_t m_zfg_delay;
+ uint8_t m_linkenable = 0;
+ uint16_t m_linktimer = 0;
+ uint8_t m_linkalive = 0;
+ uint8_t m_linkid = 0;
+ uint8_t m_linkcount = 0;
+ uint8_t m_zfg_delay = 0;
void comm_tick();
void read_fg();
diff --git a/src/mame/machine/m3comm.h b/src/mame/machine/m3comm.h
index e0dfdb074c0..7f63d698424 100644
--- a/src/mame/machine/m3comm.h
+++ b/src/mame/machine/m3comm.h
@@ -51,24 +51,24 @@ protected:
virtual void device_add_mconfig(machine_config &config) override;
private:
- uint16_t naomi_control;
- uint16_t naomi_offset;
- uint16_t m_status0;
- uint16_t m_status1;
- uint16_t m_commbank;
+ uint16_t naomi_control = 0;
+ uint16_t naomi_offset = 0;
+ uint16_t m_status0 = 0;
+ uint16_t m_status1 = 0;
+ uint16_t m_commbank = 0;
- uint16_t recv_offset;
- uint16_t recv_size;
- uint16_t send_offset;
- uint16_t send_size;
+ uint16_t recv_offset = 0;
+ uint16_t recv_size = 0;
+ uint16_t send_offset = 0;
+ uint16_t send_size = 0;
emu_file m_line_rx; // rx line - can be either differential, simple serial or toslink
emu_file m_line_tx; // tx line - is differential, simple serial and toslink
- char m_localhost[256];
- char m_remotehost[256];
+ char m_localhost[256]{};
+ char m_remotehost[256]{};
- emu_timer *timer;
+ emu_timer *timer = nullptr;
required_shared_ptr<uint16_t> m68k_ram;
required_device<m68000_device> m_commcpu;
diff --git a/src/mame/machine/macrtc.h b/src/mame/machine/macrtc.h
index 183c55815b7..f921e7b76b6 100644
--- a/src/mame/machine/macrtc.h
+++ b/src/mame/machine/macrtc.h
@@ -51,35 +51,35 @@ protected:
private:
/* state of rTCEnb and rTCClk lines */
- uint8_t m_rtc_rTCEnb;
- uint8_t m_rtc_rTCClk;
+ uint8_t m_rtc_rTCEnb = 0;
+ uint8_t m_rtc_rTCClk = 0;
/* serial transmit/receive register : bits are shifted in/out of this byte */
- uint8_t m_rtc_data_byte;
+ uint8_t m_rtc_data_byte = 0;
/* serial transmitted/received bit count */
- uint8_t m_rtc_bit_count;
+ uint8_t m_rtc_bit_count = 0;
/* direction of the current transfer (0 : VIA->RTC, 1 : RTC->VIA) */
- uint8_t m_rtc_data_dir;
+ uint8_t m_rtc_data_dir = 0;
/* when rtc_data_dir == 1, state of rTCData as set by RTC (-> data bit seen by VIA) */
- uint8_t m_rtc_data_out;
+ uint8_t m_rtc_data_out = 0;
/* set to 1 when command in progress */
- uint8_t m_rtc_cmd;
+ uint8_t m_rtc_cmd = 0;
/* write protect flag */
- uint8_t m_rtc_write_protect;
+ uint8_t m_rtc_write_protect = 0;
/* internal seconds register */
- uint8_t m_rtc_seconds[/*8*/4];
+ uint8_t m_rtc_seconds[/*8*/4]{};
/* 20-byte long PRAM, or 256-byte long XPRAM */
- uint8_t m_pram[256];
+ uint8_t m_pram[256]{};
/* current extended address and RTC state */
- uint8_t m_rtc_xpaddr;
- uint8_t m_rtc_state;
- uint8_t m_data_latch;
+ uint8_t m_rtc_xpaddr = 0;
+ uint8_t m_rtc_state = 0;
+ uint8_t m_data_latch = 0;
// timers
- emu_timer *m_clock_timer;
+ emu_timer *m_clock_timer = nullptr;
void rtc_shift_data(int data);
void rtc_execute_cmd(int data);
diff --git a/src/mame/machine/mapledev.h b/src/mame/machine/mapledev.h
index 77f4d95a991..c7bab8597df 100644
--- a/src/mame/machine/mapledev.h
+++ b/src/mame/machine/mapledev.h
@@ -20,9 +20,9 @@ protected:
maple_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
- uint32_t reply_size;
- bool reply_partial;
- uint32_t reply_buffer[256];
+ uint32_t reply_size = 0;
+ bool reply_partial = false;
+ uint32_t reply_buffer[256]{};
// device-level overrides
virtual void device_start() override;
@@ -40,10 +40,10 @@ protected:
// Configuration
required_device<maple_dc_device> host;
- int host_port;
+ int host_port = 0;
private:
- emu_timer *timer;
+ emu_timer *timer = nullptr;
};
#endif // MAME_MACHINE_MAPLEDEV_H
diff --git a/src/mame/machine/mathbox.h b/src/mame/machine/mathbox.h
index 23daa72d40a..665dd93d8ed 100644
--- a/src/mame/machine/mathbox.h
+++ b/src/mame/machine/mathbox.h
@@ -32,10 +32,10 @@ protected:
// internal state
/* math box scratch registers */
- int16_t m_reg[16];
+ int16_t m_reg[16]{};
/* math box result */
- int16_t m_result;
+ int16_t m_result = 0;
};
DECLARE_DEVICE_TYPE(MATHBOX, mathbox_device)
diff --git a/src/mame/machine/mbee.cpp b/src/mame/machine/mbee.cpp
index ba53694a6b0..851fbd4fc08 100644
--- a/src/mame/machine/mbee.cpp
+++ b/src/mame/machine/mbee.cpp
@@ -735,7 +735,7 @@ image_init_result mbee_state::load_cart(device_image_interface &image, generic_s
m_pak_extended[pak_index] = (size > 0x2000) ? true : false;
- slot->rom_alloc(m_pak_extended ? 0x4000 : 0x2000, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE); // we alloc the amount for a real rom
+ slot->rom_alloc(m_pak_extended[pak_index] ? 0x4000 : 0x2000, GENERIC_ROM8_WIDTH, ENDIANNESS_LITTLE); // we alloc the amount for a real rom
slot->common_load_rom(slot->get_rom_base(), size, "rom");
// Validate the rom
diff --git a/src/mame/machine/mega32x.h b/src/mame/machine/mega32x.h
index 82f22dcf1bc..86aec57b93f 100644
--- a/src/mame/machine/mega32x.h
+++ b/src/mame/machine/mega32x.h
@@ -123,80 +123,80 @@ protected:
required_device<timer_device> m_scan_timer;
memory_bank_creator m_rombank;
- int m_32x_hcount_compare_val;
- int m_32x_vblank_flag;
- int m_sh2_are_running;
- int m_32x_240mode;
- uint16_t m_32x_a1518a_reg;
+ int m_32x_hcount_compare_val = 0;
+ int m_32x_vblank_flag = 0;
+ int m_sh2_are_running = 0;
+ int m_32x_240mode = 0;
+ uint16_t m_32x_a1518a_reg = 0;
- sound_stream *m_stream;
+ sound_stream *m_stream = nullptr;
TIMER_CALLBACK_MEMBER(handle_pwm_callback);
void calculate_pwm_timer();
- uint16_t m_pwm_ctrl, m_pwm_cycle, m_pwm_tm_reg;
+ uint16_t m_pwm_ctrl = 0, m_pwm_cycle = 0, m_pwm_tm_reg = 0;
static constexpr int PWM_FIFO_SIZE = 3;
- uint16_t m_cur_lch[PWM_FIFO_SIZE],m_cur_rch[PWM_FIFO_SIZE];
- uint16_t m_pwm_cycle_reg; //used for latching
- uint8_t m_pwm_timer_tick;
- uint8_t m_lch_size, m_rch_size;
- uint16_t m_lch_fifo_state, m_rch_fifo_state;
+ uint16_t m_cur_lch[PWM_FIFO_SIZE]{},m_cur_rch[PWM_FIFO_SIZE]{};
+ uint16_t m_pwm_cycle_reg = 0; //used for latching
+ uint8_t m_pwm_timer_tick = 0;
+ uint8_t m_lch_size = 0, m_rch_size = 0;
+ uint16_t m_lch_fifo_state = 0, m_rch_fifo_state = 0;
void lch_pop();
void rch_pop();
uint16_t get_hposition(void);
- emu_timer *m_32x_pwm_timer;
+ emu_timer *m_32x_pwm_timer = nullptr;
private:
- int m_32x_displaymode;
- int m_32x_videopriority;
- uint32_t m_32x_linerender[320+258]; // tmp buffer (bigger than it needs to be to simplify RLE decode)
-
- int m_32x_adapter_enabled;
- int m_32x_access_auth;
- int m_32x_screenshift;
-
- uint16_t m_32x_68k_a15104_reg;
- int m_sh2_master_vint_enable, m_sh2_slave_vint_enable;
- int m_sh2_master_hint_enable, m_sh2_slave_hint_enable;
- int m_sh2_master_cmdint_enable, m_sh2_slave_cmdint_enable;
- int m_sh2_hint_in_vbl;
- int m_sh2_master_vint_pending;
- int m_sh2_slave_vint_pending;
- int m_32x_fb_swap;
- int m_32x_hcount_reg;
-
- uint16_t m_32x_autofill_length;
- uint16_t m_32x_autofill_address;
- uint16_t m_32x_autofill_data;
- uint16_t m_a15106_reg;
- uint16_t m_dreq_src_addr[2],m_dreq_dst_addr[2],m_dreq_size;
- uint8_t m_sega_tv;
- uint16_t m_hint_vector[2];
- uint16_t m_a15100_reg;
- int m_32x_68k_a15102_reg;
-
- int m_32x_pal;
- int m_framerate;
- int m_base_total_scanlines;
- int m_total_scanlines;
-
- uint16_t m_commsram[8];
+ int m_32x_displaymode = 0;
+ int m_32x_videopriority = 0;
+ uint32_t m_32x_linerender[320+258]{}; // tmp buffer (bigger than it needs to be to simplify RLE decode)
+
+ int m_32x_adapter_enabled = 0;
+ int m_32x_access_auth = 0;
+ int m_32x_screenshift = 0;
+
+ uint16_t m_32x_68k_a15104_reg = 0;
+ int m_sh2_master_vint_enable = 0, m_sh2_slave_vint_enable = 0;
+ int m_sh2_master_hint_enable = 0, m_sh2_slave_hint_enable = 0;
+ int m_sh2_master_cmdint_enable = 0, m_sh2_slave_cmdint_enable = 0;
+ int m_sh2_hint_in_vbl = 0;
+ int m_sh2_master_vint_pending = 0;
+ int m_sh2_slave_vint_pending = 0;
+ int m_32x_fb_swap = 0;
+ int m_32x_hcount_reg = 0;
+
+ uint16_t m_32x_autofill_length = 0;
+ uint16_t m_32x_autofill_address = 0;
+ uint16_t m_32x_autofill_data = 0;
+ uint16_t m_a15106_reg = 0;
+ uint16_t m_dreq_src_addr[2]{}, m_dreq_dst_addr[2]{}, m_dreq_size = 0;
+ uint8_t m_sega_tv = 0;
+ uint16_t m_hint_vector[2]{};
+ uint16_t m_a15100_reg = 0;
+ int m_32x_68k_a15102_reg = 0;
+
+ int m_32x_pal = 0;
+ int m_framerate = 0;
+ int m_base_total_scanlines = 0;
+ int m_total_scanlines = 0;
+
+ uint16_t m_commsram[8]{};
std::unique_ptr<uint16_t[]> m_32x_dram0;
std::unique_ptr<uint16_t[]> m_32x_dram1;
- uint16_t *m_32x_display_dram, *m_32x_access_dram;
+ uint16_t *m_32x_display_dram = nullptr, *m_32x_access_dram = nullptr;
std::unique_ptr<uint16_t[]> m_32x_palette;
- uint16_t m_fifo_block_a[4];
- uint16_t m_fifo_block_b[4];
- uint16_t* m_current_fifo_block;
- uint16_t* m_current_fifo_readblock;
- int m_current_fifo_write_pos;
- int m_current_fifo_read_pos;
- int m_fifo_block_a_full;
- int m_fifo_block_b_full;
+ uint16_t m_fifo_block_a[4]{};
+ uint16_t m_fifo_block_b[4]{};
+ uint16_t* m_current_fifo_block = nullptr;
+ uint16_t* m_current_fifo_readblock = nullptr;
+ int m_current_fifo_write_pos = 0;
+ int m_current_fifo_read_pos = 0;
+ int m_fifo_block_a_full = 0;
+ int m_fifo_block_b_full = 0;
};
diff --git a/src/mame/machine/megacd.h b/src/mame/machine/megacd.h
index 1074c0405db..4e2494b7fac 100644
--- a/src/mame/machine/megacd.h
+++ b/src/mame/machine/megacd.h
@@ -129,51 +129,51 @@ protected:
// can't use a memshare because it's 8-bit RAM in a 16-bit address space
std::vector<uint8_t> m_backupram;
- uint8_t m_font_color;
+ uint8_t m_font_color = 0;
- uint16_t scd_rammode;
- uint32_t scd_mode_dmna_ret_flags ;
+ uint16_t scd_rammode = 0;
+ uint32_t scd_mode_dmna_ret_flags = 0;
- tilemap_t *segacd_stampmap[4];
+ tilemap_t *segacd_stampmap[4]{};
- uint8_t segacd_ram_writeprotect_bits;
- int segacd_4meg_prgbank;// = 0; // which bank the MainCPU can see of the SubCPU PrgRAM
- int segacd_memory_priority_mode;// = 0;
- int segacd_stampsize;
+ uint8_t segacd_ram_writeprotect_bits = 0;
+ int segacd_4meg_prgbank = 0; // which bank the MainCPU can see of the SubCPU PrgRAM
+ int segacd_memory_priority_mode = 0;
+ int segacd_stampsize = 0;
- uint16_t segacd_hint_register;
- uint16_t segacd_imagebuffer_vdot_size;
- uint16_t segacd_imagebuffer_vcell_size;
- uint16_t segacd_imagebuffer_hdot_size;
+ uint16_t segacd_hint_register = 0;
+ uint16_t segacd_imagebuffer_vdot_size = 0;
+ uint16_t segacd_imagebuffer_vcell_size = 0;
+ uint16_t segacd_imagebuffer_hdot_size = 0;
- int segacd_conversion_active;// = 0;
- uint16_t segacd_stampmap_base_address;
- uint16_t segacd_imagebuffer_start_address;
- uint16_t segacd_imagebuffer_offset;
+ int segacd_conversion_active = 0;
+ uint16_t segacd_stampmap_base_address = 0;
+ uint16_t segacd_imagebuffer_start_address = 0;
+ uint16_t segacd_imagebuffer_offset = 0;
- uint16_t segacd_comms_flags;// = 0x0000;
- uint16_t segacd_comms_part1[0x8];
- uint16_t segacd_comms_part2[0x8];
+ uint16_t segacd_comms_flags = 0;
+ uint16_t segacd_comms_part1[0x8]{};
+ uint16_t segacd_comms_part2[0x8]{};
- int segacd_redled;// = 0;
- int segacd_greenled;// = 0;
- int segacd_ready;// = 1; // actually set 100ms after startup?
- uint8_t m_irq3_timer_reg;
+ int segacd_redled = 0;
+ int segacd_greenled = 0;
+ int segacd_ready = 1; // actually set 100ms after startup?
+ uint8_t m_irq3_timer_reg = 0;
inline void write_pixel(uint8_t pix, int pixeloffset);
uint16_t segacd_1meg_mode_word_read(offs_t offset);
void segacd_1meg_mode_word_write(offs_t offset, uint16_t data, uint16_t mem_mask, int use_pm);
- uint16_t m_dmaaddr;
+ uint16_t m_dmaaddr = 0;
- uint16_t m_a12000_halt_reset_reg;
+ uint16_t m_a12000_halt_reset_reg = 0;
- int m_framerate;
- int m_base_total_scanlines;
- int m_total_scanlines;
+ int m_framerate = 0;
+ int m_base_total_scanlines = 0;
+ int m_total_scanlines = 0;
void segacd_mark_tiles_dirty(int offset);
int segacd_get_active_stampmap_tilemap(void);
diff --git a/src/mame/machine/midwayic.h b/src/mame/machine/midwayic.h
index a1384f18d91..6e5deaf4a4b 100644
--- a/src/mame/machine/midwayic.h
+++ b/src/mame/machine/midwayic.h
@@ -43,14 +43,14 @@ protected:
required_ioport m_io_serial_digit;
- uint8_t m_data[16]; // reused by other devices
- int m_upper;
+ uint8_t m_data[16]{}; // reused by other devices
+ int m_upper = 0;
private:
- uint8_t m_buff;
- uint8_t m_idx;
- uint8_t m_status;
- uint8_t m_bits;
+ uint8_t m_buff = 0;
+ uint8_t m_idx = 0;
+ uint8_t m_status = 0;
+ uint8_t m_bits = 0;
};
@@ -83,10 +83,10 @@ private:
u8 read_c();
void write_c(u8 data);
- u8 m_command;
- u8 m_data_out;
- u8 m_clk;
- u8 m_status;
+ u8 m_command = 0;
+ u8 m_data_out = 0;
+ u8 m_clk = 0;
+ u8 m_status = 0;
};
@@ -129,20 +129,20 @@ private:
void pic_register_state();
TIMER_CALLBACK_MEMBER( reset_timer );
- uint16_t m_latch;
- attotime m_latch_expire_time;
- uint8_t m_state;
- uint8_t m_index;
- uint8_t m_total;
- uint8_t m_nvram_addr;
- uint8_t m_buffer[0x10];
- uint8_t m_nvram[0x100];
- uint8_t m_default_nvram[0x100];
- uint8_t m_time_buf[8];
- uint8_t m_time_index;
- uint8_t m_time_just_written;
- uint16_t m_yearoffs;
- emu_timer *m_time_write_timer;
+ uint16_t m_latch = 0;
+ attotime m_latch_expire_time{};
+ uint8_t m_state = 0;
+ uint8_t m_index = 0;
+ uint8_t m_total = 0;
+ uint8_t m_nvram_addr = 0;
+ uint8_t m_buffer[0x10]{};
+ uint8_t m_nvram[0x100]{};
+ uint8_t m_default_nvram[0x100]{};
+ uint8_t m_time_buf[8]{};
+ uint8_t m_time_index = 0;
+ uint8_t m_time_just_written = 0;
+ uint16_t m_yearoffs = 0;
+ emu_timer *m_time_write_timer = nullptr;
};
@@ -205,25 +205,25 @@ private:
devcb_write8 m_serial_tx_cb;
devcb_write32 m_aux_output_cb;
- uint32_t m_reg[16];
- uint8_t m_has_dcs;
- uint8_t m_has_cage;
- cpu_device *m_dcs_cpu;
- uint8_t m_shuffle_type;
- uint8_t m_shuffle_default;
- uint8_t m_shuffle_active;
- const uint8_t * m_shuffle_map;
+ uint32_t m_reg[16]{};
+ uint8_t m_has_dcs = 0;
+ uint8_t m_has_cage = 0;
+ cpu_device *m_dcs_cpu = nullptr;
+ uint8_t m_shuffle_type = 0;
+ uint8_t m_shuffle_default = 0;
+ uint8_t m_shuffle_active = 0;
+ const uint8_t * m_shuffle_map = nullptr;
devcb_write8 m_irq_callback;
- uint8_t m_irq_state;
- uint16_t m_sound_irq_state;
- uint8_t m_auto_ack;
- uint8_t m_force_fifo_full;
-
- uint16_t m_fifo[512];
- uint16_t m_fifo_in;
- uint16_t m_fifo_out;
- uint16_t m_fifo_bytes;
- offs_t m_fifo_force_buffer_empty_pc;
+ uint8_t m_irq_state = 0;
+ uint16_t m_sound_irq_state = 0;
+ uint8_t m_auto_ack = 0;
+ uint8_t m_force_fifo_full = 0;
+
+ uint16_t m_fifo[512]{};
+ uint16_t m_fifo_in = 0;
+ uint16_t m_fifo_out = 0;
+ uint16_t m_fifo_bytes = 0;
+ offs_t m_fifo_force_buffer_empty_pc = 0;
optional_device<atari_cage_device> m_cage;
optional_device<dcs_audio_device> m_dcs;
diff --git a/src/mame/machine/mie.h b/src/mame/machine/mie.h
index ef8694a3197..1f72056cf9a 100644
--- a/src/mame/machine/mie.h
+++ b/src/mame/machine/mie.h
@@ -107,16 +107,16 @@ private:
// internal state
required_device<cpu_device> cpu;
- emu_timer *timer;
+ emu_timer *timer = nullptr;
required_device<mie_jvs_device> jvs;
optional_ioport_array<8> gpio_port;
- uint32_t tbuf[TBUF_SIZE];
- uint32_t control, lreg, jvs_rpos;
- uint8_t gpiodir, gpio_val[8];
- uint8_t irq_enable, irq_pending, maple_irqlevel;
- uint8_t jvs_control, jvs_dest;
- uint8_t jvs_lcr;
+ uint32_t tbuf[TBUF_SIZE]{};
+ uint32_t control = 0, lreg = 0, jvs_rpos = 0;
+ uint8_t gpiodir = 0, gpio_val[8]{};
+ uint8_t irq_enable = 0, irq_pending = 0, maple_irqlevel = 0;
+ uint8_t jvs_control = 0, jvs_dest = 0;
+ uint8_t jvs_lcr = 0;
void raise_irq(int level);
void recalc_irq();
diff --git a/src/mame/machine/mmboard.h b/src/mame/machine/mmboard.h
index 0dd69194e51..805c309620c 100644
--- a/src/mame/machine/mmboard.h
+++ b/src/mame/machine/mmboard.h
@@ -49,8 +49,8 @@ protected:
attotime m_sensordelay;
bool m_disable_leds;
- u8 m_led_data;
- u8 m_mux;
+ u8 m_led_data = 0;
+ u8 m_mux = 0;
};