init vars for coverity (drivers/m)

This commit is contained in:
Robbbert 2022-03-25 00:15:48 +11:00
parent 399576e1f4
commit 971c2c80c8
44 changed files with 261 additions and 250 deletions

View File

@ -46,7 +46,7 @@ private:
void io_map(address_map &map);
void program_map(address_map &map);
uint8_t m_selected_7seg_module;
uint8_t m_selected_7seg_module = 0;
virtual void machine_start() override;
output_finder<32> m_digits;
output_finder<30> m_leds;

View File

@ -490,9 +490,9 @@ private:
required_shared_ptr<uint8_t> m_colram;
required_shared_ptr<uint8_t> m_vram;
int m_irq0_ack;
int m_m5205_next;
int m_m5205_part;
int m_irq0_ack = 0;
int m_m5205_next = 0;
int m_m5205_part = 0;
uint8_t vram_r(offs_t offset);
void vram_w(offs_t offset, uint8_t data);

View File

@ -267,12 +267,12 @@ private:
std::unique_ptr<uint8_t[]> line_buf; // there's actually two
};
int m_lamp_strobe;
int m_old_lamp_strobe;
int m_vsync_latch_preset;
uint8_t m_p1;
uint8_t m_p3;
int m_d68681_val;
int m_lamp_strobe = 0;
int m_old_lamp_strobe = 0;
int m_vsync_latch_preset = 0;
uint8_t m_p1 = 0;
uint8_t m_p3 = 0;
int m_d68681_val = 0;
i82716_t m_i82716;
output_finder<8 * 256> m_lamp;
};

View File

@ -187,8 +187,8 @@ private:
output_finder<3> m_leds;
output_finder<2> m_lamps;
uint8_t m_port02_status;
uint32_t m_gfx_rom_bank; /* graphics ROMs are banked */
uint8_t m_port02_status = 0;
uint32_t m_gfx_rom_bank = 0; /* graphics ROMs are banked */
double m_weights_r[2];
double m_weights_g[3];
@ -198,11 +198,11 @@ private:
uint8_t m_ls670_0[4];
uint8_t m_ls670_1[4];
uint8_t m_zpu_int_vector;
uint8_t m_zpu_int_vector = 0;
uint8_t m_bcd_7445;
uint8_t m_bcd_7445 = 0;
uint8_t m_vsb_ls273;
uint8_t m_vsb_ls273 = 0;
};

View File

@ -71,8 +71,8 @@ protected:
required_device<ram_device> m_ram;
optional_device<mc10cart_slot_device> m_mc10cart;
uint8_t m_keyboard_strobe;
uint8_t m_port2;
uint8_t m_keyboard_strobe = 0;
uint8_t m_port2 = 0;
uint8_t read_keyboard_strobe(bool single_line);

View File

@ -96,14 +96,14 @@ private:
TIMER_CALLBACK_MEMBER(keyb_signal_callback);
struct {
uint8_t pulsing;
uint16_t mask; /* input lines */
emu_timer *keyb_signal_timer;
uint8_t pulsing = 0;
uint16_t mask = 0; /* input lines */
emu_timer *keyb_signal_timer = nullptr;
} m_kbd;
uint8_t m_ppi_portb;
uint8_t m_ppi_portc;
uint8_t m_spkrdata;
uint8_t m_ppi_portb = 0;
uint8_t m_ppi_portc = 0;
uint8_t m_spkrdata = 0;
DECLARE_WRITE_LINE_MEMBER(mc1502_pit8253_out1_changed);
DECLARE_WRITE_LINE_MEMBER(mc1502_pit8253_out2_changed);
@ -120,7 +120,7 @@ private:
void mc1502_io(address_map &map);
void mc1502_map(address_map &map);
int m_pit_out2;
int m_pit_out2 = 0;
};

View File

