mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
init vars for coverity (drivers/q,r)
This commit is contained in:
parent
3d005db62e
commit
8baee7398d
@ -95,11 +95,11 @@ private:
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(clock_timer_cb);
|
||||
|
||||
tilemap_t *m_tilemap;
|
||||
uint32_t m_clocks;
|
||||
int m_blink_state;
|
||||
int m_category_enable;
|
||||
int m_tape_head_pos;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
uint32_t m_clocks = 0;
|
||||
int m_blink_state = 0;
|
||||
int m_category_enable = 0;
|
||||
int m_tape_head_pos = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -186,33 +186,33 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
/* FDD */
|
||||
int m_fdcint;
|
||||
uint8_t m_motor_clk;
|
||||
uint16_t m_counter;
|
||||
//int m_fdcready;
|
||||
int m_fdcint = 0;
|
||||
uint8_t m_motor_clk = 0;
|
||||
uint16_t m_counter = 0;
|
||||
//int m_fdcready = 0;
|
||||
|
||||
int m_spkr_enable;
|
||||
int m_spkr_freq;
|
||||
int m_pit1_out0;
|
||||
int m_spkr_enable = 0;
|
||||
int m_spkr_freq = 0;
|
||||
int m_pit1_out0 = 0;
|
||||
|
||||
/* centronics */
|
||||
int m_centronics_error;
|
||||
int m_centronics_busy;
|
||||
int m_centronics_paper;
|
||||
int m_centronics_select;
|
||||
int m_centronics_sense;
|
||||
int m_centronics_error = 0;
|
||||
int m_centronics_busy = 0;
|
||||
int m_centronics_paper = 0;
|
||||
int m_centronics_select = 0;
|
||||
int m_centronics_sense = 0;
|
||||
|
||||
|
||||
/* memory */
|
||||
memory_view m_ram_view;
|
||||
int m_external_bank;
|
||||
int m_membank;
|
||||
int m_memprom;
|
||||
int m_memcmos;
|
||||
uint8_t m_cmosram[0x800];
|
||||
int m_external_bank = 0;
|
||||
int m_membank = 0;
|
||||
int m_memprom = 0;
|
||||
int m_memcmos = 0;
|
||||
uint8_t m_cmosram[0x800]{};
|
||||
|
||||
uint8_t m_color_mode;
|
||||
uint8_t m_zoom;
|
||||
uint8_t m_color_mode = 0;
|
||||
uint8_t m_zoom = 0;
|
||||
};
|
||||
|
||||
UPD7220_DISPLAY_PIXELS_MEMBER( qx10_state::hgdc_display_pixels )
|
||||
|
@ -94,9 +94,9 @@ private:
|
||||
required_device<ay8910_device> m_ay1;
|
||||
required_device<ay8910_device> m_ay2;
|
||||
|
||||
uint8_t m_flipscreen;
|
||||
uint32_t m_ttl74123_output;
|
||||
uint8_t m_AY8910_selected;
|
||||
uint8_t m_flipscreen = 0;
|
||||
uint32_t m_ttl74123_output = 0;
|
||||
uint8_t m_AY8910_selected = 0;
|
||||
|
||||
uint8_t audio_command_r();
|
||||
void audio_command_w(uint8_t data);
|
||||
|
@ -128,19 +128,19 @@ private:
|
||||
required_device<wd33c93_device> m_wd33c93;
|
||||
required_shared_ptr<uint32_t> m_main_ram;
|
||||
|
||||
m68000_base_device* ptr_m68000;
|
||||
m68000_base_device* ptr_m68000 = nullptr;
|
||||
|
||||
// Begin registers
|
||||
uint32_t reg_ff050004;
|
||||
uint32_t reg_fff80040;
|
||||
uint32_t fdd_dest_address; // 5FF080B0
|
||||
uint32_t fdd_cmd_complete;
|
||||
uint32_t smioc_dma_bank;
|
||||
uint32_t fdd_dma_bank;
|
||||
uint32_t reg_ff050004 = 0;
|
||||
uint32_t reg_fff80040 = 0;
|
||||
uint32_t fdd_dest_address = 0; // 5FF080B0
|
||||
uint32_t fdd_cmd_complete = 0;
|
||||
uint32_t smioc_dma_bank = 0;
|
||||
uint32_t fdd_dma_bank = 0;
|
||||
attotime timer_32khz_last;
|
||||
// End registers
|
||||
|
||||
address_space *m_mem;
|
||||
address_space *m_mem = nullptr;
|
||||
|
||||
// functions
|
||||
uint32_t swap_uint32( uint32_t val );
|
||||
|
@ -154,12 +154,12 @@ private:
|
||||
|
||||
std::unique_ptr<bitmap_ind16> m_sprite_bitmap;
|
||||
rectangle m_sprite_clip;
|
||||
int m_vblirqlevel;
|
||||
int m_bltirqlevel;
|
||||
int m_banking;
|
||||
int m_vblirqlevel = 0;
|
||||
int m_bltirqlevel = 0;
|
||||
int m_banking = 0;
|
||||
std::unique_ptr<uint32_t[]> m_tilemap_ram[4];
|
||||
tilemap_t *m_tilemap[4];
|
||||
emu_timer *m_blit_done_timer;
|
||||
tilemap_t *m_tilemap[4]{};
|
||||
emu_timer *m_blit_done_timer = nullptr;
|
||||
|
||||
TILE_GET_INFO_MEMBER(get_tilemap0_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_tilemap1_tile_info);
|
||||
|
@ -44,7 +44,7 @@ private:
|
||||
void rambo_prg_map(address_map &map);
|
||||
void rambo_data_map(address_map &map);
|
||||
|
||||
uint8_t m_port_a;
|
||||
uint8_t m_port_a = 0;
|
||||
required_device<avr8_device> m_maincpu;
|
||||
};
|
||||
|
||||
|
@ -137,11 +137,11 @@ private:
|
||||
DECLARE_WRITE_LINE_MEMBER(vblank_irq);
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_nvram8;
|
||||
uint8_t m_irq_status;
|
||||
uint32_t m_dpyaddr;
|
||||
uint8_t m_irq_status = 0;
|
||||
uint32_t m_dpyaddr = 0;
|
||||
std::unique_ptr<uint16_t[]> m_paletteram;
|
||||
uint32_t m_speedup_count;
|
||||
uint32_t m_tms_io_regs[0x80];
|
||||
uint32_t m_speedup_count = 0;
|
||||
uint32_t m_tms_io_regs[0x80]{};
|
||||
bitmap_ind16 m_update_bitmap;
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
@ -103,9 +103,9 @@ private:
|
||||
required_device<ym2151_device> m_ymsnd;
|
||||
required_ioport_array<3> m_dsw;
|
||||
|
||||
uint16_t m_tilebank;
|
||||
uint8_t m_mux_data;
|
||||
uint16_t m_dip_mux;
|
||||
uint16_t m_tilebank = 0;
|
||||
uint8_t m_mux_data = 0;
|
||||
uint16_t m_dip_mux = 0;
|
||||
|
||||
void mcu_io(address_map &map);
|
||||
void mcu_mem(address_map &map);
|
||||
|
@ -56,9 +56,9 @@ private:
|
||||
required_ioport_array<9> m_keys;
|
||||
required_device<pia6821_device> m_pia1;
|
||||
|
||||
uint8_t m_key_scan;
|
||||
bool m_shift;
|
||||
bool m_ctrl;
|
||||
uint8_t m_key_scan = 0;
|
||||
bool m_shift = false;
|
||||
bool m_ctrl = false;
|
||||
};
|
||||
|
||||
|
||||
|
@ -125,12 +125,12 @@ private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
||||
// re900 specific
|
||||
uint8_t m_psg_pa;
|
||||
uint8_t m_psg_pb;
|
||||
uint8_t m_mux_data;
|
||||
uint8_t m_ledant;
|
||||
uint8_t m_player;
|
||||
uint8_t m_stat_a;
|
||||
uint8_t m_psg_pa = 0;
|
||||
uint8_t m_psg_pb = 0;
|
||||
uint8_t m_mux_data = 0;
|
||||
uint8_t m_ledant = 0;
|
||||
uint8_t m_player = 0;
|
||||
uint8_t m_stat_a = 0;
|
||||
output_finder<84> m_lamps;
|
||||
};
|
||||
|
||||
|
@ -168,7 +168,7 @@ public:
|
||||
private:
|
||||
int oz_wzd_extract_tag(const std::vector<uint8_t> &data, const char *tag, char *dest_buf);
|
||||
|
||||
uint16_t m_kb_mask;
|
||||
uint16_t m_kb_mask = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -63,9 +63,9 @@ private:
|
||||
required_device<upd7759_device> m_upd;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
uint8_t m_hbeat;
|
||||
bool m_aysnd_data_next;
|
||||
bool m_aysnd_toggle_enabled;
|
||||
uint8_t m_hbeat = 0;
|
||||
bool m_aysnd_data_next = false;
|
||||
bool m_aysnd_toggle_enabled = false;
|
||||
|
||||
void aysnd_2000_w(uint8_t data);
|
||||
void aysnd_2002_w(uint8_t data);
|
||||
|
@ -66,7 +66,7 @@ private:
|
||||
void a7000_map(address_map &map);
|
||||
void riscpc_map(address_map &map);
|
||||
|
||||
bool m_i2cmem_clock;
|
||||
bool m_i2cmem_clock = false;
|
||||
DECLARE_READ_LINE_MEMBER(iocr_od0_r);
|
||||
DECLARE_READ_LINE_MEMBER(iocr_od1_r);
|
||||
DECLARE_WRITE_LINE_MEMBER(iocr_od0_w);
|
||||
|
@ -82,9 +82,9 @@ protected:
|
||||
|
||||
required_ioport_array<2> m_key;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_keyboard_cmd;
|
||||
uint8_t m_gfxbank;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t m_keyboard_cmd = 0;
|
||||
uint8_t m_gfxbank = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -93,11 +93,11 @@ private:
|
||||
void d110_map(address_map &map);
|
||||
void d110_bank_map(address_map &map);
|
||||
|
||||
uint8_t m_lcd_data_buffer[256];
|
||||
int m_lcd_data_buffer_pos;
|
||||
uint8_t m_midi;
|
||||
int m_midi_pos;
|
||||
uint8_t m_port0;
|
||||
uint8_t m_lcd_data_buffer[256]{};
|
||||
int m_lcd_data_buffer_pos = 0;
|
||||
uint8_t m_midi = 0;
|
||||
int m_midi_pos = 0;
|
||||
uint8_t m_port0 = 0;
|
||||
required_device<address_map_bank_device> m_bank;
|
||||
required_device<nvram_device> m_rams;
|
||||
required_device<nvram_device> m_memcs;
|
||||
|
@ -224,11 +224,11 @@ private:
|
||||
|
||||
void mt32_map(address_map &map);
|
||||
|
||||
uint8_t lcd_data_buffer[256];
|
||||
int lcd_data_buffer_pos;
|
||||
uint8_t midi;
|
||||
int midi_pos;
|
||||
uint8_t port0;
|
||||
uint8_t lcd_data_buffer[256]{};
|
||||
int lcd_data_buffer_pos = 0;
|
||||
uint8_t midi = 0;
|
||||
int midi_pos = 0;
|
||||
uint8_t port0 = 0;
|
||||
};
|
||||
|
||||
mt32_state::mt32_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
|
@ -183,7 +183,7 @@ private:
|
||||
|
||||
int m_fb_current;
|
||||
|
||||
uint8_t *m_texture_ram;
|
||||
uint8_t *m_texture_ram = nullptr;
|
||||
};
|
||||
|
||||
template<bool UseZ>
|
||||
|
@ -112,7 +112,7 @@ private:
|
||||
|
||||
uint8_t m_reg[0x10];
|
||||
std::unique_ptr<uint8_t[]> m_videobuf;
|
||||
uint8_t m_lamp_old;
|
||||
uint8_t m_lamp_old = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -191,7 +191,7 @@ private:
|
||||
required_device<sn76477_device> m_sn;
|
||||
required_device<dac_byte_interface> m_dac;
|
||||
|
||||
int m_speakres_vrx;
|
||||
int m_speakres_vrx = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -195,19 +195,19 @@ protected:
|
||||
|
||||
required_region_ptr<u32> m_ipl;
|
||||
|
||||
u8 m_mcu_p0;
|
||||
u8 m_mcu_p1;
|
||||
u8 m_mcu_p2;
|
||||
u8 m_mcu_p3;
|
||||
u8 m_mcu_p0 = 0;
|
||||
u8 m_mcu_p1 = 0;
|
||||
u8 m_mcu_p2 = 0;
|
||||
u8 m_mcu_p3 = 0;
|
||||
|
||||
u8 m_ppi_pb;
|
||||
u8 m_mcu_uart;
|
||||
u8 m_ppi_pb = 0;
|
||||
u8 m_mcu_uart = 0;
|
||||
|
||||
u8 m_ch8er; // dma channel 8 enable register
|
||||
u8 m_crra; // component reset register a
|
||||
u8 m_crrb; // component reset register b
|
||||
u8 m_ch8er = 0; // dma channel 8 enable register
|
||||
u8 m_crra = 0; // component reset register a
|
||||
u8 m_crrb = 0; // component reset register b
|
||||
|
||||
u8 m_ext[2]; // external serial registers
|
||||
u8 m_ext[2]{}; // external serial registers
|
||||
};
|
||||
|
||||
static double const speaker_levels[4] = { 0.0, 1.0 / 3.0, 2.0 / 3.0, 1.0 };
|
||||
|
@ -101,7 +101,7 @@ private:
|
||||
|
||||
required_device<er2055_device> m_earom;
|
||||
|
||||
uint8_t m_tile_bank;
|
||||
uint8_t m_tile_bank = 0;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user