summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/devices/machine/k054321.h4
-rw-r--r--src/devices/machine/laserdsc.h2
-rw-r--r--src/devices/machine/ldp1000.h12
-rw-r--r--src/devices/machine/ldp1450.h22
-rw-r--r--src/devices/machine/ldpr8210.h18
-rw-r--r--src/devices/machine/locomo.h8
-rw-r--r--src/devices/machine/lpc-acpi.h10
-rw-r--r--src/devices/machine/lpci.h10
-rw-r--r--src/devices/machine/m950x0.h6
-rw-r--r--src/devices/machine/mb87030.h52
-rw-r--r--src/devices/machine/mc14411.h6
-rw-r--r--src/devices/machine/mc68681.h20
-rw-r--r--src/devices/machine/mcf5206e.h36
-rw-r--r--src/devices/machine/mm58174.h28
-rw-r--r--src/devices/machine/mm58274c.cpp2
-rw-r--r--src/devices/machine/mm58274c.h40
-rw-r--r--src/devices/machine/mos6526.h52
-rw-r--r--src/devices/machine/msm6242.h12
-rw-r--r--src/devices/machine/myb3k_kbd.h6
-rw-r--r--src/devices/machine/ncr5380.h20
-rw-r--r--src/devices/machine/ncr5390.h4
-rw-r--r--src/devices/machine/nmc9306.h20
-rw-r--r--src/devices/machine/ns32081.h22
-rw-r--r--src/devices/machine/ns32082.h18
-rw-r--r--src/devices/machine/ns32382.h32
-rw-r--r--src/devices/machine/nscsi_bus.h20
-rw-r--r--src/devices/machine/pcf8593.h22
-rw-r--r--src/devices/machine/pci-smbus.h8
-rw-r--r--src/devices/machine/pci.h16
-rw-r--r--src/devices/machine/pckeybrd.h2
-rw-r--r--src/devices/machine/pit8253.h50
-rw-r--r--src/devices/machine/ps2dma.h16
-rw-r--r--src/devices/machine/ps2intc.h4
-rw-r--r--src/devices/machine/ps2mc.h22
-rw-r--r--src/devices/machine/ps2pad.h18
-rw-r--r--src/devices/machine/ps2sif.h12
36 files changed, 326 insertions, 326 deletions
diff --git a/src/devices/machine/k054321.h b/src/devices/machine/k054321.h
index 6c66659372d..55d6501423c 100644
--- a/src/devices/machine/k054321.h
+++ b/src/devices/machine/k054321.h
@@ -37,8 +37,8 @@ private:
std::unique_ptr<float[]> m_left_gains;
std::unique_ptr<float[]> m_right_gains;
- u8 m_volume;
- u8 m_active;
+ u8 m_volume = 0;
+ u8 m_active = 0;
void propagate_volume();
diff --git a/src/devices/machine/laserdsc.h b/src/devices/machine/laserdsc.h
index 15a107804f1..0a9678bbb60 100644
--- a/src/devices/machine/laserdsc.h
+++ b/src/devices/machine/laserdsc.h
@@ -290,7 +290,7 @@ private:
// async operations
osd_work_queue * m_work_queue; // work queue
- uint32_t m_queued_hunknum; // queued hunk
+ uint32_t m_queued_hunknum = 0; // queued hunk
// core states
uint8_t m_audiosquelch; // audio squelch state: bit 0 = audio 1, bit 1 = audio 2
diff --git a/src/devices/machine/ldp1000.h b/src/devices/machine/ldp1000.h
index 2fd79a6a6fc..24343f53bc2 100644
--- a/src/devices/machine/ldp1000.h
+++ b/src/devices/machine/ldp1000.h
@@ -61,17 +61,17 @@ protected:
};
private:
- uint8_t m_command;
- ldp1000_status m_status;
- ldp1000_player_state m_player_state;
- bool m_audio_enable[2];
+ uint8_t m_command = 0;
+ ldp1000_status m_status{};
+ ldp1000_player_state m_player_state{};
+ bool m_audio_enable[2]{};
// TODO: sub-class into a specific internal player state
void set_new_player_state(ldp1000_player_state which);
void set_new_player_bcd(uint8_t data);
uint32_t bcd_to_raw();
void exec_enter_cmd();
- uint8_t m_internal_bcd[0x10];
- uint8_t m_index_state;
+ uint8_t m_internal_bcd[0x10]{};
+ uint8_t m_index_state = 0;
};
diff --git a/src/devices/machine/ldp1450.h b/src/devices/machine/ldp1450.h
index 67a429845e1..4508934b4ec 100644
--- a/src/devices/machine/ldp1450.h
+++ b/src/devices/machine/ldp1450.h
@@ -44,11 +44,11 @@ protected:
virtual int32_t player_update(const vbi_metadata &vbi, int fieldnum, const attotime &curtime) override;
virtual void player_overlay(bitmap_yuy16 &bitmap) override { }
- uint8_t m_ld_frame_index;
- uint8_t m_ld_frame[5];
- uint8_t m_ld_command_current_byte;
- uint8_t m_ld_command_to_send[5];
- uint8_t m_ld_command_total_bytes;
+ uint8_t m_ld_frame_index = 0;
+ uint8_t m_ld_frame[5]{};
+ uint8_t m_ld_command_current_byte = 0;
+ uint8_t m_ld_command_to_send[5]{};
+ uint8_t m_ld_command_total_bytes = 0;
enum LD_INPUT_STATE
{
@@ -71,16 +71,16 @@ protected:
};
private:
- uint8_t m_command;
- uint8_t m_status;
- ldp1450_player_state m_player_state;
- bool m_audio_enable[2];
+ uint8_t m_command = 0;
+ uint8_t m_status = 0;
+ ldp1450_player_state m_player_state{};
+ bool m_audio_enable[2]{};
void set_new_player_state(ldp1450_player_state which);
void set_new_player_bcd(uint8_t data);
uint32_t bcd_to_raw();
void exec_enter_cmd();
- uint8_t m_internal_bcd[0x10];
- uint8_t m_index_state;
+ uint8_t m_internal_bcd[0x10]{};
+ uint8_t m_index_state = 0;
};
diff --git a/src/devices/machine/ldpr8210.h b/src/devices/machine/ldpr8210.h
index 79453d5604b..5703cd6ce32 100644
--- a/src/devices/machine/ldpr8210.h
+++ b/src/devices/machine/ldpr8210.h
@@ -87,15 +87,15 @@ protected:
class pioneer_pia
{
public:
- uint8_t frame[7]; // (20-26) 7 characters for the chapter/frame
- uint8_t text[17]; // (20-30) 17 characters for the display
- uint8_t control; // (40) control lines
- uint8_t latchdisplay; // flag: set if the display was latched
- uint8_t portb; // (60) port B value (LEDs)
- uint8_t display; // (80) display enable
- uint8_t porta; // (A0) port A value (from serial decoder)
- uint8_t vbi1; // (C0) VBI decoding state 1
- uint8_t vbi2; // (E0) VBI decoding state 2
+ uint8_t frame[7]{}; // (20-26) 7 characters for the chapter/frame
+ uint8_t text[17]{}; // (20-30) 17 characters for the display
+ uint8_t control = 0; // (40) control lines
+ uint8_t latchdisplay = 0; // flag: set if the display was latched
+ uint8_t portb = 0; // (60) port B value (LEDs)
+ uint8_t display = 0; // (80) display enable
+ uint8_t porta = 0; // (A0) port A value (from serial decoder)
+ uint8_t vbi1 = 0; // (C0) VBI decoding state 1
+ uint8_t vbi2 = 0; // (E0) VBI decoding state 2
};
// internal overlay helpers
diff --git a/src/devices/machine/locomo.h b/src/devices/machine/locomo.h
index ac240959d9f..f2d80c12ad7 100644
--- a/src/devices/machine/locomo.h
+++ b/src/devices/machine/locomo.h
@@ -23,10 +23,10 @@ protected:
virtual void device_start() override;
virtual void device_reset() override;
- uint16_t m_kbd_cmd;
- uint16_t m_kbd_row;
- uint16_t m_kbd_col;
- uint16_t m_kbd_level;
+ uint16_t m_kbd_cmd = 0;
+ uint16_t m_kbd_row = 0;
+ uint16_t m_kbd_col = 0;
+ uint16_t m_kbd_level = 0;
};
DECLARE_DEVICE_TYPE(LOCOMO, locomo_device)
diff --git a/src/devices/machine/lpc-acpi.h b/src/devices/machine/lpc-acpi.h
index 1cd64636a10..179567b4145 100644
--- a/src/devices/machine/lpc-acpi.h
+++ b/src/devices/machine/lpc-acpi.h
@@ -19,11 +19,11 @@ protected:
void device_reset() override;
private:
- uint32_t pm1_cnt, proc_cnt, gpe0_sts, gpe0_en, smi_en, smi_sts;
- uint16_t pm1_sts, pm1_en, alt_gp_smi_en, alt_gp_smi_sts, devact_sts, devtrap_en;
- uint16_t tco1_sts, tco2_sts, tco1_cnt, tco2_cnt;
- uint8_t tco_rld, tco_tmr, tco_dat_in, tco_dat_out, tco_message1, tco_message2;
- uint8_t tco_wdstatus, sw_irq_gen;
+ uint32_t pm1_cnt = 0, proc_cnt = 0, gpe0_sts = 0, gpe0_en = 0, smi_en = 0, smi_sts = 0;
+ uint16_t pm1_sts = 0, pm1_en = 0, alt_gp_smi_en = 0, alt_gp_smi_sts = 0, devact_sts = 0, devtrap_en = 0;
+ uint16_t tco1_sts = 0, tco2_sts = 0, tco1_cnt = 0, tco2_cnt = 0;
+ uint8_t tco_rld = 0, tco_tmr = 0, tco_dat_in = 0, tco_dat_out = 0, tco_message1 = 0, tco_message2 = 0;
+ uint8_t tco_wdstatus = 0, sw_irq_gen = 0;
void map(address_map &map);
diff --git a/src/devices/machine/lpci.h b/src/devices/machine/lpci.h
index fb289d5538f..4183ff0319e 100644
--- a/src/devices/machine/lpci.h
+++ b/src/devices/machine/lpci.h
@@ -67,7 +67,7 @@ protected:
virtual void device_post_load() override;
private:
- uint8_t m_busnum;
+ uint8_t m_busnum = 0;
pci_bus_legacy_read_delegate::array<32> m_read_callback;
pci_bus_legacy_write_delegate::array<32> m_write_callback;
optional_device<pci_bus_legacy_device> m_father;
@@ -75,10 +75,10 @@ private:
uint8_t m_siblings_busnum[8];
int m_siblings_count;
- offs_t m_address;
- int8_t m_devicenum; // device number we are addressing
- int8_t m_busnumber; // pci bus number we are addressing
- pci_bus_legacy_device * m_busnumaddr; // pci bus we are addressing
+ offs_t m_address = 0;
+ int8_t m_devicenum = 0; // device number we are addressing
+ int8_t m_busnumber = 0; // pci bus number we are addressing
+ pci_bus_legacy_device * m_busnumaddr = nullptr; // pci bus we are addressing
};
// device type definition
diff --git a/src/devices/machine/m950x0.h b/src/devices/machine/m950x0.h
index 0eceb6fab21..7f84acc02c8 100644
--- a/src/devices/machine/m950x0.h
+++ b/src/devices/machine/m950x0.h
@@ -67,9 +67,9 @@ protected:
const uint16_t m_addr_mask;
uint32_t m_state;
- bool m_selected;
- uint8_t m_status;
- uint16_t m_addr;
+ bool m_selected = false;
+ uint8_t m_status = 0;
+ uint16_t m_addr = 0;
};
class m95010_device : public m950x0_device
diff --git a/src/devices/machine/mb87030.h b/src/devices/machine/mb87030.h
index d2e90a506f4..e852f601f15 100644
--- a/src/devices/machine/mb87030.h
+++ b/src/devices/machine/mb87030.h
@@ -138,8 +138,8 @@ private:
constexpr static uint8_t SDGC_DIAG_ACK = 0x40;
constexpr static uint8_t SDGC_DIAG_REQ = 0x80;
- emu_timer *m_timer;
- emu_timer *m_delay_timer;
+ emu_timer *m_timer = nullptr;
+ emu_timer *m_delay_timer = nullptr;
enum TimerId {
Delay,
@@ -188,33 +188,33 @@ private:
TIMER_CALLBACK_MEMBER(timeout);
// registers
- uint8_t m_bdid;
- uint8_t m_sctl;
- uint8_t m_scmd;
- uint8_t m_tmod;
- uint8_t m_ints;
- uint8_t m_sdgc;
- uint8_t m_ssts;
- uint8_t m_serr;
- uint8_t m_pctl;
- uint8_t m_mbc;
- uint8_t m_dreg;
- uint8_t m_temp;
- uint8_t m_tch;
- uint8_t m_tcm;
- uint32_t m_tc;
- uint8_t m_exbf;
-
- uint8_t m_bus_data;
- uint8_t m_hdb;
- bool m_hdb_loaded;
- bool m_send_atn_during_selection;
+ uint8_t m_bdid = 0;
+ uint8_t m_sctl = 0;
+ uint8_t m_scmd = 0;
+ uint8_t m_tmod = 0;
+ uint8_t m_ints = 0;
+ uint8_t m_sdgc = 0;
+ uint8_t m_ssts = 0;
+ uint8_t m_serr = 0;
+ uint8_t m_pctl = 0;
+ uint8_t m_mbc = 0;
+ uint8_t m_dreg = 0;
+ uint8_t m_temp = 0;
+ uint8_t m_tch = 0;
+ uint8_t m_tcm = 0;
+ uint32_t m_tc = 0;
+ uint8_t m_exbf = 0;
+
+ uint8_t m_bus_data = 0;
+ uint8_t m_hdb = 0;
+ bool m_hdb_loaded = false;
+ bool m_send_atn_during_selection = false;
util::fifo <uint8_t, 8> m_fifo;
- uint8_t m_scsi_phase;
- uint32_t m_scsi_ctrl;
+ uint8_t m_scsi_phase = 0;
+ uint32_t m_scsi_ctrl = 0;
- bool m_dma_transfer;
+ bool m_dma_transfer = false;
};
diff --git a/src/devices/machine/mc14411.h b/src/devices/machine/mc14411.h
index 47d081b128b..94382dba85c 100644
--- a/src/devices/machine/mc14411.h
+++ b/src/devices/machine/mc14411.h
@@ -83,10 +83,10 @@ protected:
private:
void arm_timer(int i);
- emu_timer *m_fx_timer[16];
- emu_timer *m_reset_timer;
+ emu_timer *m_fx_timer[16]{};
+ emu_timer *m_reset_timer = nullptr;
- uint32_t m_fx_state[16]; // F1-F16 output line states
+ uint32_t m_fx_state[16]{}; // F1-F16 output line states
// divider matrix
static const int s_counter_divider[16];
diff --git a/src/devices/machine/mc68681.h b/src/devices/machine/mc68681.h
index b47e7276cd8..e16962ccea5 100644
--- a/src/devices/machine/mc68681.h
+++ b/src/devices/machine/mc68681.h
@@ -51,15 +51,15 @@ public:
private:
/* Registers */
- uint8_t CR; /* Command register */
- uint8_t CSR; /* Clock select register */
+ uint8_t CR = 0; /* Command register */
+ uint8_t CSR = 0; /* Clock select register */
uint8_t MR1; /* Mode register 1 */
uint8_t MR2; /* Mode register 2 */
- uint8_t MR_ptr; /* Mode register pointer */
+ uint8_t MR_ptr = 0; /* Mode register pointer */
uint8_t SR; /* Status register */
/* State */
- int tx_baud_rate, rx_baud_rate;
+ int tx_baud_rate = 0, rx_baud_rate = 0;
/* Receiver */
uint8_t rx_enabled;
@@ -68,18 +68,18 @@ private:
int rx_fifo_write_ptr;
int rx_fifo_num;
- int m_ch;
+ int m_ch = 0;
/* Transmitter */
uint8_t tx_enabled;
- uint8_t tx_data;
- uint8_t tx_ready;
+ uint8_t tx_data = 0;
+ uint8_t tx_ready = 0;
bool m_tx_break;
/* Rx/Tx clocking */
- uint8_t m_rx_prescaler , m_tx_prescaler;
+ uint8_t m_rx_prescaler = 0, m_tx_prescaler = 0;
- duart_base_device *m_uart;
+ duart_base_device *m_uart = nullptr;
void write_MR(uint8_t data);
void write_CR(uint8_t data);
@@ -219,7 +219,7 @@ protected:
private:
bool m_read_vector; // if this is read and IRQ is active, it counts as pulling IACK
- uint8_t IVR; /* Interrupt Vector Register */
+ uint8_t IVR = 0; /* Interrupt Vector Register */
};
class sc28c94_device : public duart_base_device
diff --git a/src/devices/machine/mcf5206e.h b/src/devices/machine/mcf5206e.h
index d4ec0dd7980..f71e6b6d831 100644
--- a/src/devices/machine/mcf5206e.h
+++ b/src/devices/machine/mcf5206e.h
@@ -173,31 +173,31 @@ private:
uint8_t m_ICR[MAX_ICR];
- uint16_t m_CSAR[8];
- uint32_t m_CSMR[8];
- uint16_t m_CSCR[8];
+ uint16_t m_CSAR[8]{};
+ uint32_t m_CSMR[8]{};
+ uint16_t m_CSCR[8]{};
- uint16_t m_DMCR;
- uint16_t m_PAR;
+ uint16_t m_DMCR = 0;
+ uint16_t m_PAR = 0;
- emu_timer *m_timer1;
- uint16_t m_TMR1;
- uint16_t m_TRR1;
- uint8_t m_TER1;
- uint16_t m_TCN1;
+ emu_timer *m_timer1 = nullptr;
+ uint16_t m_TMR1 = 0;
+ uint16_t m_TRR1 = 0;
+ uint8_t m_TER1 = 0;
+ uint16_t m_TCN1 = 0;
- uint8_t m_PPDDR;
- uint8_t m_PPDAT;
+ uint8_t m_PPDDR = 0;
+ uint8_t m_PPDAT = 0;
- uint16_t m_IMR;
+ uint16_t m_IMR = 0;
- uint8_t m_MBCR;
- uint8_t m_MBSR;
- uint8_t m_MFDR;
- uint8_t m_MBDR;
+ uint8_t m_MBCR = 0;
+ uint8_t m_MBSR = 0;
+ uint8_t m_MFDR = 0;
+ uint8_t m_MBDR = 0;
- uint32_t m_coldfire_regs[0x400/4];
+ uint32_t m_coldfire_regs[0x400/4]{};
};
diff --git a/src/devices/machine/mm58174.h b/src/devices/machine/mm58174.h
index 01db657255d..13742bcdf7a 100644
--- a/src/devices/machine/mm58174.h
+++ b/src/devices/machine/mm58174.h
@@ -40,22 +40,22 @@ private:
int m_int_ctl; /* interrupt control register */
- int m_years;
- int m_wday; /* day of the week (1-7 (1=day1 as set in init)) */
- int m_months1; /* months (BCD: 1-12) */
- int m_months2;
- int m_days1; /* days (BCD: 1-31) */
- int m_days2;
- int m_hours1; /* hours (BCD : 0-23) */
- int m_hours2;
- int m_minutes1; /* minutes (BCD : 0-59) */
- int m_minutes2;
- int m_seconds1; /* seconds (BCD : 0-59) */
- int m_seconds2;
+ int m_years = 0;
+ int m_wday = 0; /* day of the week (1-7 (1=day1 as set in init)) */
+ int m_months1 = 0; /* months (BCD: 1-12) */
+ int m_months2 = 0;
+ int m_days1 = 0; /* days (BCD: 1-31) */
+ int m_days2 = 0;
+ int m_hours1 = 0; /* hours (BCD : 0-23) */
+ int m_hours2 = 0;
+ int m_minutes1 = 0; /* minutes (BCD : 0-59) */
+ int m_minutes2 = 0;
+ int m_seconds1 = 0; /* seconds (BCD : 0-59) */
+ int m_seconds2 = 0;
int m_tenths; /* tenths of second (BCD : 0-9) */
- emu_timer *m_increment_rtc;
- emu_timer *m_interrupt_timer;
+ emu_timer *m_increment_rtc = nullptr;
+ emu_timer *m_interrupt_timer = nullptr;
};
DECLARE_DEVICE_TYPE(MM58174, mm58174_device)
diff --git a/src/devices/machine/mm58274c.cpp b/src/devices/machine/mm58274c.cpp
index c7e7f49a78e..09c3cf770af 100644
--- a/src/devices/machine/mm58274c.cpp
+++ b/src/devices/machine/mm58274c.cpp
@@ -154,7 +154,7 @@ attotime mm58274c_device::interrupt_period_table(int val)
uint8_t mm58274c_device::read(offs_t offset)
{
- int reply;
+ int reply = 0;
offset &= 0xf;
diff --git a/src/devices/machine/mm58274c.h b/src/devices/machine/mm58274c.h
index c6fcbee3c46..13a3466a1f8 100644
--- a/src/devices/machine/mm58274c.h
+++ b/src/devices/machine/mm58274c.h
@@ -39,29 +39,29 @@ private:
attotime interrupt_period_table(int val);
- int m_status; /* status register (*read* from address 0 = control register) */
- int m_control; /* control register (*write* to address 0) */
+ int m_status = 0; /* status register (*read* from address 0 = control register) */
+ int m_control = 0; /* control register (*write* to address 0) */
- int m_clk_set; /* clock setting register */
- int m_int_ctl; /* interrupt control register */
+ int m_clk_set = 0; /* clock setting register */
+ int m_int_ctl = 0; /* interrupt control register */
- int m_wday; /* day of the week (1-7 (1=day1 as set in init)) */
- int m_years1; /* years (BCD: 0-99) */
- int m_years2;
- int m_months1; /* months (BCD: 1-12) */
- int m_months2;
- int m_days1; /* days (BCD: 1-31) */
- int m_days2;
- int m_hours1; /* hours (BCD : 0-23) */
- int m_hours2;
- int m_minutes1; /* minutes (BCD : 0-59) */
- int m_minutes2;
- int m_seconds1; /* seconds (BCD : 0-59) */
- int m_seconds2;
- int m_tenths; /* tenths of second (BCD : 0-9) */
+ int m_wday = 0; /* day of the week (1-7 (1=day1 as set in init)) */
+ int m_years1 = 0; /* years (BCD: 0-99) */
+ int m_years2 = 0;
+ int m_months1 = 0; /* months (BCD: 1-12) */
+ int m_months2 = 0;
+ int m_days1 = 0; /* days (BCD: 1-31) */
+ int m_days2 = 0;
+ int m_hours1 = 0; /* hours (BCD : 0-23) */
+ int m_hours2 = 0;
+ int m_minutes1 = 0; /* minutes (BCD : 0-59) */
+ int m_minutes2 = 0;
+ int m_seconds1 = 0; /* seconds (BCD : 0-59) */
+ int m_seconds2 = 0;
+ int m_tenths = 0; /* tenths of second (BCD : 0-9) */
- emu_timer *m_increment_rtc;
- emu_timer *m_interrupt_timer;
+ emu_timer *m_increment_rtc = nullptr;
+ emu_timer *m_interrupt_timer = nullptr;
};
DECLARE_DEVICE_TYPE(MM58274C, mm58274c_device)
diff --git a/src/devices/machine/mos6526.h b/src/devices/machine/mos6526.h
index f86cf960461..f37f51d6e6e 100644
--- a/src/devices/machine/mos6526.h
+++ b/src/devices/machine/mos6526.h
@@ -181,34 +181,34 @@ protected:
int m_count_a0;
int m_count_a1;
int m_count_a2;
- int m_count_a3;
- int m_load_a0;
- int m_load_a1;
- int m_load_a2;
- int m_oneshot_a0;
- int m_count_b0;
- int m_count_b1;
- int m_count_b2;
- int m_count_b3;
- int m_load_b0;
- int m_load_b1;
- int m_load_b2;
- int m_oneshot_b0;
- uint16_t m_ta;
- uint16_t m_tb;
- uint16_t m_ta_latch;
- uint16_t m_tb_latch;
- uint8_t m_cra;
- uint8_t m_crb;
+ int m_count_a3 = 0;
+ int m_load_a0 = 0;
+ int m_load_a1 = 0;
+ int m_load_a2 = 0;
+ int m_oneshot_a0 = 0;
+ int m_count_b0 = 0;
+ int m_count_b1 = 0;
+ int m_count_b2 = 0;
+ int m_count_b3 = 0;
+ int m_load_b0 = 0;
+ int m_load_b1 = 0;
+ int m_load_b2 = 0;
+ int m_oneshot_b0 = 0;
+ uint16_t m_ta = 0;
+ uint16_t m_tb = 0;
+ uint16_t m_ta_latch = 0;
+ uint16_t m_tb_latch = 0;
+ uint8_t m_cra = 0;
+ uint8_t m_crb = 0;
// time-of-day
- int m_tod_count;
- uint32_t m_tod;
- uint32_t m_tod_latch;
- uint32_t m_alarm;
- bool m_tod_stopped;
- bool m_tod_latched;
- emu_timer *m_tod_timer;
+ int m_tod_count = 0;
+ uint32_t m_tod = 0;
+ uint32_t m_tod_latch = 0;
+ uint32_t m_alarm = 0;
+ bool m_tod_stopped = false;
+ bool m_tod_latched = false;
+ emu_timer *m_tod_timer = nullptr;
};
diff --git a/src/devices/machine/msm6242.h b/src/devices/machine/msm6242.h
index 17afe8794d2..6dc68512740 100644
--- a/src/devices/machine/msm6242.h
+++ b/src/devices/machine/msm6242.h
@@ -76,15 +76,15 @@ private:
static constexpr u8 IRQ_HOUR = 3;
// state
- u8 m_reg[3];
- u8 m_irq_flag;
- u8 m_irq_type;
- u16 m_tick;
+ u8 m_reg[3]{};
+ u8 m_irq_flag = 0;
+ u8 m_irq_type = 0;
+ u16 m_tick = 0;
// incidentals
devcb_write_line m_out_int_handler;
- emu_timer * m_timer;
- u64 m_last_update_time; // last update time, in clock cycles
+ emu_timer * m_timer = 0;
+ u64 m_last_update_time = 0; // last update time, in clock cycles
// methods
void rtc_timer_callback();
diff --git a/src/devices/machine/myb3k_kbd.h b/src/devices/machine/myb3k_kbd.h
index 752c8e32546..250c5372f45 100644
--- a/src/devices/machine/myb3k_kbd.h
+++ b/src/devices/machine/myb3k_kbd.h
@@ -70,9 +70,9 @@ protected:
u8 m_io_kbd_state[12][8];
int m_x, m_y;
- u8 m_first_byte;
- u8 m_second_byte;
- u8 m_modifier_keys;
+ u8 m_first_byte = 0;
+ u8 m_second_byte = 0;
+ u8 m_modifier_keys = 0;
};
class jb3000_keyboard_device : public myb3k_keyboard_device
diff --git a/src/devices/machine/ncr5380.h b/src/devices/machine/ncr5380.h
index e7107ae285e..ba30cbc6629 100644
--- a/src/devices/machine/ncr5380.h
+++ b/src/devices/machine/ncr5380.h
@@ -132,7 +132,7 @@ private:
devcb_write_line m_drq_handler;
// state machine
- emu_timer *m_state_timer;
+ emu_timer *m_state_timer = nullptr;
enum state : uint32_t
{
IDLE,
@@ -152,17 +152,17 @@ private:
m_state;
// registers
- u8 m_odata;
- u8 m_icmd;
- u8 m_mode;
- u8 m_tcmd;
- u8 m_bas;
- u8 m_idata;
+ u8 m_odata = 0;
+ u8 m_icmd = 0;
+ u8 m_mode = 0;
+ u8 m_tcmd = 0;
+ u8 m_bas = 0;
+ u8 m_idata = 0;
// line state
- u32 m_scsi_ctrl;
- bool m_irq_state;
- bool m_drq_state;
+ u32 m_scsi_ctrl = 0;
+ bool m_irq_state = false;
+ bool m_drq_state = false;
bool const m_has_lbs;
};
diff --git a/src/devices/machine/ncr5390.h b/src/devices/machine/ncr5390.h
index 98a4cb40701..54bc71a577c 100644
--- a/src/devices/machine/ncr5390.h
+++ b/src/devices/machine/ncr5390.h
@@ -203,7 +203,7 @@ protected:
int dma_dir;
bool irq, drq;
- bool dma_command;
+ bool dma_command = false;
bool test_mode;
void dma_set(int dir);
@@ -322,7 +322,7 @@ protected:
private:
u8 config3;
- u8 fifo_align;
+ u8 fifo_align = 0;
busmd_t m_busmd;
};
diff --git a/src/devices/machine/nmc9306.h b/src/devices/machine/nmc9306.h
index 98566a9ab82..2c871251e71 100644
--- a/src/devices/machine/nmc9306.h
+++ b/src/devices/machine/nmc9306.h
@@ -54,16 +54,16 @@ private:
uint16_t m_register[16];
- int m_bits;
- int m_state;
- uint8_t m_command;
- uint8_t m_address;
- uint16_t m_data;
- bool m_ewen;
- int m_cs;
- int m_sk;
- int m_do;
- int m_di;
+ int m_bits = 0;
+ int m_state = 0;
+ uint8_t m_command = 0;
+ uint8_t m_address = 0;
+ uint16_t m_data = 0;
+ bool m_ewen = false;
+ int m_cs = 0;
+ int m_sk = 0;
+ int m_do = 0;
+ int m_di = 0;
};
diff --git a/src/devices/machine/ns32081.h b/src/devices/machine/ns32081.h
index e73fa8013f6..ee2cfcfdaef 100644
--- a/src/devices/machine/ns32081.h
+++ b/src/devices/machine/ns32081.h
@@ -32,27 +32,27 @@ protected:
void complete(s32 param);
private:
- emu_timer *m_complete;
+ emu_timer *m_complete = nullptr;
// registers
- u32 m_fsr;
- u32 m_f[8];
+ u32 m_fsr = 0;
+ u32 m_f[8]{};
// operating state
- u8 m_idbyte;
- u16 m_opword;
+ u8 m_idbyte = 0;
+ u16 m_opword = 0;
struct operand
{
- unsigned expected;
- unsigned issued;
+ unsigned expected = 0;
+ unsigned issued = 0;
u64 value;
}
- m_op[3];
- u16 m_status;
+ m_op[3]{};
+ u16 m_status = 0;
// implementation state
- unsigned m_state;
- unsigned m_tcy;
+ unsigned m_state = 0;
+ unsigned m_tcy = 0;
};
DECLARE_DEVICE_TYPE(NS32081, ns32081_device)
diff --git a/src/devices/machine/ns32082.h b/src/devices/machine/ns32082.h
index 83238529e6b..fb43504359a 100644
--- a/src/devices/machine/ns32082.h
+++ b/src/devices/machine/ns32082.h
@@ -47,20 +47,20 @@ private:
u32 m_eia;
// operating state
- u8 m_idbyte;
- u16 m_opword;
+ u8 m_idbyte = 0;
+ u16 m_opword = 0;
struct operand
{
- unsigned expected;
- unsigned issued;
- u64 value;
+ unsigned expected = 0;
+ unsigned issued = 0;
+ u64 value = 0;
}
- m_op[3];
- u16 m_status;
+ m_op[3]{};
+ u16 m_status = 0;
// implementation state
- unsigned m_state;
- unsigned m_tcy;
+ unsigned m_state = 0;
+ unsigned m_tcy = 0;
};
DECLARE_DEVICE_TYPE(NS32082, ns32082_device)
diff --git a/src/devices/machine/ns32382.h b/src/devices/machine/ns32382.h
index d7730a70d68..678fcb74f6d 100644
--- a/src/devices/machine/ns32382.h
+++ b/src/devices/machine/ns32382.h
@@ -36,29 +36,29 @@ protected:
private:
// registers
- u32 m_bar; // breakpoint address register
- u32 m_bdr; // breakpoint data register
- u32 m_bear; // bus error address register
- u32 m_bmr; // breakpoint mask register
- u32 m_mcr; // memory management control register
- u32 m_msr; // memory management status register
- u32 m_ptb[2]; // page table base registers
- u32 m_tear; // translation exception address register
+ u32 m_bar = 0; // breakpoint address register
+ u32 m_bdr = 0; // breakpoint data register
+ u32 m_bear = 0; // bus error address register
+ u32 m_bmr = 0; // breakpoint mask register
+ u32 m_mcr = 0; // memory management control register
+ u32 m_msr = 0; // memory management status register
+ u32 m_ptb[2]{}; // page table base registers
+ u32 m_tear = 0; // translation exception address register
// operating state
- u16 m_opword;
+ u16 m_opword = 0;
struct operand
{
- u32 expected;
- u32 issued;
- u64 value;
+ u32 expected = 0;
+ u32 issued = 0;
+ u64 value = 0;
}
- m_op[3];
- u16 m_status;
+ m_op[3]{};
+ u16 m_status = 0;
// implementation state
- u32 m_state;
- u32 m_tcy;
+ u32 m_state = 0;
+ u32 m_tcy = 0;
};
DECLARE_DEVICE_TYPE(NS32382, ns32382_device)
diff --git a/src/devices/machine/nscsi_bus.h b/src/devices/machine/nscsi_bus.h
index 997844c4342..841bc421dcf 100644
--- a/src/devices/machine/nscsi_bus.h
+++ b/src/devices/machine/nscsi_bus.h
@@ -397,8 +397,8 @@ protected:
virtual attotime scsi_fast_negation_period();
uint8_t scsi_cmdbuf[4096], scsi_sense_buffer[18];
- int scsi_cmdsize;
- uint8_t scsi_identify;
+ int scsi_cmdsize = 0;
+ uint8_t scsi_identify = 0;
private:
enum {
@@ -440,19 +440,19 @@ private:
};
struct control {
- int action;
- int param1, param2;
+ int action = 0;
+ int param1 = 0, param2 = 0;
};
- emu_timer *scsi_timer;
+ emu_timer *scsi_timer = nullptr;
- int scsi_state, scsi_substate;
- int scsi_initiator_id;
- int data_buffer_id, data_buffer_size, data_buffer_pos;
+ int scsi_state = 0, scsi_substate = 0;
+ int scsi_initiator_id = 0;
+ int data_buffer_id = 0, data_buffer_size = 0, data_buffer_pos = 0;
control buf_control[32];
- int buf_control_rpos;
- int buf_control_wpos;
+ int buf_control_rpos = 0;
+ int buf_control_wpos = 0;
control *buf_control_push();
control *buf_control_pop();
diff --git a/src/devices/machine/pcf8593.h b/src/devices/machine/pcf8593.h
index 419aebad224..8ef30d8b123 100644
--- a/src/devices/machine/pcf8593.h
+++ b/src/devices/machine/pcf8593.h
@@ -49,17 +49,17 @@ private:
static const device_timer_id TIMER_UPDATE_COUNTER = 0;
// internal state
- uint8_t m_data[16];
- int m_pin_scl;
- int m_pin_sda;
- int m_inp;
- int m_active;
- int m_bits;
- uint8_t m_data_recv_index;
- uint8_t m_data_recv[50];
- uint8_t m_mode;
- uint8_t m_pos;
- emu_timer * m_timer;
+ uint8_t m_data[16]{};
+ int m_pin_scl = 0;
+ int m_pin_sda = 0;
+ int m_inp = 0;
+ int m_active = 0;
+ int m_bits = 0;
+ uint8_t m_data_recv_index = 0;
+ uint8_t m_data_recv[50]{};
+ uint8_t m_mode = 0;
+ uint8_t m_pos = 0;
+ emu_timer * m_timer = nullptr;
enum { RTC_MODE_NONE, RTC_MODE_SEND, RTC_MODE_RECV };
};
diff --git a/src/devices/machine/pci-smbus.h b/src/devices/machine/pci-smbus.h
index 9c7cd79aa74..7400c667131 100644
--- a/src/devices/machine/pci-smbus.h
+++ b/src/devices/machine/pci-smbus.h
@@ -57,11 +57,11 @@ private:
uint8_t notify_dlow_r();
uint8_t notify_dhigh_r();
- uint16_t slv_data;
+ uint16_t slv_data = 0;
- uint8_t hst_sts, hst_cnt, hst_cmd, xmit_slva, hst_d0, hst_d1;
- uint8_t host_block_db, pec, rcv_slva, aux_sts, aux_ctl;
- uint8_t smlink_pin_ctl, smbus_pin_ctl, slv_sts, slv_cmd, notify_daddr, notify_dlow, notify_dhigh;
+ uint8_t hst_sts = 0, hst_cnt = 0, hst_cmd = 0, xmit_slva = 0, hst_d0 = 0, hst_d1 = 0;
+ uint8_t host_block_db = 0, pec = 0, rcv_slva = 0, aux_sts = 0, aux_ctl = 0;
+ uint8_t smlink_pin_ctl = 0, smbus_pin_ctl = 0, slv_sts = 0, slv_cmd = 0, notify_daddr = 0, notify_dlow = 0, notify_dhigh = 0;
};
DECLARE_DEVICE_TYPE(SMBUS, smbus_device)
diff --git a/src/devices/machine/pci.h b/src/devices/machine/pci.h
index 0a0a570b451..d798d5210a2 100644
--- a/src/devices/machine/pci.h
+++ b/src/devices/machine/pci.h
@@ -217,13 +217,13 @@ protected:
void propagate_config_write(uint8_t bus, uint8_t device, uint16_t reg, uint32_t data, uint32_t mem_mask);
void config_write(uint8_t bus, uint8_t device, uint16_t reg, uint32_t data, uint32_t mem_mask);
- pci_device *sub_devices[32*8];
+ pci_device *sub_devices[32*8]{};
std::vector<pci_device *> all_devices;
std::vector<pci_bridge_device *> all_bridges;
- uint32_t prefetch_baseu, prefetch_limitu;
- uint16_t bridge_control, memory_base, memory_limit, prefetch_base, prefetch_limit, iobaseu, iolimitu;
- uint8_t primary_bus, secondary_bus, subordinate_bus, iobase, iolimit;
+ uint32_t prefetch_baseu = 0, prefetch_limitu = 0;
+ uint16_t bridge_control = 0, memory_base = 0, memory_limit = 0, prefetch_base = 0, prefetch_limit = 0, iobaseu = 0, iolimitu = 0;
+ uint8_t primary_bus = 0, secondary_bus = 0, subordinate_bus = 0, iobase = 0, iolimit = 0;
private:
address_space_config configure_space_config;
@@ -259,12 +259,12 @@ protected:
void regenerate_mapping();
- address_space *memory_space, *io_space;
+ address_space *memory_space = nullptr, *io_space = nullptr;
- uint64_t memory_window_start, memory_window_end, memory_offset;
- uint64_t io_window_start, io_window_end, io_offset;
+ uint64_t memory_window_start = 0, memory_window_end = 0, memory_offset = 0;
+ uint64_t io_window_start = 0, io_window_end = 0, io_offset = 0;
- uint32_t config_address;
+ uint32_t config_address = 0;
};
class pci_root_device : public device_t {
diff --git a/src/devices/machine/pckeybrd.h b/src/devices/machine/pckeybrd.h
index eb685ec175e..e5220f72362 100644
--- a/src/devices/machine/pckeybrd.h
+++ b/src/devices/machine/pckeybrd.h
@@ -112,7 +112,7 @@ private:
output_finder<3> m_leds;
int m_scan_code_set;
- int m_input_state;
+ int m_input_state = 0;
};
INPUT_PORTS_EXTERN( pc_keyboard );
diff --git a/src/devices/machine/pit8253.h b/src/devices/machine/pit8253.h
index 430563ebebf..19b4b32efb1 100644
--- a/src/devices/machine/pit8253.h
+++ b/src/devices/machine/pit8253.h
@@ -82,31 +82,31 @@ private:
void set_clockin(double new_clockin);
// internal state
- int m_index; // index number of the timer
- double m_clockin; // input clock frequency in Hz
- attotime m_clock_period; // precomputed input clock period
- int m_clock_signal; // clock signal when clockin is 0
-
- attotime m_last_updated; // time when last updated
- attotime m_next_update; // time of next update
-
- emu_timer *m_updatetimer; // MAME timer to process updates
-
- uint16_t m_value; // current counter value ("CE" in Intel docs)
- uint16_t m_latch; // latched counter value ("OL" in Intel docs)
- uint16_t m_count; // new counter value ("CR" in Intel docs)
- uint8_t m_control; // 6-bit control byte
- uint8_t m_status; // status byte - 8254 only
- uint8_t m_lowcount; // LSB of new counter value for 16-bit writes
- bool m_rmsb; // true = Next read is MSB of 16-bit value
- bool m_wmsb; // true = Next write is MSB of 16-bit value
- int m_output; // 0 = low, 1 = high
-
- int m_gate; // gate input (0 = low, 1 = high)
- int m_latched_count; // number of bytes of count latched
- int m_latched_status; // 1 = status latched (8254 only)
- int m_null_count; // 1 = mode control or count written, 0 = count loaded
- int m_phase; // see phase definition tables in simulate2(), below
+ int m_index = 0; // index number of the timer
+ double m_clockin = 0; // input clock frequency in Hz
+ attotime m_clock_period; // precomputed input clock period
+ int m_clock_signal = 0; // clock signal when clockin is 0
+
+ attotime m_last_updated; // time when last updated
+ attotime m_next_update; // time of next update
+
+ emu_timer *m_updatetimer = nullptr; // MAME timer to process updates
+
+ uint16_t m_value = 0; // current counter value ("CE" in Intel docs)
+ uint16_t m_latch = 0; // latched counter value ("OL" in Intel docs)
+ uint16_t m_count = 0; // new counter value ("CR" in Intel docs)
+ uint8_t m_control = 0; // 6-bit control byte
+ uint8_t m_status = 0; // status byte - 8254 only
+ uint8_t m_lowcount = 0; // LSB of new counter value for 16-bit writes
+ bool m_rmsb = 0; // true = Next read is MSB of 16-bit value
+ bool m_wmsb = 0; // true = Next write is MSB of 16-bit value
+ int m_output = 0; // 0 = low, 1 = high
+
+ int m_gate = 0; // gate input (0 = low, 1 = high)
+ int m_latched_count = 0; // number of bytes of count latched
+ int m_latched_status = 0; // 1 = status latched (8254 only)
+ int m_null_count = 0; // 1 = mode control or count written, 0 = count loaded
+ int m_phase = 0; // see phase definition tables in simulate2(), below
};
DECLARE_DEVICE_TYPE(PIT_COUNTER, pit_counter_device)
diff --git a/src/devices/machine/ps2dma.h b/src/devices/machine/ps2dma.h
index b602999de28..7d80e1e2f2b 100644
--- a/src/devices/machine/ps2dma.h
+++ b/src/devices/machine/ps2dma.h
@@ -115,7 +115,7 @@ protected:
uint32_t m_addr;
uint32_t m_qwc;
- uint32_t m_tag_addr;
+ uint32_t m_tag_addr = 0;
};
void transfer_vif1();
@@ -134,16 +134,16 @@ protected:
int m_icount;
- uint32_t m_ctrl;
- uint32_t m_mem_drain;
- bool m_enabled;
+ uint32_t m_ctrl = 0;
+ uint32_t m_mem_drain = 0;
+ bool m_enabled = false;
- uint32_t m_disable_mask;
+ uint32_t m_disable_mask = 0;
- uint32_t m_istat;
- uint32_t m_imask;
+ uint32_t m_istat = 0;
+ uint32_t m_imask = 0;
- uint32_t m_last_serviced;
+ uint32_t m_last_serviced = 0;
channel_t m_channels[10];
};
diff --git a/src/devices/machine/ps2intc.h b/src/devices/machine/ps2intc.h
index 111c343372f..8d54e50e94f 100644
--- a/src/devices/machine/ps2intc.h
+++ b/src/devices/machine/ps2intc.h
@@ -63,8 +63,8 @@ protected:
required_device<cpu_device> m_ee;
- uint32_t m_status;
- uint32_t m_mask;
+ uint32_t m_status = 0;
+ uint32_t m_mask = 0;
};
DECLARE_DEVICE_TYPE(SONYPS2_INTC, ps2_intc_device)
diff --git a/src/devices/machine/ps2mc.h b/src/devices/machine/ps2mc.h
index ef38dea72c2..05b3df51987 100644
--- a/src/devices/machine/ps2mc.h
+++ b/src/devices/machine/ps2mc.h
@@ -53,17 +53,17 @@ protected:
CMD_UNKNOWN_F3 = 0xf3,
};
- uint8_t m_recv_buf[512]; // Buffer size is a guess
- uint8_t m_xmit_buf[512];
- uint32_t m_curr_recv;
- uint32_t m_curr_xmit;
- uint32_t m_end_recv;
- uint32_t m_end_xmit;
-
- uint8_t m_cmd;
- uint32_t m_cmd_size;
- uint8_t m_terminator;
- uint8_t m_status;
+ uint8_t m_recv_buf[512]{}; // Buffer size is a guess
+ uint8_t m_xmit_buf[512]{};
+ uint32_t m_curr_recv = 0;
+ uint32_t m_curr_xmit = 0;
+ uint32_t m_end_recv = 0;
+ uint32_t m_end_xmit = 0;
+
+ uint8_t m_cmd = 0;
+ uint32_t m_cmd_size = 0;
+ uint8_t m_terminator = 0;
+ uint8_t m_status = 0;
static const size_t BUFFER_SIZE;
static const uint8_t DEFAULT_TERMINATOR;
diff --git a/src/devices/machine/ps2pad.h b/src/devices/machine/ps2pad.h
index 2b384fd0818..94fc3359673 100644
--- a/src/devices/machine/ps2pad.h
+++ b/src/devices/machine/ps2pad.h
@@ -58,16 +58,16 @@ protected:
CMD_GET_MODE = 0x4c,
};
- uint8_t m_recv_buf[64]; // Buffer size is a guess
- uint8_t m_xmit_buf[64];
- uint8_t m_curr_recv;
- uint8_t m_curr_xmit;
- uint8_t m_end_recv;
- uint8_t m_end_xmit;
+ uint8_t m_recv_buf[64]{}; // Buffer size is a guess
+ uint8_t m_xmit_buf[64]{};
+ uint8_t m_curr_recv = 0;
+ uint8_t m_curr_xmit = 0;
+ uint8_t m_end_recv = 0;
+ uint8_t m_end_xmit = 0;
- uint8_t m_cmd;
- uint8_t m_cmd_size;
- bool m_configuring;
+ uint8_t m_cmd = 0;
+ uint8_t m_cmd_size = 0;
+ bool m_configuring = false;
static const size_t BUFFER_SIZE;
};
diff --git a/src/devices/machine/ps2sif.h b/src/devices/machine/ps2sif.h
index 83fe5f4a076..61be8c2d905 100644
--- a/src/devices/machine/ps2sif.h
+++ b/src/devices/machine/ps2sif.h
@@ -46,14 +46,14 @@ protected:
required_device<ps2_intc_device> m_intc;
- uint32_t m_ms_mailbox;
- uint32_t m_sm_mailbox;
- uint32_t m_ms_flag;
- uint32_t m_sm_flag;
- uint32_t m_ctrl;
+ uint32_t m_ms_mailbox = 0;
+ uint32_t m_sm_mailbox = 0;
+ uint32_t m_ms_flag = 0;
+ uint32_t m_sm_flag = 0;
+ uint32_t m_ctrl = 0;
std::unique_ptr<uint32_t[]> m_fifo[2];
- uint32_t m_fifo_curr[2];
+ uint32_t m_fifo_curr[2]{};
};
DECLARE_DEVICE_TYPE(SONYPS2_SIF, ps2_sif_device)