@ -186,8 +186,8 @@ private:
required_ioport_array<4> m_gun_io;
output_finder<2> m_gun_recoil;
tilemap_t *m_fix_tilemap;
tilemap_t *m_pf_tilemap[2];
tilemap_t *m_fix_tilemap = nullptr;
tilemap_t *m_pf_tilemap[2]{};
TILE_GET_INFO_MEMBER(get_tile_info);
template <int Layer, int Gfx> TILE_GET_INFO_MEMBER(get_pf_tile_info);

View File

@ -176,41 +176,41 @@ private:
optional_ioport_array<9> m_ports; // but parallel_pointer takes values 0 -> 23
uint32_t m_disp_ctrl_reg[256/4];
int m_frame_width;
int m_frame_height;
uint32_t m_disp_ctrl_reg[256/4]{};
int m_frame_width = 0;
int m_frame_height = 0;
uint32_t m_memory_ctrl_reg[256/4];
int m_pal_index;
uint32_t m_memory_ctrl_reg[256/4]{};
int m_pal_index = 0;
uint32_t m_biu_ctrl_reg[256/4];
uint32_t m_biu_ctrl_reg[256/4]{};
uint8_t m_mediagx_config_reg_sel;
uint8_t m_mediagx_config_regs[256];
uint8_t m_mediagx_config_reg_sel = 0;
uint8_t m_mediagx_config_regs[256]{};
//uint8_t m_controls_data;
uint8_t m_parallel_pointer;
uint8_t m_parallel_latched;
uint32_t m_parport;
//int m_control_num;
//int m_control_num2;
//int m_control_read;
//uint8_t m_controls_data = 0;
uint8_t m_parallel_pointer = 0;
uint8_t m_parallel_latched = 0;
uint32_t m_parport = 0;
//int m_control_num = 0;
//int m_control_num2 = 0;
//int m_control_read = 0;
uint32_t m_cx5510_regs[256/4];
uint32_t m_cx5510_regs[256/4]{};
std::unique_ptr<int16_t[]> m_dacl;
std::unique_ptr<int16_t[]> m_dacr;
int m_dacl_ptr;
int m_dacr_ptr;
int m_dacl_ptr = 0;
int m_dacr_ptr = 0;
uint8_t m_ad1847_regs[16];
uint32_t m_ad1847_sample_counter;
uint32_t m_ad1847_sample_rate;
uint8_t m_ad1847_regs[16]{};
uint32_t m_ad1847_sample_counter = 0;
uint32_t m_ad1847_sample_rate = 0;
#if SPEEDUP_HACKS
const speedup_entry *m_speedup_table;
uint32_t m_speedup_hits[12];
int m_speedup_count;
const speedup_entry *m_speedup_table = nullptr;
uint32_t m_speedup_hits[12]{};
int m_speedup_count = 0;
#endif
using speedup_handler = std::pair<uint32_t (mediagx_state::*)(address_space &), const char *>;

View File

@ -88,17 +88,17 @@ private:
void megaplay_bios_io_map(address_map &map);
void megaplay_bios_map(address_map &map);
uint32_t m_bios_mode; // determines whether ROM banks or Game data is to read from 0x8000-0xffff
uint32_t m_bios_mode = 0; // determines whether ROM banks or Game data is to read from 0x8000-0xffff
uint32_t m_bios_bank; // ROM bank selection
uint16_t m_game_banksel; // Game bank selection
uint32_t m_readpos; // serial bank selection position (9-bit)
uint32_t m_bios_bank_addr;
uint32_t m_bios_bank = 0; // ROM bank selection
uint16_t m_game_banksel = 0; // Game bank selection
uint32_t m_readpos = 0; // serial bank selection position (9-bit)
uint32_t m_bios_bank_addr = 0;
uint32_t m_bios_width; // determines the way the game info ROM is read
uint8_t m_bios_6600;
uint8_t m_bios_6403;
uint8_t m_bios_6404;
uint32_t m_bios_width = 0; // determines the way the game info ROM is read
uint8_t m_bios_6600 = 0;
uint8_t m_bios_6403 = 0;
uint8_t m_bios_6404 = 0;
std::unique_ptr<uint16_t[]> m_ic36_ram;
std::unique_ptr<uint8_t[]> m_ic37_ram;

