mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
init vars for coverity (drivers/c)
This commit is contained in:
parent
65b6c23dae
commit
b4aa4e060e
@ -74,10 +74,10 @@ protected:
|
||||
required_shared_ptr<uint8_t> m_fg_color_ram;
|
||||
required_shared_ptr<uint8_t> m_bg_scroll;
|
||||
required_shared_ptr<uint8_t> m_bg_tile_ram;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
int m_nmi_enable;
|
||||
uint8_t m_out[3];
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
int m_nmi_enable = 0;
|
||||
uint8_t m_out[3]{};
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
@ -172,10 +172,10 @@ private:
|
||||
std::unique_ptr<uint32_t[]> m_bios_ram;
|
||||
std::unique_ptr<uint32_t[]> m_bios_ext_ram;
|
||||
std::unique_ptr<uint8_t[]> m_nvram_data;
|
||||
uint8_t m_mtxc_config_reg[256];
|
||||
uint8_t m_piix4_config_reg[4][256];
|
||||
uint8_t m_mtxc_config_reg[256]{};
|
||||
uint8_t m_piix4_config_reg[4][256]{};
|
||||
|
||||
uint32_t m_idle_skip_ram;
|
||||
uint32_t m_idle_skip_ram = 0;
|
||||
void bios_ext_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
|
||||
void bios_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
|
||||
uint8_t nvram_r(offs_t offset);
|
||||
|
@ -49,7 +49,7 @@ private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device_array<sega315_5313_device, 2> m_vdp;
|
||||
|
||||
int m_vdp_state;
|
||||
int m_vdp_state = 0;
|
||||
|
||||
WRITE_LINE_MEMBER(vdp_sndirqline_callback_genesis_z80);
|
||||
WRITE_LINE_MEMBER(vdp_lv6irqline_callback_genesis_68k);
|
||||
|
@ -109,9 +109,9 @@ public:
|
||||
required_shared_ptr<uint8_t> m_sprites;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
uint8_t m_bg_bank;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
uint8_t m_bg_bank = 0;
|
||||
void fg_ram_w(offs_t offset, uint8_t data);
|
||||
void bg_bank_w(uint8_t data);
|
||||
void calorie_flipscreen_w(uint8_t data);
|
||||
|
@ -227,7 +227,7 @@ private:
|
||||
u8 m_port80 = 0U;
|
||||
u8 m_bankdata = 0U;
|
||||
u8 m_wbyte = 0U;
|
||||
u8 *m_p_ram;
|
||||
u8 *m_p_ram = nullptr;
|
||||
bool m_is_128k = 0;
|
||||
required_device<palette_device> m_palette;
|
||||
required_device<z80_device> m_maincpu;
|
||||
|
@ -169,9 +169,9 @@ protected:
|
||||
required_device<acia6850_device> m_acia;
|
||||
required_device<cassette_image_device> m_cass;
|
||||
|
||||
uint8_t m_banksel;
|
||||
uint8_t *m_plap;
|
||||
uint8_t *m_epromp;
|
||||
uint8_t m_banksel = 0;
|
||||
uint8_t *m_plap = nullptr;
|
||||
uint8_t *m_epromp = nullptr;
|
||||
|
||||
uint8_t m_ram0[1024 * 8]; // IC3
|
||||
uint8_t m_ram1[1024 * 32]; // IC4
|
||||
|
@ -76,8 +76,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_shared_ptr<uint8_t> m_colorram;
|
||||
|
||||
uint8_t m_video;
|
||||
uint8_t m_hsync_q;
|
||||
uint8_t m_video = 0;
|
||||
uint8_t m_hsync_q = 0;
|
||||
|
||||
required_device<i80c32_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
@ -72,9 +72,9 @@ public:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
bool m_nmi_enabled;
|
||||
uint8_t m_bgcolor;
|
||||
tilemap_t *m_tilemap;
|
||||
bool m_nmi_enabled = false;
|
||||
uint8_t m_bgcolor = 0;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
|
||||
void bgcolor_w(uint8_t data);
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
|
@ -191,8 +191,8 @@ private:
|
||||
std::unique_ptr<uint16_t[]> m_paletteram;
|
||||
std::unique_ptr<uint8_t[]> m_vram;
|
||||
std::unique_ptr<uint8_t[]> m_bitmap_vram;
|
||||
uint16_t sh7021_regs[0x100];
|
||||
int m_gfx_index;
|
||||
uint16_t sh7021_regs[0x100]{};
|
||||
int m_gfx_index = 0;
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
uint16_t vregs_r(offs_t offset);
|
||||
|
@ -110,7 +110,7 @@ protected:
|
||||
private:
|
||||
required_shared_ptr<uint8_t> m_sc0_vram;
|
||||
required_shared_ptr<uint8_t> m_sc0_attr;
|
||||
tilemap_t *m_sc0_tilemap;
|
||||
tilemap_t *m_sc0_tilemap = nullptr;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
output_finder<5> m_lamps;
|
||||
|
@ -76,13 +76,13 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
int m_videobank;
|
||||
int m_videomode;
|
||||
tilemap_t *m_reel1_tilemap;
|
||||
tilemap_t *m_reel2_tilemap;
|
||||
tilemap_t *m_reel3_tilemap;
|
||||
int m_other1;
|
||||
int m_other2;
|
||||
int m_videobank = 0;
|
||||
int m_videomode = 0;
|
||||
tilemap_t *m_reel1_tilemap = nullptr;
|
||||
tilemap_t *m_reel2_tilemap = nullptr;
|
||||
tilemap_t *m_reel3_tilemap = nullptr;
|
||||
int m_other1 = 0;
|
||||
int m_other2 = 0;
|
||||
|
||||
void cb2001_vidctrl_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
void cb2001_vidctrl2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
|
@ -40,9 +40,9 @@ public:
|
||||
required_shared_ptr<uint8_t> m_video_ram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t* m_bg_tilemap;
|
||||
tilemap_t* m_bg_tilemap = nullptr;
|
||||
|
||||
emu_timer *m_int_timer;
|
||||
emu_timer *m_int_timer = nullptr;
|
||||
TIMER_CALLBACK_MEMBER(interrupt_callback);
|
||||
|
||||
void vram_w(offs_t offset, uint8_t data);
|
||||
|
@ -62,8 +62,8 @@ private:
|
||||
void output_1_w(uint8_t data);
|
||||
void main_map(address_map &map);
|
||||
|
||||
uint8_t m_hop_io;
|
||||
uint8_t m_bell_io;
|
||||
uint8_t m_hop_io = 0;
|
||||
uint8_t m_bell_io = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -85,12 +85,12 @@ private:
|
||||
|
||||
required_ioport_array<3> m_inputs;
|
||||
|
||||
int m_sound_flags;
|
||||
int m_coin_flag;
|
||||
int m_output[2];
|
||||
int m_xcenter;
|
||||
int m_ycenter;
|
||||
emu_timer *m_refresh_end_timer;
|
||||
int m_sound_flags = 0;
|
||||
int m_coin_flag = 0;
|
||||
int m_output[2]{};
|
||||
int m_xcenter = 0;
|
||||
int m_ycenter = 0;
|
||||
emu_timer *m_refresh_end_timer = nullptr;
|
||||
|
||||
void led_w(offs_t offset, uint16_t data);
|
||||
void refresh_control_w(offs_t offset, uint8_t data);
|
||||
|
@ -65,12 +65,12 @@ private:
|
||||
void block8_map(address_map &map);
|
||||
void blockc_map(address_map &map);
|
||||
|
||||
u8 m_flashcnt;
|
||||
u8 m_foreign_char_bank;
|
||||
u8 m_flashcnt = 0;
|
||||
u8 m_foreign_char_bank = 0;
|
||||
|
||||
u8 m_pending_interrupts;
|
||||
u8 m_active_interrupts;
|
||||
u8 m_interrupt_mask;
|
||||
u8 m_pending_interrupts = 0;
|
||||
u8 m_active_interrupts = 0;
|
||||
u8 m_interrupt_mask = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device_array<address_map_bank_device, 4> m_bank_16k;
|
||||
|
@ -364,8 +364,8 @@ private:
|
||||
u8 other_cpu_r(offs_t offset);
|
||||
void other_cpu_w(offs_t offset, u8 data);
|
||||
|
||||
u8 m_paladdr;
|
||||
int m_palbank;
|
||||
u8 m_paladdr = 0;
|
||||
int m_palbank = 0;
|
||||
|
||||
u8 m_ic48_pio_pa_val;
|
||||
u8 m_ic48_pio_pb_val;
|
||||
|
@ -105,9 +105,9 @@ protected:
|
||||
required_device<screen_device> m_screen;
|
||||
required_shared_ptr<u32> m_vram;
|
||||
|
||||
u8 m_dcr;
|
||||
u16 m_mouse_x;
|
||||
u16 m_mouse_y;
|
||||
u8 m_dcr = 0;
|
||||
u16 m_mouse_x = 0;
|
||||
u16 m_mouse_y = 0;
|
||||
|
||||
enum wfc_status : u8
|
||||
{
|
||||
@ -119,15 +119,15 @@ protected:
|
||||
WFC_S_RDY = 0x40, // drive ready
|
||||
WFC_S_BSY = 0x80, // busy
|
||||
};
|
||||
u8 m_wfc_sram[2048];
|
||||
unsigned m_wfc_offset;
|
||||
u8 m_wfc_error;
|
||||
u8 m_wfc_precomp;
|
||||
u8 m_wfc_count;
|
||||
u8 m_wfc_sector;
|
||||
u16 m_wfc_cylinder;
|
||||
u8 m_wfc_sdh;
|
||||
u8 m_wfc_status;
|
||||
u8 m_wfc_sram[2048]{};
|
||||
unsigned m_wfc_offset = 0;
|
||||
u8 m_wfc_error = 0;
|
||||
u8 m_wfc_precomp = 0;
|
||||
u8 m_wfc_count = 0;
|
||||
u8 m_wfc_sector = 0;
|
||||
u16 m_wfc_cylinder = 0;
|
||||
u8 m_wfc_sdh = 0;
|
||||
u8 m_wfc_status = 0;
|
||||
};
|
||||
|
||||
void ceres1_state::machine_start()
|
||||
|
@ -72,13 +72,13 @@ private:
|
||||
void chance32_map(address_map &map);
|
||||
void chance32_portmap(address_map &map);
|
||||
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
|
||||
required_shared_ptr<uint8_t> m_fgram;
|
||||
required_shared_ptr<uint8_t> m_bgram;
|
||||
|
||||
uint8_t mux_data;
|
||||
uint8_t mux_data = 0;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
output_finder<13> m_lamps;
|
||||
|
@ -180,8 +180,8 @@ protected:
|
||||
void mem(address_map &map);
|
||||
|
||||
required_device<ay8910_device> m_aysnd; // only faceoffh
|
||||
uint8_t m_ay_cmd;
|
||||
uint8_t m_ay_data;
|
||||
uint8_t m_ay_cmd = 0;
|
||||
uint8_t m_ay_data = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -1534,9 +1534,9 @@ protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
uint8_t read_buffer[0x20];
|
||||
uint8_t write_buffer[0x20];
|
||||
chihiro_state *chihirosystem;
|
||||
uint8_t read_buffer[0x20]{};
|
||||
uint8_t write_buffer[0x20]{};
|
||||
chihiro_state *chihirosystem{};
|
||||
static const int size_factor = 2;
|
||||
};
|
||||
|
||||
|
@ -283,14 +283,14 @@ protected:
|
||||
|
||||
private:
|
||||
// for Sai Yu Gou Ma Roku
|
||||
int m_adpcm_addr;
|
||||
int m_i8748_P1;
|
||||
int m_i8748_P2;
|
||||
int m_pcm_shift;
|
||||
int m_pcm_nibble;
|
||||
int m_mcu_command;
|
||||
int m_adpcm_addr = 0;
|
||||
int m_i8748_P1 = 0;
|
||||
int m_i8748_P2 = 0;
|
||||
int m_pcm_shift = 0;
|
||||
int m_pcm_nibble = 0;
|
||||
int m_mcu_command = 0;
|
||||
#if 0
|
||||
int m_m5205_clk;
|
||||
int m_m5205_clk = 0;
|
||||
#endif
|
||||
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(chinagat_scanline);
|
||||
|
@ -65,9 +65,9 @@ protected:
|
||||
virtual void video_start() override;
|
||||
|
||||
|
||||
int m_tilexor;
|
||||
uint8_t m_blacklamp;
|
||||
uint8_t m_redlamp;
|
||||
int m_tilexor = 0;
|
||||
uint8_t m_blacklamp = 0;
|
||||
uint8_t m_redlamp = 0;
|
||||
std::unique_ptr<uint8_t[]> m_vram;
|
||||
|
||||
required_device<z180_device> m_maincpu;
|
||||
|
@ -60,7 +60,7 @@ private:
|
||||
required_device<scn2674_device> m_avdc;
|
||||
required_region_ptr<u8> m_chargen;
|
||||
|
||||
bool m_132_cols;
|
||||
bool m_132_cols = false;
|
||||
};
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ WRITE_LINE_MEMBER(cit220_state::sod_w)
|
||||
|
||||
WRITE_LINE_MEMBER(cit220_state::cols_w)
|
||||
{
|
||||
if (!state != m_132_cols)
|
||||
if (state == m_132_cols)
|
||||
{
|
||||
m_132_cols = !state;
|
||||
m_avdc->set_character_width(m_132_cols ? 9 : 10);
|
||||
|
@ -54,9 +54,9 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
/* misc */
|
||||
emu_timer *m_analog_timer_1, *m_analog_timer_2;
|
||||
uint8_t m_input_port_select;
|
||||
uint8_t m_analog_port_val;
|
||||
emu_timer *m_analog_timer_1 = nullptr, *m_analog_timer_2 = nullptr;
|
||||
uint8_t m_input_port_select = 0;
|
||||
uint8_t m_analog_port_val = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
};
|
||||
|
@ -127,7 +127,7 @@ private:
|
||||
int m_port_bank;
|
||||
uint32_t m_philips_code;
|
||||
|
||||
emu_timer *m_irq_timer;
|
||||
emu_timer *m_irq_timer = nullptr;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<discrete_device> m_discrete;
|
||||
|
@ -79,10 +79,10 @@ private:
|
||||
required_device<ticket_dispenser_device> m_hopper;
|
||||
required_shared_ptr<u8> m_videoram;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
|
||||
bool m_nmi_enable;
|
||||
bool m_nmi_enable = false;
|
||||
};
|
||||
|
||||
void clpoker_state::prg_map(address_map &map)
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
required_device<palette_device> m_palette;
|
||||
required_device<address_map_bank_device> m_bnk2000;
|
||||
|
||||
uint8_t m_irq_mask;
|
||||
uint8_t m_irq_mask = 0;
|
||||
|
||||
void cmmb_charram_w(offs_t offset, uint8_t data);
|
||||
uint8_t cmmb_input_r(offs_t offset);
|
||||
|
@ -70,22 +70,22 @@ public:
|
||||
required_shared_ptr<uint8_t> m_videoram2;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
int m_bg_bank;
|
||||
int m_bg_color_bank;
|
||||
int m_flipscreen;
|
||||
int m_scrolly;
|
||||
int m_scrolly_hi;
|
||||
int m_scrollx;
|
||||
int m_scrollx_hi;
|
||||
int m_rotation_x;
|
||||
int m_rotation_sign;
|
||||
int m_disable_roz;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
int m_bg_bank = 0;
|
||||
int m_bg_color_bank = 0;
|
||||
int m_flipscreen = 0;
|
||||
int m_scrolly = 0;
|
||||
int m_scrolly_hi = 0;
|
||||
int m_scrollx = 0;
|
||||
int m_scrollx_hi = 0;
|
||||
int m_rotation_x = 0;
|
||||
int m_rotation_sign = 0;
|
||||
int m_disable_roz = 0;
|
||||
|
||||
/* misc */
|
||||
int m_nmimask; // zerotrgt only
|
||||
bool m_sub_nmimask; // counter steer only
|
||||
int m_nmimask = 0; // zerotrgt only
|
||||
bool m_sub_nmimask = false; // counter steer only
|
||||
|
||||
/* devices */
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
@ -800,48 +800,48 @@ public:
|
||||
MAIN_INT_S2M = 0x02
|
||||
};
|
||||
|
||||
uint8_t m_m2s_int_enable;
|
||||
uint8_t m_s2m_int_enable;
|
||||
uint8_t m_vblank_enable;
|
||||
uint8_t m_m2s_int_enable = 0;
|
||||
uint8_t m_s2m_int_enable = 0;
|
||||
uint8_t m_vblank_enable = 0;
|
||||
|
||||
uint8_t m_m2s_int_mode;
|
||||
uint8_t m_s2m_int_mode;
|
||||
uint8_t m_m2s_int_mode = 0;
|
||||
uint8_t m_s2m_int_mode = 0;
|
||||
|
||||
uint8_t m_main_int_active;
|
||||
uint8_t m_main_int_active = 0;
|
||||
|
||||
|
||||
std::unique_ptr<uint32_t[]> m_comram[2];
|
||||
int m_comram_page;
|
||||
int m_comram_page = 0;
|
||||
|
||||
int m_main_debug_state;
|
||||
int m_main_debug_state_wc;
|
||||
int m_sub_debug_state;
|
||||
int m_sub_debug_state_wc;
|
||||
int m_gfx_debug_state;
|
||||
int m_gfx_debug_state_wc;
|
||||
int m_main_debug_state = 0;
|
||||
int m_main_debug_state_wc = 0;
|
||||
int m_sub_debug_state = 0;
|
||||
int m_sub_debug_state_wc = 0;
|
||||
int m_gfx_debug_state = 0;
|
||||
int m_gfx_debug_state_wc = 0;
|
||||
|
||||
uint32_t m_sub_psac_reg;
|
||||
int m_sub_psac_count;
|
||||
uint32_t m_sub_interrupt;
|
||||
uint32_t m_sub_psac_reg = 0;
|
||||
int m_sub_psac_count = 0;
|
||||
uint32_t m_sub_interrupt = 0;
|
||||
|
||||
uint8_t m_gfx_unk_flag;
|
||||
uint32_t m_gfx_re_command_word1;
|
||||
uint32_t m_gfx_re_command_word2;
|
||||
int m_gfx_re_word_count;
|
||||
int m_gfx_re_status;
|
||||
uint32_t m_gfx_unk_status;
|
||||
uint8_t m_gfx_unk_flag = 0;
|
||||
uint32_t m_gfx_re_command_word1 = 0;
|
||||
uint32_t m_gfx_re_command_word2 = 0;
|
||||
int m_gfx_re_word_count = 0;
|
||||
int m_gfx_re_status = 0;
|
||||
uint32_t m_gfx_unk_status = 0;
|
||||
|
||||
uint64_t m_gfx_fifo_mem[256];
|
||||
int m_gfx_fifo_cache_addr;
|
||||
int m_gfx_fifo_loopback;
|
||||
int m_gfx_unknown_v1;
|
||||
int m_gfx_status_byte;
|
||||
uint64_t m_gfx_fifo_mem[256]{};
|
||||
int m_gfx_fifo_cache_addr = 0;
|
||||
int m_gfx_fifo_loopback = 0;
|
||||
int m_gfx_unknown_v1 = 0;
|
||||
int m_gfx_status_byte = 0;
|
||||
|
||||
bool m_has_psac;
|
||||
bool m_has_psac = false;
|
||||
|
||||
std::unique_ptr<int16_t[]> m_sound_dma_buffer_l;
|
||||
std::unique_ptr<int16_t[]> m_sound_dma_buffer_r;
|
||||
uint32_t m_sound_dma_ptr;
|
||||
uint32_t m_sound_dma_ptr = 0;
|
||||
|
||||
void init_racjamdx();
|
||||
void init_bujutsu();
|
||||
|
@ -214,7 +214,7 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_videoram;
|
||||
uint8_t m_videobank;
|
||||
uint8_t m_videobank = 0;
|
||||
|
||||
uint8_t vram_r(offs_t offset);
|
||||
void vram_w(offs_t offset, uint8_t data);
|
||||
|
@ -161,8 +161,8 @@ public:
|
||||
required_shared_ptr<uint8_t> m_attr_ram1;
|
||||
required_shared_ptr<uint8_t> m_attr_ram2;
|
||||
required_shared_ptr<uint8_t> m_attr_ram3;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_question_adr[4];
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t m_question_adr[4]{};
|
||||
void quizmstr_bg_w(offs_t offset, uint8_t data);
|
||||
void quizmstr_attr1_w(offs_t offset, uint8_t data);
|
||||
void quizmstr_attr2_w(offs_t offset, uint8_t data);
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
void compc_map(address_map &map);
|
||||
void compciii_io(address_map &map);
|
||||
private:
|
||||
u8 m_portb, m_dips;
|
||||
u8 m_portb = 0, m_dips = 0;
|
||||
};
|
||||
|
||||
void compc_state::machine_reset()
|
||||
|
@ -60,9 +60,9 @@ private:
|
||||
|
||||
required_device<nt7534_device> m_lcdc;
|
||||
|
||||
uint8_t m_p0_data;
|
||||
uint8_t m_p1_data;
|
||||
uint8_t m_p3_data;
|
||||
uint8_t m_p0_data = 0xff;
|
||||
uint8_t m_p1_data = 0xff;
|
||||
uint8_t m_p3_data = 0xff;
|
||||
};
|
||||
|
||||
|
||||
|
@ -380,14 +380,14 @@ private:
|
||||
void winner82_sound_cpu_io_map(address_map &map);
|
||||
void winner82_sound_map(address_map &map);
|
||||
|
||||
uint8_t m_blitter_x_reg;
|
||||
uint8_t m_blitter_y_reg;
|
||||
uint8_t m_blitter_aux_reg;
|
||||
uint8_t m_blitter_unk_reg;
|
||||
uint8_t m_blitter_x_reg = 0;
|
||||
uint8_t m_blitter_y_reg = 0;
|
||||
uint8_t m_blitter_aux_reg = 0;
|
||||
uint8_t m_blitter_unk_reg = 0;
|
||||
std::unique_ptr<uint8_t[]> m_videobuf;
|
||||
uint8_t m_lamp;
|
||||
uint8_t m_lamp_old;
|
||||
uint8_t m_input_selector;
|
||||
uint8_t m_lamp = 0;
|
||||
uint8_t m_lamp_old = 0;
|
||||
uint8_t m_input_selector = 0;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_soundcpu;
|
||||
required_device<screen_device> m_screen;
|
||||
|
@ -69,13 +69,13 @@ private:
|
||||
required_region_ptr<u8> m_colormap;
|
||||
|
||||
/* video-related */
|
||||
int m_color_registers[2];
|
||||
bool m_flip_screen;
|
||||
int m_color_registers[2]{};
|
||||
bool m_flip_screen = false;
|
||||
|
||||
/* sound-related */
|
||||
int m_sound_enabled;
|
||||
int m_march_select;
|
||||
int m_gun_die_select;
|
||||
int m_sound_enabled = 0;
|
||||
int m_march_select = 0;
|
||||
int m_gun_die_select = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -84,7 +84,7 @@ private:
|
||||
void sf2mdt_map(address_map &map);
|
||||
void captcommb2_z80map(address_map &map);
|
||||
|
||||
bool m_captcommb2_mux_toggle;
|
||||
bool m_captcommb2_mux_toggle = false;
|
||||
|
||||
optional_device_array<ls157_device, 2> m_msm_mux;
|
||||
};
|
||||
|
@ -57,7 +57,7 @@ private:
|
||||
void prg_map(address_map &map);
|
||||
void io_map(address_map &map);
|
||||
|
||||
u8 m_port_select;
|
||||
u8 m_port_select = 0;
|
||||
};
|
||||
|
||||
void cromptons_state::machine_start()
|
||||
|
@ -66,10 +66,10 @@ private:
|
||||
required_device<vrender0soc_device> m_vr0soc;
|
||||
required_device<pcf8583_device> m_rtc;
|
||||
|
||||
uint8_t m_FlashCmd;
|
||||
uint8_t m_FlashPrevCommand;
|
||||
uint32_t m_FlashAddr;
|
||||
uint8_t m_FlashShift;
|
||||
uint8_t m_FlashCmd = 0;
|
||||
uint8_t m_FlashPrevCommand = 0;
|
||||
uint32_t m_FlashAddr = 0;
|
||||
uint8_t m_FlashShift = 0;
|
||||
|
||||
// void Banksw_w(uint32_t data);
|
||||
uint8_t FlashCmd_r();
|
||||
@ -81,8 +81,8 @@ private:
|
||||
void crospuzl_mem(address_map &map);
|
||||
|
||||
// PIO
|
||||
uint32_t m_PIO;
|
||||
uint32_t m_ddr;
|
||||
uint32_t m_PIO = 0;
|
||||
uint32_t m_ddr = 0;
|
||||
uint32_t PIOlddr_r();
|
||||
void PIOlddr_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
|
||||
uint32_t PIOldat_r();
|
||||
|
@ -93,7 +93,7 @@ private:
|
||||
output_finder<> m_led_touch;
|
||||
output_finder<> m_led_power;
|
||||
|
||||
ioport_value m_switch;
|
||||
ioport_value m_switch{};
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER(render_w);
|
||||
};
|
||||
|
@ -53,9 +53,9 @@ public:
|
||||
}
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_depth_buffer;
|
||||
int m_video_field;
|
||||
uint8_t m_io_latch;
|
||||
uint8_t m_reset_latch;
|
||||
int m_video_field = 0;
|
||||
uint8_t m_io_latch = 0;
|
||||
uint8_t m_reset_latch = 0;
|
||||
required_device<simutrek_special_device> m_laserdisc;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<cquestrot_cpu_device> m_rotatecpu;
|
||||
|
@ -359,9 +359,9 @@ public:
|
||||
|
||||
optional_ioport_array<2> m_player_ports;
|
||||
|
||||
int m_oldstate[2];
|
||||
int m_cd32_shifter[2];
|
||||
uint16_t m_potgo_value;
|
||||
int m_oldstate[2]{};
|
||||
int m_cd32_shifter[2]{};
|
||||
uint16_t m_potgo_value = 0;
|
||||
|
||||
void cubo(machine_config &config);
|
||||
void cubo_mem(address_map &map);
|
||||
@ -375,7 +375,7 @@ private:
|
||||
required_device<cdda_device> m_cdda;
|
||||
|
||||
typedef void (cubo_state::*input_hack_func)();
|
||||
input_hack_func m_input_hack;
|
||||
input_hack_func m_input_hack{};
|
||||
void chip_ram_w8_hack(offs_t byteoffs, uint8_t data);
|
||||
void cndypuzl_input_hack();
|
||||
void haremchl_input_hack();
|
||||
|
@ -113,23 +113,23 @@ public:
|
||||
optional_ioport_array<2> m_dial;
|
||||
struct
|
||||
{
|
||||
uint8_t current_value;
|
||||
bool reverse;
|
||||
uint8_t current_value = 0;
|
||||
bool reverse = false;
|
||||
} m_dial_status[2];
|
||||
|
||||
struct
|
||||
{
|
||||
uint8_t rxd;
|
||||
uint8_t txd;
|
||||
uint8_t rst;
|
||||
uint8_t state;
|
||||
uint8_t packet_type;
|
||||
uint8_t rxd = 0;
|
||||
uint8_t txd = 0;
|
||||
uint8_t rst = 0;
|
||||
uint8_t state = 0;
|
||||
uint8_t packet_type = 0;
|
||||
} m_mcu[2];
|
||||
|
||||
uint16_t m_dsw_pc_hack;
|
||||
bool m_use_dial;
|
||||
bool m_screen_display;
|
||||
int m_sprite_page;
|
||||
uint16_t m_dsw_pc_hack = 0;
|
||||
bool m_use_dial = false;
|
||||
bool m_screen_display = false;
|
||||
int m_sprite_page = 0;
|
||||
|
||||
void cyclemb_bankswitch_w(uint8_t data);
|
||||
void skydest_bankswitch_w(uint8_t data);
|
||||
|
Loading…
Reference in New Issue
Block a user