View File

@ -239,11 +239,11 @@ private:
// video-related
std::unique_ptr<bitmap_ind16> m_tmpbitmap;
bool m_flipscreen;
bool m_flipscreen = 0;
// misc
uint8_t m_i8039_status;
bool m_irq_mask;
uint8_t m_i8039_status = 0;
bool m_irq_mask = false;
// devices
required_device<cpu_device> m_maincpu;

View File

@ -163,10 +163,10 @@ private:
required_shared_ptr<uint8_t> m_ram_attr;
required_shared_ptr<uint8_t> m_ram_video;
std::unique_ptr<uint8_t[]> m_ram_palette;
uint8_t m_lscnblk;
int m_extra_video_bank_bit;
int m_question_address;
int m_decryption_key;
uint8_t m_lscnblk = 0;
int m_extra_video_bank_bit = 0;
int m_question_address = 0;
int m_decryption_key = 0;
optional_shared_ptr<uint8_t> m_backup_ram;
required_device<cpu_device> m_maincpu;
required_device_array<i8255_device, 2> m_ppi;

View File

@ -70,8 +70,8 @@ private:
void output_w(uint8_t data);
TIMER_DEVICE_CALLBACK_MEMBER(scanline);
uint8_t m_fg_tilebank;
bool m_rowscroll_enable;
uint8_t m_fg_tilebank = 0;
bool m_rowscroll_enable = false;
void decrypted_opcodes_map(address_map &map);
void metlfrzr_map(address_map &map);
};

View File

@ -62,8 +62,8 @@ private:
output_finder<16> m_lamps;
uint8_t m_status;
uint8_t m_common;
uint8_t m_status = 0;
uint8_t m_common = 0;
void drive_w(uint8_t data);
void video5_flip_w(uint8_t data);

View File

@ -79,7 +79,7 @@ private:
DECLARE_WRITE_LINE_MEMBER(kansas_r);
DECLARE_WRITE_LINE_MEMBER(kansas_w);
u8 m_cass_data[5]{};
bool m_cassoutbit, m_cassbit, m_cassold;
bool m_cassoutbit = false, m_cassbit = false, m_cassold = false;
required_device<cpu_device> m_maincpu;
required_device<cassette_image_device> m_cass;
required_device<i8251_device> m_uart;

View File

@ -239,7 +239,7 @@ public:
void mgames(machine_config &config);
private:
tilemap_t *m_tilemap;
tilemap_t *m_tilemap = nullptr;
uint8_t mixport_r();
void outport0_w(uint8_t data);
@ -259,9 +259,9 @@ private:
virtual void machine_start() override;
uint8_t m_output[8];
uint8_t m_output[8]{};
required_shared_ptr<uint8_t> m_video;
int m_mixdata;
int m_mixdata = 0;
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<palette_device> m_palette;

View File

@ -104,31 +104,31 @@ private:
uint8_t m_anar;
uint8_t m_pl;
uint8_t m_pc;
uint8_t m_pr;
uint8_t m_luz_250_rul;
uint8_t m_luz_100_rul;
uint8_t m_luz_50_rlul;
uint8_t m_luz_25_lrul;
uint8_t m_luz_25_rrul;
uint8_t m_fl;
uint8_t m_fc;
uint8_t m_fr;
uint8_t m_insert_coin;
uint8_t m_no_cambio;
uint8_t m_fuse;
uint8_t m_falta;
uint8_t m_anag;
uint8_t m_cl;
uint8_t m_cc;
uint8_t m_cr;
uint8_t m_premio_s;
uint8_t m_100;
uint8_t m_200;
uint8_t m_300;
uint8_t m_500;
uint8_t m_ml;
uint8_t m_mc;
uint8_t m_mr;
uint8_t m_pr = 0;
uint8_t m_luz_250_rul = 0;
uint8_t m_luz_100_rul = 0;
uint8_t m_luz_50_rlul = 0;
uint8_t m_luz_25_lrul = 0;
uint8_t m_luz_25_rrul = 0;
uint8_t m_fl = 0;
uint8_t m_fc = 0;
uint8_t m_fr = 0;
uint8_t m_insert_coin = 0;
uint8_t m_no_cambio = 0;
uint8_t m_fuse = 0;
uint8_t m_falta = 0;
uint8_t m_anag = 0;
uint8_t m_cl = 0;
uint8_t m_cc = 0;
uint8_t m_cr = 0;
uint8_t m_premio_s = 0;
uint8_t m_100 = 0;
uint8_t m_200 = 0;
uint8_t m_300 = 0;
uint8_t m_500 = 0;
uint8_t m_ml = 0;
uint8_t m_mc = 0;
uint8_t m_mr = 0;
uint8_t start_read();

View File

@ -65,14 +65,14 @@ private:
required_shared_ptr<uint8_t> m_video_ram;
/* video-related */
tilemap_t* m_bg_tilemap;
tilemap_t* m_bg_tilemap = nullptr;
/* misc */
uint8_t m_prev;
uint8_t m_mask;
uint8_t m_prev = 0;
uint8_t m_mask = 0;
attotime m_time_pushed;
attotime m_time_released;
emu_timer *m_interrupt_timer;
emu_timer *m_interrupt_timer = nullptr;
};

View File

@ -115,8 +115,8 @@ private:
void update_firewire_irq();
uint32_t m_disk_asic[0x10];
int m_fw_int_enable;
int m_fw_int;
int m_fw_int_enable = 0;
int m_fw_int = 0;
required_device<zeus2_device> m_zeus;
required_device<tsb12lv01a_device> m_fw_link;

View File

@ -40,7 +40,7 @@ private:
void io_map(address_map &map);
void mem_map(address_map &map);
uint8_t m_mikrosha_font_page;
uint8_t m_mikrosha_font_page = 0;
};
void mikrosha_state::machine_reset()

View File

@ -157,14 +157,14 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
output_finder<7> m_lamps;
tilemap_t *m_sc0_tilemap;
tilemap_t *m_sc1_tilemap;
tilemap_t *m_sc2_tilemap;
tilemap_t *m_sc3_tilemap;
uint16_t m_vblank;
uint16_t m_hblank;
uint8_t m_mcucomm;
uint8_t m_mcudata;
tilemap_t *m_sc0_tilemap = nullptr;
tilemap_t *m_sc1_tilemap = nullptr;
tilemap_t *m_sc2_tilemap = nullptr;
tilemap_t *m_sc3_tilemap = nullptr;
uint16_t m_vblank = 0;
uint16_t m_hblank = 0;
uint8_t m_mcucomm = 0;
uint8_t m_mcudata = 0;
uint16_t hvretrace_r();
uint16_t unk_r();

View File

@ -56,8 +56,8 @@ private:
required_device<milton_filter_device> m_filter;
required_ioport_array<5> m_inputs;
u8 m_data;
u8 m_control;
u8 m_data = 0;
u8 m_control = 0xff;
void data_w(u8 data);
u8 data_r();
@ -93,7 +93,7 @@ protected:
virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
private:
sound_stream *m_stream;
sound_stream *m_stream = nullptr;
output_finder<> m_led_out;
};

View File

@ -170,7 +170,7 @@ protected:
virtual void device_reset() override;
private:
u8 m_p1, m_p2;
u8 m_p1 = 0, m_p2 = 0;
required_device<i8042_device> m_soundcpu;
required_device<dac_byte_interface> m_dac;

View File

@ -65,9 +65,9 @@ private:
uint8_t i87c52_p1_r();
uint8_t i87c52_p2_r();
uint8_t m_p[4];
uint16_t m_display_data;
int m_digit_index;
uint8_t m_p[4]{};
uint16_t m_display_data = 0;
int m_digit_index = 0;
virtual void machine_start() override;
virtual void machine_reset() override;
required_device<i87c52_device> m_maincpu;

View File

@ -63,11 +63,11 @@ private:
void miniframe_mem(address_map &map);
void ramrombank_map(address_map &map);
uint16_t *m_ramptr;
uint32_t m_ramsize;
uint16_t m_diskdmasize;
uint32_t m_diskdmaptr;
bool m_fdc_intrq;
uint16_t *m_ramptr = nullptr;
uint32_t m_ramsize = 0;
uint16_t m_diskdmasize = 0;
uint32_t m_diskdmaptr = 0;
bool m_fdc_intrq = false;
};

View File

@ -151,15 +151,15 @@ private:
required_ioport_array<16> m_io_kbd;
virtual void machine_start() override;
uint8_t port1, port3;
uint8_t port1 = 0, port3 = 0;
int keyboard_para_ser;
uint8_t keyboard_x_row_reg;
int keyboard_para_ser = 0;
uint8_t keyboard_x_row_reg = 0;
uint8_t last_ctrl_reg;
uint8_t last_ctrl_reg = 0;
int lineconnected;
int tonedetect;
int lineconnected = 0;
int tonedetect = 0;
};
void minitel_state::machine_start()

View File

@ -341,9 +341,9 @@ private:
optional_shared_ptr<u32> m_vram;
// machine state
u16 m_mmu[32];
u16 m_mmu[32]{};
u8 m_iop_interface;
u8 m_iop_interface = 0;
};
class rx3230_state : public driver_device
@ -439,9 +439,9 @@ private:
GFX_COLOR_RSV = 0xce, // reserved
};
u8 m_int_reg;
int m_int0_state;
int m_int1_state;
u8 m_int_reg = 0;
int m_int0_state = 0;
int m_int1_state = 0;
};
void rx2030_state::machine_start()

View File

@ -73,7 +73,7 @@ public:
private:
/* misc */
uint8_t m_mux_data;
uint8_t m_mux_data = 0;
/* devices */
required_device<m68000_device> m_maincpu;

View File

@ -145,10 +145,10 @@ private:
required_shared_ptr<uint8_t> m_spriteram;
required_shared_ptr<uint8_t> m_colorram;
uint8_t m_nAyCtrl;
uint8_t m_nmi_mask;
uint8_t m_flipscreen_x;
uint8_t m_flipscreen_y;
uint8_t m_nAyCtrl = 0;
uint8_t m_nmi_mask = 0;
uint8_t m_flipscreen_x = 0;
uint8_t m_flipscreen_y = 0;
void audio_w(offs_t offset, uint8_t data);
DECLARE_WRITE_LINE_MEMBER(nmi_mask_w);

View File

@ -80,8 +80,8 @@ private:
uint8_t m_pal[0x200];
uint32_t m_vram0[0x20000 / 4];
uint32_t m_vram1[0x20000 / 4];
uint8_t m_control;
uint8_t m_mux;
uint8_t m_control = 0;
uint8_t m_mux = 0;
uint8_t palette_low_r(offs_t offset);
uint8_t palette_high_r(offs_t offset);

View File

@ -108,17 +108,17 @@ private:
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
// crtc
u8 m_crtc[64], m_cursor_start_ras;
u16 m_disp_start_addr, m_cursor_addr;
int m_register_address_latch, m_font_upload;
bool m_graphics_mode;
u8 m_crtc[64]{}, m_cursor_start_ras = 0;
u16 m_disp_start_addr = 0, m_cursor_addr = 0;
int m_register_address_latch = 0, m_font_upload = 0;
bool m_graphics_mode = false;
// from pt68k4.cpp
bool m_kclk;
uint8_t m_kdata;
uint8_t m_scancode;
uint8_t m_kbdflag;
int m_kbit;
bool m_kclk = false;
uint8_t m_kdata = 0;
uint8_t m_scancode = 0;
uint8_t m_kbdflag = 0;
int m_kbit = 0;
};

View File

@ -39,7 +39,7 @@ private:
required_device<z80_device> m_maincpu;
required_device<z80ctc_device> m_ctc;
required_ioport_array<8> m_inputs;
u8 m_strobe;
u8 m_strobe = 0;
};

View File

@ -36,7 +36,7 @@ private:
required_shared_ptr<uint8_t> m_tileram;
required_device<gfxdecode_device> m_gfxdecode;
tilemap_t *m_tilemap;
tilemap_t *m_tilemap = nullptr;
void mogura_tileram_w(offs_t offset, uint8_t data);
void mogura_dac_w(uint8_t data);
void mogura_gfxram_w(offs_t offset, uint8_t data);

View File

@ -74,8 +74,8 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
/* video-related */
tilemap_t *m_bg_tilemap;
int m_tile_bank;
tilemap_t *m_bg_tilemap = nullptr;
int m_tile_bank = 0;
/* memory */
uint16_t m_tileram[0x400];

View File

@ -79,8 +79,8 @@ private:
// devices
required_device<cpu_device> m_filecpu;
uint8_t *m_file_rom;
uint8_t *m_app_rom;
uint8_t *m_file_rom = nullptr;
uint8_t *m_app_rom = nullptr;
std::unique_ptr<uint8_t[]> m_file_ram;
std::unique_ptr<uint8_t[]> m_app_ram;
@ -99,8 +99,8 @@ private:
uint8_t sio_r(offs_t offset);
void sio_w(offs_t offset, uint8_t data);
uint8_t app_ram_enable;
uint8_t file_ram_enable;
uint8_t app_ram_enable = 0;
uint8_t file_ram_enable = 0;
void molecula_palette(palette_device &palette) const;

View File

@ -464,7 +464,7 @@ private:
required_shared_ptr<uint8_t> m_videoram;
required_shared_ptr<uint8_t> m_colorram;
void mpu12wbk_palette(palette_device &palette) const;
tilemap_t *m_bg_tilemap;
tilemap_t *m_bg_tilemap = nullptr;
required_device<cpu_device> m_maincpu;
required_device<gfxdecode_device> m_gfxdecode;
required_device<ticket_dispenser_device> m_hopper;

View File

@ -239,35 +239,35 @@ private:
virtual void machine_reset() override;
void mpu3_basemap(address_map &map);
int m_triac_ic3;
int m_triac_ic4;
int m_triac_ic5;
int m_ic3_data;
int m_IC11G1;
int m_IC11G2A;
int m_IC11G2B;
int m_IC11GC;
int m_IC11GB;
int m_IC11GA;
int m_triac_ic3 = 0;
int m_triac_ic4 = 0;
int m_triac_ic5 = 0;
int m_ic3_data = 0;
int m_IC11G1 = 0;
int m_IC11G2A = 0;
int m_IC11G2B = 0;
int m_IC11GC = 0;
int m_IC11GB = 0;
int m_IC11GA = 0;
int m_ic10_output;
int m_ic11_active;
int m_disp_func;
int m_ic10_output = 0;
int m_ic11_active = 0;
int m_disp_func = 0;
int m_ic4_input_a;
int m_aux1_input;
int m_aux2_input;
int m_input_strobe; /* IC11 74LS138 A = CA2 IC3, B = CA2 IC4, C = CA2 IC5 */
uint8_t m_lamp_strobe;
uint8_t m_led_strobe;
int m_signal_50hz;
int m_ic4_input_a = 0;
int m_aux1_input = 0;
int m_aux2_input = 0;
int m_input_strobe = 0; /* IC11 74LS138 A = CA2 IC3, B = CA2 IC4, C = CA2 IC5 */
uint8_t m_lamp_strobe = 0;
uint8_t m_led_strobe = 0;
int m_signal_50hz = 0;
const mpu3_chr_table* m_current_chr_table;
int m_prot_col;
const mpu3_chr_table* m_current_chr_table = nullptr;
int m_prot_col = 0;
int m_optic_pattern;
int m_optic_pattern = 0;
emu_timer *m_ic21_timer;
emu_timer *m_ic21_timer = nullptr;
required_device<cpu_device> m_maincpu;
required_shared_ptr<uint8_t> m_nvram;

View File

@ -45,7 +45,7 @@ private:
required_device<gfxdecode_device> m_gfxdecode;
void dealem_memmap(address_map &map);
TILE_GET_INFO_MEMBER(tile_info);
tilemap_t *m_tilemap;
tilemap_t *m_tilemap = nullptr;
};

View File

@ -134,12 +134,12 @@ private:
output_finder<> m_led16;
output_finder<> m_led17;
uint8_t *m_video_ram;
uint8_t m_sysrega, m_sysregc;
uint16_t m_bankreg, m_haltreg;
uint16_t m_irqs;
int m_blink;
floppy_image_device *m_floppy;
uint8_t *m_video_ram = nullptr;
uint8_t m_sysrega = 0, m_sysregc = 0;
uint16_t m_bankreg = 0, m_haltreg = 0;
uint16_t m_irqs = 0;
int m_blink = 0;
floppy_image_device *m_floppy = nullptr;
};
void ms0515_state::ms0515_mem(address_map &map)

View File

@ -104,7 +104,7 @@ private:
void crtc_w(offs_t offset, u8 data);
u8 misc_status_r();
u16 m_dmaaddr;
u16 m_dmaaddr = 0;
void kbd_uart_clock_w(u8 data);

View File

@ -68,10 +68,10 @@ private:
uint8_t m_bank1[2];
uint8_t m_bank2[2];
std::unique_ptr<uint8_t[]> m_vram;
uint8_t m_screen_column;
uint8_t m_port2;
uint8_t m_irq;
uint16_t m_kb_matrix;
uint8_t m_screen_column = 0;
uint8_t m_port2 = 0;
uint8_t m_irq = 0;
uint16_t m_kb_matrix = 0;
uint8_t modem_r();
void modem_w(uint8_t data);

View File

@ -75,20 +75,20 @@ private:
void io_map(address_map &map);
void mem_map(address_map &map);
uint8_t *m_p_vram;
uint8_t *m_p_wram;
uint8_t *m_p_kanji;
uint8_t m_mcu_init;
uint8_t m_keyb_press;
uint8_t m_keyb_press_flag;
uint8_t m_shift_press_flag;
uint8_t m_display_reg;
uint8_t m_vram_bank;
uint8_t m_pen_clut[8];
uint8_t m_bw_mode;
uint16_t m_knj_addr;
u8 m_cass_data[4];
bool m_cassbit, m_cassold;
uint8_t *m_p_vram = nullptr;
uint8_t *m_p_wram = nullptr;
uint8_t *m_p_kanji = nullptr;
uint8_t m_mcu_init = 0;
uint8_t m_keyb_press = 0;
uint8_t m_keyb_press_flag = 0;
uint8_t m_shift_press_flag = 0;
uint8_t m_display_reg = 0;
uint8_t m_vram_bank = 0;
uint8_t m_pen_clut[8]{};
uint8_t m_bw_mode = 0;
uint16_t m_knj_addr = 0;
u8 m_cass_data[4]{};
bool m_cassbit = 0, m_cassold = 0;
virtual void machine_start() override;
virtual void machine_reset() override;
virtual void video_start() override;

View File

@ -225,14 +225,14 @@ private:
required_device<scc85c30_device> m_sccterm2;
// Pointer to System ROMs needed by bootvect_r and masking RAM buffer for post reset accesses
uint32_t *m_sysrom;
uint32_t m_sysram[2];
uint32_t *m_sysrom = nullptr;
uint32_t m_sysram[2]{};
// PCC registers
uint8_t m_genpurp_stat;
uint8_t m_genpurp_stat = 0;
// VME chip registers
uint8_t m_vc_cntl_conf;
uint8_t m_vc_cntl_conf = 0;
};
void mvme147_state::mvme147_mem(address_map &map)

View File

@ -217,14 +217,14 @@ private:
//required_device<scc85230_device> m_sccterm2;
// Pointer to System ROMs needed by bootvect_r and masking RAM buffer for post reset accesses
uint32_t *m_sysrom;
uint32_t m_sysram[2];
uint32_t *m_sysrom = nullptr;
uint32_t m_sysram[2]{};
// PCC registers
uint8_t m_genpurp_stat;
uint8_t m_genpurp_stat = 0;
// VME chip registers
uint8_t m_vc_cntl_conf;
uint8_t m_vc_cntl_conf = 0;
};
void mvme162_state::mvme162_mem(address_map &map)

View File

@ -1186,48 +1186,59 @@ ROM_END
} // anonymous namespace
GAME(1986, bbeltzac, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzaci, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzacg, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzacf, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, clown, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Clown", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlrider, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlrideri, dvlrider, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlriderg, dvlrider, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlriderf, dvlrider, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Devil Riders (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfalla, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfallai, farfalla, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfallag, farfalla, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastle, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastlei, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastleg, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastlef, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, mexico, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Mexico 86 (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, nstrphnx, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "New Star's Phoenix (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, nstrphnxf, nstrphnx, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "New Star's Phoenix (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// 1B1170 sound (IMDB), 1B1370 (schematics)
GAME(1982, socrking, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkinga, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (alternate set)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkingi, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkingg, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchamp, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pinball Champ", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchampg, pinchamp, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pinball Champ (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchampi, pinchamp, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pinball Champ (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchamp7, pinchamp, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Pinball Champ (7 digits)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchamp7g, pinchamp, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Pinball Champ (7 digits German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, pinchamp7i, pinchamp, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Pinball Champ (7 digits Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, poolcham, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pool Champion", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, poolchami, poolcham, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pool Champion (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// 1B11136 or 1B13136
GAME(1983, tmachzac, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, tmachzacg, tmachzac, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria, German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, tmachzacf, tmachzac, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria, French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfalla, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfallai, farfalla, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, farfallag, farfalla, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Farfalla (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlrider, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlrideri, dvlrider, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlriderg, dvlrider, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Devil Riders (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, dvlriderf, dvlrider, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Devil Riders (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastle, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastlei, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastleg, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1984, mcastlef, mcastle, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Magic Castle (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, robot, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Robot (Zaccaria)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, roboti, robot, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Robot (Zaccaria, Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, robotg, robot, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Robot (Zaccaria, German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, robotf, robot, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Robot (Zaccaria, French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, scram_tp, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Tecnoplay", "Scramble (Pinball)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrking, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkinga, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (alternate set)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkingi, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1982, socrkingg, socrking, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Soccer Kings (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// 1B11178
GAME(1985, clown, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Clown", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, poolcham, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pool Champion", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1985, poolchami, poolcham, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Pool Champion (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzac, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzaci, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzacg, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, bbeltzacf, bbeltzac, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Black Belt (Zaccaria, French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, mexico, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Mexico 86 (German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, zankor, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Zankor (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, spookyp, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Spooky", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, spookyi, spookyp, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Spooky (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, strsphnx, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Star's Phoenix (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, strsphnxf, strsphnx, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Star's Phoenix (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// 1B11183
GAME(1987, nstrphnx, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "New Star's Phoenix (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1987, nstrphnxf, nstrphnx, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "New Star's Phoenix (French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// unknown
GAME(1987, thndrman, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Apple Time", "Thunder Man", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, tmachzac, 0, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, tmachzacg, tmachzac, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria, German speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1983, tmachzacf, tmachzac, zac_2, zac_2, zac_2_state, init_1, ROT0, "Zaccaria", "Time Machine (Zaccaria, French speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
GAME(1986, zankor, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Zaccaria", "Zankor (Italian speech)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )
// Technoplay sound card
GAME(1987, scram_tp, 0, zac_2, zac_2, zac_2_state, empty_init, ROT0, "Tecnoplay", "Scramble (Pinball)", MACHINE_IS_SKELETON_MECHANICAL | MACHINE_SUPPORTS_SAVE )