mirror of
https://github.com/holub/mame
synced 2025-04-21 16:01:56 +03:00
init vars for coverity (drivers/s)
This commit is contained in:
parent
8baee7398d
commit
ba10d669b0
@ -97,7 +97,7 @@ protected:
|
||||
u8 m_t_c = 0;
|
||||
u8 m_strobe = 0;
|
||||
u8 m_row = 0;
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0;
|
||||
u8 m_game = 0;
|
||||
bool m_disco = false;
|
||||
|
@ -89,9 +89,9 @@ private:
|
||||
u8 switch_r();
|
||||
u8 m_strobe = 0;
|
||||
u8 m_row = 0;
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0;
|
||||
bool m_irq_in_progress = 0;
|
||||
bool m_irq_in_progress = false;
|
||||
DECLARE_WRITE_LINE_MEMBER(pia22_ca2_w) { m_io_outputs[20] = state; } //ST5
|
||||
DECLARE_WRITE_LINE_MEMBER(pia22_cb2_w) { } //ST-solenoids enable
|
||||
DECLARE_WRITE_LINE_MEMBER(pia24_ca2_w) { m_io_outputs[17] = state; } //ST2
|
||||
|
@ -121,9 +121,9 @@ private:
|
||||
|
||||
u8 m_strobe = 0;
|
||||
u8 m_row = 0;
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0;
|
||||
emu_timer* m_irq_timer = 0;
|
||||
emu_timer* m_irq_timer = nullptr;
|
||||
static const device_timer_id TIMER_IRQ = 0;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<williams_s6_sound_device> m_s6sound;
|
||||
|
@ -153,11 +153,11 @@ private:
|
||||
u8 m_row = 0U;
|
||||
u8 m_comma = 0U;
|
||||
u8 m_nvram[0x100]{};
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0U;
|
||||
bool m_memprotect = 0;
|
||||
bool m_memprotect = false;
|
||||
u8 m_game = 0U;
|
||||
emu_timer* m_irq_timer = 0;
|
||||
emu_timer* m_irq_timer = nullptr;
|
||||
static const device_timer_id TIMER_IRQ = 0;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<williams_s6_sound_device> m_s6sound;
|
||||
|
@ -125,9 +125,9 @@ private:
|
||||
u8 m_sound_data = 0U;
|
||||
u8 m_strobe = 0U;
|
||||
u8 m_row = 0U;
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0U;
|
||||
emu_timer* m_irq_timer = 0;
|
||||
emu_timer* m_irq_timer = nullptr;
|
||||
static const device_timer_id TIMER_IRQ = 0;
|
||||
required_device<m6802_cpu_device> m_maincpu;
|
||||
required_device<cpu_device> m_audiocpu;
|
||||
|
@ -89,9 +89,9 @@ private:
|
||||
|
||||
u8 m_strobe = 0;
|
||||
u8 m_row = 0;
|
||||
bool m_data_ok = 0;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0;
|
||||
emu_timer* m_irq_timer = 0;
|
||||
emu_timer* m_irq_timer = nullptr;
|
||||
static const device_timer_id TIMER_IRQ = 0;
|
||||
required_device<m6802_cpu_device> m_maincpu;
|
||||
required_device<williams_s9_sound_device> m_s9sound;
|
||||
|
@ -104,12 +104,12 @@ private:
|
||||
|
||||
u8 m_strobe = 0U;
|
||||
u8 m_row = 0U;
|
||||
bool m_game = 0;
|
||||
bool m_comma12 = 0;
|
||||
bool m_comma34 = 0;
|
||||
bool m_data_ok = 0;
|
||||
bool m_game = false;
|
||||
bool m_comma12 = false;
|
||||
bool m_comma34 = false;
|
||||
bool m_data_ok = false;
|
||||
u8 m_lamp_data = 0U;
|
||||
emu_timer* m_irq_timer = 0;
|
||||
emu_timer* m_irq_timer = nullptr;
|
||||
static const device_timer_id TIMER_IRQ = 0;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<williams_s9_sound_device> m_s9sound;
|
||||
|
@ -80,11 +80,11 @@ private:
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_ram_1;
|
||||
std::unique_ptr<uint8_t[]> m_ram_2;
|
||||
uint8_t m_ram_bank;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
uint8_t m_port_last;
|
||||
uint8_t m_port_last2;
|
||||
uint8_t m_ram_bank = 0;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
uint8_t m_port_last = 0;
|
||||
uint8_t m_port_last2 = 0;
|
||||
|
||||
void ram_w(offs_t offset, uint8_t data);
|
||||
uint8_t ram_r(offs_t offset);
|
||||
|
@ -126,7 +126,7 @@ private:
|
||||
u8 m_lcd_rowsel = 0;
|
||||
u8 m_cb_mux = 0;
|
||||
|
||||
emu_timer *m_irqtimer;
|
||||
emu_timer *m_irqtimer = nullptr;
|
||||
TIMER_CALLBACK_MEMBER(interrupt);
|
||||
void write_lcd(int state);
|
||||
};
|
||||
|
@ -98,9 +98,9 @@ protected:
|
||||
void pzlestar_io_map(address_map &map);
|
||||
|
||||
private:
|
||||
uint8_t m_pzlestar_mem_bank;
|
||||
uint8_t m_pzlestar_rom_bank;
|
||||
uint8_t m_sec_slot[4];
|
||||
uint8_t m_pzlestar_mem_bank = 0;
|
||||
uint8_t m_pzlestar_rom_bank = 0;
|
||||
uint8_t m_sec_slot[4]{};
|
||||
};
|
||||
|
||||
class sexyboom_state : public sangho_state
|
||||
|
@ -135,9 +135,9 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
output_finder<7> m_lamps;
|
||||
|
||||
uint8_t m_attrram[0x800];
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_banksel;
|
||||
uint8_t m_attrram[0x800]{};
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t m_banksel = 0;
|
||||
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
TILE_GET_INFO_MEMBER(get_tile_info);
|
||||
|
@ -94,8 +94,8 @@ private:
|
||||
required_device<s3_vga_device> m_vga;
|
||||
required_device<voodoo_2_device> m_voodoo;
|
||||
|
||||
int m_haspind;
|
||||
int m_haspstate;
|
||||
int m_haspind = 0;
|
||||
int m_haspstate = 0;
|
||||
enum hasp_states
|
||||
{
|
||||
HASPSTATE_NONE,
|
||||
@ -103,15 +103,15 @@ private:
|
||||
HASPSTATE_PASSEND,
|
||||
HASPSTATE_READ
|
||||
};
|
||||
int m_hasp_passind;
|
||||
uint8_t m_hasp_tmppass[0x29];
|
||||
uint8_t m_port379;
|
||||
int m_hasp_passmode;
|
||||
int m_hasp_prodind;
|
||||
int m_hasp_passind = 0;
|
||||
uint8_t m_hasp_tmppass[0x29]{};
|
||||
uint8_t m_port379 = 0;
|
||||
int m_hasp_passmode = 0;
|
||||
int m_hasp_prodind = 0;
|
||||
|
||||
uint8_t m_mtxc_config_reg[256];
|
||||
uint8_t m_piix4_config_reg[8][256];
|
||||
uint32_t m_pci_3dfx_regs[0x40];
|
||||
uint8_t m_mtxc_config_reg[256]{};
|
||||
uint8_t m_piix4_config_reg[8][256]{};
|
||||
uint32_t m_pci_3dfx_regs[0x40]{};
|
||||
|
||||
void bios_f0000_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
|
||||
void bios_e0000_ram_w(offs_t offset, uint32_t data, uint32_t mem_mask = ~0);
|
||||
|
@ -72,13 +72,13 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
||||
int m_bgmap;
|
||||
int m_system;
|
||||
tilemap_t *m_tilemap;
|
||||
int m_bgmap = 0;
|
||||
int m_system = 0;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
std::unique_ptr<bitmap_ind16> m_tmpbitmap;
|
||||
uint32_t m_color_prom_address;
|
||||
uint8_t m_pix_sh;
|
||||
uint8_t m_pix[2];
|
||||
uint32_t m_color_prom_address = 0;
|
||||
uint8_t m_pix_sh = 0;
|
||||
uint8_t m_pix[2]{};
|
||||
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
void pix_shift_w(uint8_t data);
|
||||
|
@ -89,12 +89,12 @@ private:
|
||||
void main_map(address_map &map);
|
||||
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
emu_timer *m_scanline_timer;
|
||||
emu_timer *m_pot_timer;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_sync2_value;
|
||||
uint8_t m_pot_mask[2];
|
||||
uint8_t m_pot_trigger[2];
|
||||
emu_timer *m_scanline_timer = nullptr;
|
||||
emu_timer *m_pot_timer = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t m_sync2_value = 0;
|
||||
uint8_t m_pot_mask[2]{};
|
||||
uint8_t m_pot_trigger[2]{};
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<f9334_device> m_outlatch;
|
||||
|
@ -103,15 +103,15 @@ private:
|
||||
uint32_t screen_update_schick(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
DECLARE_VIDEO_START(schick);
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
uint8_t m_charbank;
|
||||
uint8_t m_spritebank;
|
||||
uint8_t m_palettebank;
|
||||
uint8_t m_colortablebank;
|
||||
uint8_t m_flipscreen;
|
||||
uint8_t m_bgpriority;
|
||||
uint8_t m_inv_spr;
|
||||
uint8_t m_extrabank;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
uint8_t m_charbank = 0;
|
||||
uint8_t m_spritebank = 0;
|
||||
uint8_t m_palettebank = 0;
|
||||
uint8_t m_colortablebank = 0;
|
||||
uint8_t m_flipscreen = 0;
|
||||
uint8_t m_bgpriority = 0;
|
||||
uint8_t m_inv_spr = 0;
|
||||
uint8_t m_extrabank = 0;
|
||||
};
|
||||
|
||||
#define MASTER_CLOCK (18432000)
|
||||
|
@ -61,7 +61,7 @@ private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
||||
// Character generator
|
||||
const uint8_t *m_chargen;
|
||||
const uint8_t *m_chargen = nullptr;
|
||||
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
@ -111,18 +111,18 @@ private:
|
||||
/* memory pointers */
|
||||
std::unique_ptr<uint8_t[]> m_vram;
|
||||
|
||||
uint8_t m_videowritemask;
|
||||
uint8_t m_videowritemask2;
|
||||
uint8_t m_videowritemask = 0;
|
||||
uint8_t m_videowritemask2 = 0;
|
||||
|
||||
uint8_t m_sprite_xpos;
|
||||
uint8_t m_sprite_ypos;
|
||||
uint8_t m_sprite_colour;
|
||||
uint8_t m_sprite_tile;
|
||||
uint8_t m_starscroll;
|
||||
uint8_t m_p0e;
|
||||
uint8_t m_vidctrl;
|
||||
uint8_t m_sprite_xpos = 0;
|
||||
uint8_t m_sprite_ypos = 0;
|
||||
uint8_t m_sprite_colour = 0;
|
||||
uint8_t m_sprite_tile = 0;
|
||||
uint8_t m_starscroll = 0;
|
||||
uint8_t m_p0e = 0;
|
||||
uint8_t m_vidctrl = 0;
|
||||
|
||||
uint8_t m_hascollided;
|
||||
uint8_t m_hascollided = 0;
|
||||
|
||||
/* video-related */
|
||||
const uint8_t get_sprite_pixel(int x, int y);
|
||||
|
@ -81,9 +81,9 @@ private:
|
||||
required_region_ptr<uint8_t> m_proms;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint8_t sub_data;
|
||||
uint8_t main_data;
|
||||
uint8_t host_io_40;
|
||||
uint8_t sub_data = 0;
|
||||
uint8_t main_data = 0;
|
||||
uint8_t host_io_40 = 0;
|
||||
void main_io_map(address_map &map);
|
||||
void main_program_map(address_map &map);
|
||||
void sub_io_map(address_map &map);
|
||||
|
@ -67,10 +67,10 @@ private:
|
||||
required_region_ptr<u8> m_cycles;
|
||||
required_ioport_array<7> m_kb;
|
||||
|
||||
bool m_upiobf;
|
||||
u8 m_serial_control;
|
||||
u32 m_kdtime;
|
||||
bool m_display_clock;
|
||||
bool m_upiobf = false;
|
||||
u8 m_serial_control = 0;
|
||||
u32 m_kdtime = 0;
|
||||
bool m_display_clock = false;
|
||||
};
|
||||
|
||||
u8 sdk51_state::psen_r(offs_t offset)
|
||||
|
@ -101,7 +101,7 @@ private:
|
||||
output_finder<6> m_7segs;
|
||||
output_finder<> m_lamp;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
bitmap_ind16 m_collision_bg;
|
||||
|
||||
bool m_waveenable;
|
||||
|
@ -258,7 +258,7 @@ public:
|
||||
void init_pclubjv5();
|
||||
|
||||
private:
|
||||
int m_cam_data;
|
||||
int m_cam_data = 0;
|
||||
|
||||
uint16_t printer_r();
|
||||
void print_club_camera_w(uint16_t data);
|
||||
|
@ -87,9 +87,9 @@ private:
|
||||
output_finder<16> m_lamps;
|
||||
output_finder<3> m_towerlamps;
|
||||
|
||||
uint64_t m_coin_start_cycles;
|
||||
uint64_t m_hopper_start_cycles;
|
||||
uint8_t m_coin_counter;
|
||||
uint64_t m_coin_start_cycles = 0;
|
||||
uint64_t m_hopper_start_cycles = 0;
|
||||
uint8_t m_coin_counter = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
void init_astron();
|
||||
|
||||
private:
|
||||
uint8_t m_nmi_enable;
|
||||
uint8_t m_nmi_enable = 0;
|
||||
|
||||
required_device<pioneer_ldv1000_device> m_laserdisc;
|
||||
required_shared_ptr<uint8_t> m_obj_ram;
|
||||
@ -55,8 +55,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_color_ram;
|
||||
required_shared_ptr<uint8_t> m_fix_ram;
|
||||
|
||||
uint8_t m_ldv1000_input_latch;
|
||||
uint8_t m_ldv1000_output_latch;
|
||||
uint8_t m_ldv1000_input_latch = 0;
|
||||
uint8_t m_ldv1000_output_latch = 0;
|
||||
|
||||
uint8_t astron_DISC_read(offs_t offset);
|
||||
uint8_t astron_OUT_read(offs_t offset);
|
||||
|
@ -130,14 +130,14 @@ private:
|
||||
{
|
||||
struct Motor
|
||||
{
|
||||
uint8_t running;
|
||||
uint8_t direction;
|
||||
float position;
|
||||
float speed;
|
||||
uint8_t running = 0;
|
||||
uint8_t direction = 0;
|
||||
float position = 0;
|
||||
float speed = 0;
|
||||
} motor[4];
|
||||
} m_player[2];
|
||||
|
||||
uint8_t m_stepper;
|
||||
uint8_t m_stepper = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<sega_315_5296_device> m_io1;
|
||||
|
@ -123,7 +123,7 @@ private:
|
||||
virtual void machine_reset() override;
|
||||
virtual void video_start() override;
|
||||
|
||||
u16 m_input_select;
|
||||
u16 m_input_select = 0;
|
||||
|
||||
// optional_ioport_array<5> m_key;
|
||||
// optional_ioport m_special;
|
||||
|
@ -69,7 +69,7 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
tilemap_t *m_sc_layer[4];
|
||||
tilemap_t *m_sc_layer[4]{};
|
||||
|
||||
// screen updates
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
@ -94,7 +94,7 @@ private:
|
||||
virtual void video_start() override;
|
||||
|
||||
void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect);
|
||||
uint16_t m_layer_disable;
|
||||
uint16_t m_layer_disable = 0;
|
||||
};
|
||||
|
||||
TILE_GET_INFO_MEMBER(seicupbl_state::get_sc0_tileinfo)
|
||||
|
@ -99,15 +99,15 @@ private:
|
||||
required_shared_ptr<uint16_t> m_sc3_vram;
|
||||
required_shared_ptr<uint16_t> m_spriteram16;
|
||||
|
||||
tilemap_t *m_sc0_tilemap;
|
||||
tilemap_t *m_sc1_tilemap;
|
||||
tilemap_t *m_sc2_tilemap;
|
||||
tilemap_t *m_sc3_tilemap;
|
||||
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_mux_data;
|
||||
uint8_t m_hopper_io;
|
||||
uint16_t m_layer_en;
|
||||
uint16_t m_scrollram[6];
|
||||
uint16_t m_mux_data = 0;
|
||||
uint8_t m_hopper_io = 0;
|
||||
uint16_t m_layer_en = 0;
|
||||
uint16_t m_scrollram[6]{};
|
||||
|
||||
uint16_t mahjong_panel_r();
|
||||
void mahjong_panel_w(uint16_t data);
|
||||
|
@ -123,8 +123,8 @@ private:
|
||||
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
uint8_t m_nmi_enabled;
|
||||
int m_r;
|
||||
uint8_t m_nmi_enabled = 0;
|
||||
int m_r = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -93,8 +93,8 @@ private:
|
||||
required_device_array<sega8_cart_slot_device, 5> m_slots;
|
||||
output_finder<> m_led;
|
||||
|
||||
uint8_t m_control;
|
||||
uint8_t m_selected_cart;
|
||||
uint8_t m_control = 0;
|
||||
uint8_t m_selected_cart = 0;
|
||||
|
||||
uint8_t cart_select_r();
|
||||
void cart_select_w(uint8_t data);
|
||||
|
@ -53,7 +53,7 @@ private:
|
||||
required_device<ls259_device> m_keyplatch;
|
||||
required_ioport_array<4> m_keypad;
|
||||
|
||||
u8 m_gpib_data;
|
||||
u8 m_gpib_data = 0;
|
||||
};
|
||||
|
||||
void si5500_state::machine_start()
|
||||
|
@ -231,10 +231,10 @@ protected:
|
||||
|
||||
output_finder<4> m_leds;
|
||||
|
||||
uint8_t m_c0;
|
||||
uint8_t m_c4;
|
||||
uint8_t m_c6;
|
||||
uint8_t m_c8;
|
||||
uint8_t m_c0 = 0;
|
||||
uint8_t m_c4 = 0;
|
||||
uint8_t m_c6 = 0;
|
||||
uint8_t m_c8 = 0;
|
||||
};
|
||||
|
||||
|
||||
@ -271,9 +271,9 @@ private:
|
||||
void lufykzku_io_map(address_map &map);
|
||||
void lufykzku_mem_map(address_map &map);
|
||||
|
||||
uint8_t m_vblank_vector;
|
||||
uint8_t m_timer0_vector;
|
||||
uint8_t m_timer1_vector;
|
||||
uint8_t m_vblank_vector = 0;
|
||||
uint8_t m_timer0_vector = 0;
|
||||
uint8_t m_timer1_vector = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -67,10 +67,10 @@ private:
|
||||
required_shared_ptr<u16> m_spriteram;
|
||||
|
||||
/* video-related */
|
||||
tilemap_t *m_bg_layer;
|
||||
tilemap_t *m_fg_layer;
|
||||
int m_tilebank[4];
|
||||
int m_whichbank;
|
||||
tilemap_t *m_bg_layer = nullptr;
|
||||
tilemap_t *m_fg_layer = nullptr;
|
||||
int m_tilebank[4]{};
|
||||
int m_whichbank = 0;
|
||||
|
||||
void tilebank_w(u16 data);
|
||||
void tilebank1_w(u16 data);
|
||||
|
@ -58,11 +58,11 @@ private:
|
||||
required_device<hd44780_device> m_lcdc;
|
||||
optional_ioport_array<16> m_key_row;
|
||||
|
||||
u8 m_p1_data;
|
||||
u8 m_lcd_control;
|
||||
u16 m_key_scan;
|
||||
u16 m_shift_output;
|
||||
u8 m_row_counter;
|
||||
u8 m_p1_data = 0;
|
||||
u8 m_lcd_control = 0;
|
||||
u16 m_key_scan = 0;
|
||||
u16 m_shift_output = 0;
|
||||
u8 m_row_counter = 0;
|
||||
};
|
||||
|
||||
void sk101bl_state::machine_start()
|
||||
|
@ -45,10 +45,10 @@ public:
|
||||
private:
|
||||
required_device<tlc34076_device> m_tlc34076;
|
||||
required_shared_ptr<uint16_t> m_tms_vram;
|
||||
uint8_t m_porta_latch;
|
||||
uint8_t m_ay_sel;
|
||||
uint8_t m_lastdataw;
|
||||
uint16_t m_lastdatar;
|
||||
uint8_t m_porta_latch = 0;
|
||||
uint8_t m_ay_sel = 0;
|
||||
uint8_t m_lastdataw = 0;
|
||||
uint16_t m_lastdatar = 0;
|
||||
uint16_t ramdac_r(offs_t offset);
|
||||
void ramdac_w(offs_t offset, uint16_t data);
|
||||
void tms_w(offs_t offset, uint8_t data);
|
||||
|
@ -64,8 +64,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_spriteram;
|
||||
required_shared_ptr<uint8_t> m_scrollram;
|
||||
|
||||
tilemap_t* m_tilemap;
|
||||
int m_nmi;
|
||||
tilemap_t* m_tilemap = nullptr;
|
||||
int m_nmi = 0;
|
||||
|
||||
DECLARE_WRITE_LINE_MEMBER(flip_screen_x_w);
|
||||
DECLARE_WRITE_LINE_MEMBER(flip_screen_y_w);
|
||||
|
@ -201,15 +201,15 @@ private:
|
||||
void ramdac2_map(address_map &map);
|
||||
void ramdac_map(address_map &map);
|
||||
|
||||
tilemap_t *m_tmap;
|
||||
tilemap_t *m_tmap = nullptr;
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_shared_ptr<uint8_t> m_colorram;
|
||||
required_shared_ptr_array<uint8_t, 4> m_reeltiles_ram;
|
||||
required_shared_ptr_array<uint8_t, 4> m_reeltileshigh_ram;
|
||||
tilemap_t *m_reel_tilemap[4];
|
||||
tilemap_t *m_reel_tilemap[4]{};
|
||||
required_shared_ptr_array<uint8_t, 4> m_reelscroll;
|
||||
uint8_t m_nmi_enable;
|
||||
bool m_mbutrfly_prot;
|
||||
uint8_t m_nmi_enable = 0;
|
||||
bool m_mbutrfly_prot = false;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
@ -105,16 +105,16 @@ protected:
|
||||
virtual void device_post_load() override;
|
||||
|
||||
private:
|
||||
uint16_t m_io_offset;
|
||||
uint16_t m_io_reg[IO_SIZE];
|
||||
uint16_t m_fifo[FIFO_SIZE];
|
||||
uint16_t m_fptr;
|
||||
uint16_t m_io_offset = 0;
|
||||
uint16_t m_io_reg[IO_SIZE]{};
|
||||
uint16_t m_fifo[FIFO_SIZE]{};
|
||||
uint16_t m_fptr = 0;
|
||||
|
||||
uint16_t m_jpeg1;
|
||||
uint16_t m_jpeg2;
|
||||
int m_jpeg_x;
|
||||
int m_jpeg_y;
|
||||
int m_tmp_counter;
|
||||
uint16_t m_jpeg1 = 0;
|
||||
uint16_t m_jpeg2 = 0;
|
||||
int m_jpeg_x = 0;
|
||||
int m_jpeg_y = 0;
|
||||
int m_tmp_counter = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<i8051_device> m_audiocpu;
|
||||
|
@ -90,10 +90,10 @@ private:
|
||||
|
||||
struct
|
||||
{
|
||||
uint8_t control;
|
||||
uint16_t ptr;
|
||||
int stride;
|
||||
bool reverse;
|
||||
uint8_t control = 0;
|
||||
uint16_t ptr = 0;
|
||||
int stride = 0;
|
||||
bool reverse = false;
|
||||
} m_video;
|
||||
|
||||
virtual void machine_reset() override;
|
||||
|
@ -127,30 +127,30 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint8_t *m_ipl_rom;
|
||||
uint8_t *m_ipl_rom = nullptr;
|
||||
std::unique_ptr<uint8_t[]> m_work_ram;
|
||||
std::unique_ptr<uint8_t[]> m_vram;
|
||||
std::unique_ptr<uint8_t[]> m_attr;
|
||||
std::unique_ptr<uint8_t[]> m_gvram;
|
||||
std::unique_ptr<uint8_t[]> m_pcg;
|
||||
|
||||
uint8_t m_keyb_press;
|
||||
uint8_t m_keyb_press_flag;
|
||||
uint8_t m_shift_press_flag;
|
||||
uint8_t m_backdrop_pen;
|
||||
uint8_t m_display_reg;
|
||||
uint8_t m_fdc_irq_flag;
|
||||
uint8_t m_fdc_drq_flag;
|
||||
uint8_t m_system_data;
|
||||
struct { uint8_t r,g,b; } m_pal;
|
||||
uint8_t m_raminh,m_raminh_pending_change; //bankswitch
|
||||
uint8_t m_raminh_prefetch;
|
||||
uint8_t m_pal_mode;
|
||||
uint8_t m_keyb_cmd;
|
||||
uint8_t m_crtc_vreg[0x20];
|
||||
uint8_t m_crtc_addr;
|
||||
bool m_vsync_idf;
|
||||
bool m_vsync_ief;
|
||||
uint8_t m_keyb_press = 0;
|
||||
uint8_t m_keyb_press_flag = 0;
|
||||
uint8_t m_shift_press_flag = 0;
|
||||
uint8_t m_backdrop_pen = 0;
|
||||
uint8_t m_display_reg = 0;
|
||||
uint8_t m_fdc_irq_flag = 0;
|
||||
uint8_t m_fdc_drq_flag = 0;
|
||||
uint8_t m_system_data = 0;
|
||||
struct { uint8_t r = 0, g = 0, b = 0; } m_pal;
|
||||
uint8_t m_raminh,m_raminh_pending_change = 0; //bankswitch
|
||||
uint8_t m_raminh_prefetch = 0;
|
||||
uint8_t m_pal_mode = 0;
|
||||
uint8_t m_keyb_cmd = 0;
|
||||
uint8_t m_crtc_vreg[0x20]{};
|
||||
uint8_t m_crtc_addr = 0;
|
||||
bool m_vsync_idf = false;
|
||||
bool m_vsync_ief = false;
|
||||
};
|
||||
|
||||
|
||||
|
@ -167,8 +167,8 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoreg;
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
void cpu_io_videoreg_w(offs_t offset, uint8_t data);
|
||||
|
@ -259,10 +259,10 @@ private:
|
||||
virtual void machine_reset() override;
|
||||
virtual void video_start() override;
|
||||
|
||||
uint8_t m_communication_port[4];
|
||||
uint8_t m_communication_port_status;
|
||||
uint8_t m_communication_port[4]{};
|
||||
uint8_t m_communication_port_status = 0;
|
||||
bitmap_ind16 m_bitmap;
|
||||
uint8_t m_vid_regs[7];
|
||||
uint8_t m_vid_regs[7]{};
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<screen_device> m_screen;
|
||||
output_finder<10> m_lamps;
|
||||
|
@ -101,7 +101,7 @@ private:
|
||||
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
int m_type;
|
||||
int m_type = 0;
|
||||
required_device<snes_control_port_device> m_ctrl1;
|
||||
required_device<snes_control_port_device> m_ctrl2;
|
||||
optional_device<sns_cart_slot_device> m_cartslot;
|
||||
|
@ -191,7 +191,7 @@ public:
|
||||
|
||||
private:
|
||||
optional_shared_ptr_array<int8_t, 2> m_shared_ram;
|
||||
uint8_t m_cnt;
|
||||
uint8_t m_cnt = 0;
|
||||
uint8_t prot_cnt_r();
|
||||
uint8_t sb2b_6a6xxx_r(offs_t offset);
|
||||
uint8_t sb2b_7xxx_r(offs_t offset);
|
||||
|
@ -104,7 +104,7 @@ private:
|
||||
void ram_w(uint8_t data);
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_ram;
|
||||
uint16_t m_ram_address;
|
||||
uint16_t m_ram_address = 0;
|
||||
};
|
||||
|
||||
void snesb51_state::snes_map(address_map &map)
|
||||
|
@ -77,7 +77,7 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<generic_latch_8_device> m_soundlatch;
|
||||
|
||||
tilemap_t* m_bg_tilemap;
|
||||
tilemap_t* m_bg_tilemap = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
@ -131,9 +131,9 @@ private:
|
||||
void gpio_out_w(offs_t offset, uint32_t data, uint32_t mem_mask);
|
||||
void timers_clk_sel_w(offs_t offset, uint32_t data, uint32_t mem_mask);
|
||||
|
||||
uint16_t m_tve_control;
|
||||
uint8_t m_tve_fade_offset;
|
||||
uint16_t m_gpio_out;
|
||||
uint16_t m_tve_control = 0;
|
||||
uint8_t m_tve_fade_offset = 0;
|
||||
uint16_t m_gpio_out = 0;
|
||||
};
|
||||
|
||||
class spg29x_nand_game_state : public spg29x_game_state
|
||||
@ -152,7 +152,7 @@ protected:
|
||||
|
||||
private:
|
||||
std::vector<uint8_t> m_strippedrom;
|
||||
int m_firstvector;
|
||||
int m_firstvector = 0;
|
||||
};
|
||||
|
||||
class spg29x_zone3d_game_state : public spg29x_game_state
|
||||
|
@ -41,8 +41,8 @@ protected:
|
||||
required_device<generic_slot_device> m_cart;
|
||||
memory_region *m_cart_region;
|
||||
|
||||
uint16_t m_inlatch_a;
|
||||
uint16_t m_inlatch_c;
|
||||
uint16_t m_inlatch_a = 0;
|
||||
uint16_t m_inlatch_c = 0;
|
||||
optional_ioport_array<6> m_porta_in;
|
||||
optional_ioport_array<6> m_portc_in;
|
||||
|
||||
|
@ -25,8 +25,8 @@ private:
|
||||
void portc_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0) override;
|
||||
DECLARE_WRITE_LINE_MEMBER(spi_w);
|
||||
|
||||
uint8_t m_spi_bit;
|
||||
uint8_t m_spi_val;
|
||||
uint8_t m_spi_bit = 0;
|
||||
uint8_t m_spi_val = 0;
|
||||
};
|
||||
|
||||
static INPUT_PORTS_START( tvtouch )
|
||||
|
@ -29,11 +29,11 @@ protected:
|
||||
|
||||
virtual void porta_w(offs_t offset, uint16_t data, uint16_t mem_mask) override;
|
||||
|
||||
int m_romsize;
|
||||
int m_romsize = 0;
|
||||
|
||||
int m_mysprtch_rombase;
|
||||
uint16_t m_prev_porta;
|
||||
int m_bank_enabled;
|
||||
int m_mysprtch_rombase = 0;
|
||||
uint16_t m_prev_porta = 0;
|
||||
int m_bank_enabled = 0;
|
||||
|
||||
private:
|
||||
uint16_t mysprtch_rom_r(offs_t offset);
|
||||
|
@ -121,9 +121,9 @@ private:
|
||||
output_finder<6> m_led;
|
||||
|
||||
// for I/O hacks
|
||||
uint32_t m_pchackaddress1;
|
||||
uint32_t m_pchackaddress2;
|
||||
uint16_t m_controller_sense_addr;
|
||||
uint32_t m_pchackaddress1 = 0;
|
||||
uint32_t m_pchackaddress2 = 0;
|
||||
uint16_t m_controller_sense_addr = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -39,14 +39,14 @@ protected:
|
||||
|
||||
uint16_t an3_r();
|
||||
|
||||
int m_porta_dat;
|
||||
int m_portb_dat;
|
||||
int m_portc_dat;
|
||||
int m_porta_mask;
|
||||
int m_porta_dat = 0;
|
||||
int m_portb_dat = 0;
|
||||
int m_portc_dat = 0;
|
||||
int m_porta_mask = 0;
|
||||
|
||||
int m_upperbank;
|
||||
int m_upperbank = 0;
|
||||
|
||||
int m_basebank;
|
||||
int m_basebank = 0;
|
||||
};
|
||||
|
||||
class mywicogt_state : public zon32bit_state
|
||||
|
@ -21,7 +21,7 @@ public:
|
||||
void tvgogo(machine_config &config);
|
||||
|
||||
private:
|
||||
uint8_t m_i2cunk;
|
||||
uint8_t m_i2cunk = 0;
|
||||
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
@ -57,7 +57,7 @@ protected:
|
||||
uint16_t m_prev_porta;
|
||||
uint16_t m_prev_portb;
|
||||
bool m_toggle;
|
||||
emu_timer *m_pulse_timer;
|
||||
emu_timer *m_pulse_timer = nullptr;
|
||||
|
||||
private:
|
||||
|
||||
@ -118,7 +118,7 @@ protected:
|
||||
|
||||
private:
|
||||
bool m_toggle2;
|
||||
emu_timer *m_pulse_timer2;
|
||||
emu_timer *m_pulse_timer2 = nullptr;
|
||||
};
|
||||
|
||||
void spg2xx_game_marc101_state::device_timer(emu_timer &timer, device_timer_id id, int param)
|
||||
|
@ -25,10 +25,10 @@ protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
||||
uint8_t m_w60_controller_input;
|
||||
uint16_t m_w60_porta_data;
|
||||
uint16_t m_w60_p1_ctrl_mask;
|
||||
uint16_t m_w60_p2_ctrl_mask;
|
||||
uint8_t m_w60_controller_input = 0;
|
||||
uint16_t m_w60_porta_data = 0;
|
||||
uint16_t m_w60_p1_ctrl_mask = 0;
|
||||
uint16_t m_w60_p2_ctrl_mask = 0;
|
||||
uint8_t m_bankmask;
|
||||
|
||||
void wireless60_porta_w(uint16_t data);
|
||||
@ -63,9 +63,9 @@ private:
|
||||
uint16_t zone40_porta_r();
|
||||
void zone40_porta_w(uint16_t data);
|
||||
required_region_ptr<uint16_t> m_romregion;
|
||||
uint16_t m_z40_rombase;
|
||||
uint16_t m_porta_dat;
|
||||
int m_romsize;
|
||||
uint16_t m_z40_rombase = 0;
|
||||
uint16_t m_porta_dat = 0;
|
||||
int m_romsize = 0;
|
||||
};
|
||||
|
||||
|
||||
|
@ -86,12 +86,12 @@ private:
|
||||
void vram2_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
TILE_GET_INFO_MEMBER(get_tile_info_tilemap1);
|
||||
TILE_GET_INFO_MEMBER(get_tile_info_tilemap2);
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap2;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
tilemap_t *m_bg_tilemap2 = nullptr;
|
||||
|
||||
void to_subcpu_0x400004_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
|
||||
|
||||
uint8_t m_subcmd;
|
||||
uint8_t m_subcmd = 0;
|
||||
|
||||
void sub_rambankselect_w(uint8_t data);
|
||||
void sub_rombankselect_w(uint8_t data);
|
||||
@ -99,7 +99,7 @@ private:
|
||||
DECLARE_WRITE_LINE_MEMBER(splash_msm5205_int);
|
||||
void splash_adpcm_data_w(uint8_t data);
|
||||
void splash_adpcm_control_w(uint8_t data);
|
||||
int m_adpcm_data;
|
||||
int m_adpcm_data = 0;
|
||||
|
||||
void subrambank_map(address_map& map);
|
||||
void subrombank_map(address_map& map);
|
||||
|
@ -83,22 +83,22 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
required_shared_ptr<uint8_t> m_bg_tile_ram;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
|
||||
required_shared_ptr<uint8_t> m_fg_tile_ram;
|
||||
required_shared_ptr<uint8_t> m_fg_color_ram;
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
|
||||
output_finder<7> m_leds;
|
||||
|
||||
// common
|
||||
int m_nmi_ack;
|
||||
uint8_t m_out[3];
|
||||
int m_nmi_ack = 0;
|
||||
uint8_t m_out[3]{};
|
||||
|
||||
// spk116it and spk115it specific
|
||||
int m_video_enable;
|
||||
int m_hopper;
|
||||
uint8_t m_igs_magic[2];
|
||||
int m_video_enable = 0;
|
||||
int m_hopper = 0;
|
||||
uint8_t m_igs_magic[2]{};
|
||||
|
||||
// common
|
||||
void bg_tile_w(offs_t offset, uint8_t data);
|
||||
|
@ -133,7 +133,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_vram;
|
||||
required_shared_ptr<uint8_t> m_cram;
|
||||
|
||||
tilemap_t *m_sc0_tilemap;
|
||||
tilemap_t *m_sc0_tilemap = nullptr;
|
||||
|
||||
void vram_w(offs_t offset, uint8_t data);
|
||||
void cram_w(offs_t offset, uint8_t data);
|
||||
|
@ -98,11 +98,11 @@ private:
|
||||
required_shared_ptr<uint8_t> m_bgattr;
|
||||
required_shared_ptr<uint8_t> m_sprram;
|
||||
|
||||
bool m_master_nmi_enable;
|
||||
bool m_master_irq_enable;
|
||||
bool m_slave_nmi_enable;
|
||||
bool m_screen_enable;
|
||||
uint8_t m_bg_scrollx, m_bg_scrolly;
|
||||
bool m_master_nmi_enable = false;
|
||||
bool m_master_irq_enable = false;
|
||||
bool m_slave_nmi_enable = false;
|
||||
bool m_screen_enable = false;
|
||||
uint8_t m_bg_scrollx = 0, m_bg_scrolly = 0;
|
||||
|
||||
// screen updates
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
@ -79,15 +79,15 @@ private:
|
||||
void draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
uint32_t screen_update_spyhuntertec(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
uint8_t m_spyhunt_sprite_color_mask;
|
||||
int16_t m_spyhunt_scroll_offset;
|
||||
int16_t m_spyhunt_scrollx;
|
||||
int16_t m_spyhunt_scrolly;
|
||||
uint8_t m_spyhunt_sprite_color_mask = 0;
|
||||
int16_t m_spyhunt_scroll_offset = 0;
|
||||
int16_t m_spyhunt_scrollx = 0;
|
||||
int16_t m_spyhunt_scrolly = 0;
|
||||
|
||||
int mcr_cocktail_flip;
|
||||
int mcr_cocktail_flip = 0;
|
||||
|
||||
tilemap_t *m_alpha_tilemap;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_alpha_tilemap = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
void spyhuntertec_paletteram_w(offs_t offset, uint8_t data);
|
||||
|
||||
// uint32_t screen_update_spyhuntertec(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
@ -117,8 +117,8 @@ private:
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(analog_count_callback);
|
||||
void reset_analog_timer();
|
||||
|
||||
uint8_t m_analog_select;
|
||||
uint8_t m_analog_count;
|
||||
uint8_t m_analog_select = 0;
|
||||
uint8_t m_analog_count = 0;
|
||||
void spyhuntertec_map(address_map &map);
|
||||
void spyhuntertec_portmap(address_map &map);
|
||||
void spyhuntertec_sound_map(address_map &map);
|
||||
|
@ -46,7 +46,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_store;
|
||||
required_device<screen_device> m_screen;
|
||||
|
||||
uint8_t m_store_line;
|
||||
uint8_t m_store_line = 0;
|
||||
|
||||
util::ovectorstream m_glyph_print_buf;
|
||||
};
|
||||
|
@ -174,19 +174,19 @@ protected:
|
||||
typedef void (ssfindo_state::*speedup_func)();
|
||||
speedup_func m_speedup;
|
||||
|
||||
uint32_t m_flashType;
|
||||
uint32_t m_flashType = 0;
|
||||
|
||||
bool m_i2cmem_clock;
|
||||
bool m_i2cmem_clock = false;
|
||||
|
||||
void sound_w(uint8_t data);
|
||||
|
||||
private:
|
||||
|
||||
// ssfindo and ppcar
|
||||
uint32_t m_flashAdr;
|
||||
uint32_t m_flashOffset;
|
||||
uint32_t m_adrLatch;
|
||||
uint32_t m_flashN;
|
||||
uint32_t m_flashAdr = 0;
|
||||
uint32_t m_flashOffset = 0;
|
||||
uint32_t m_adrLatch = 0;
|
||||
uint32_t m_flashN = 0;
|
||||
|
||||
// ssfindo and ppcar
|
||||
uint32_t io_r();
|
||||
@ -208,7 +208,7 @@ private:
|
||||
|
||||
uint8_t iolines_r();
|
||||
void iolines_w(uint8_t data);
|
||||
bool m_flash_bank_select;
|
||||
bool m_flash_bank_select = false;
|
||||
};
|
||||
|
||||
class tetfight_state : public ssfindo_state
|
||||
@ -224,7 +224,7 @@ public:
|
||||
protected:
|
||||
|
||||
private:
|
||||
bool m_i2cdata_hack;
|
||||
bool m_i2cdata_hack = false;
|
||||
|
||||
void tetfight_map(address_map &map);
|
||||
|
||||
|
@ -185,7 +185,7 @@ public:
|
||||
|
||||
private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
tilemap_t *m_tilemap;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
void supershot_vidram_w(offs_t offset, uint8_t data);
|
||||
void supershot_output0_w(uint8_t data);
|
||||
void supershot_output1_w(uint8_t data);
|
||||
|
@ -178,10 +178,10 @@ protected:
|
||||
private:
|
||||
uint8_t m_videoram[VMEM_SIZE];
|
||||
uint8_t m_colorram[VMEM_SIZE];
|
||||
uint8_t m_prot_data;
|
||||
uint8_t m_prot_data = 0;
|
||||
pen_t m_pens[NUM_PENS];
|
||||
|
||||
uint8_t m_atamanot_prot_state;
|
||||
uint8_t m_atamanot_prot_state = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
|
||||
|
@ -358,9 +358,9 @@ private:
|
||||
optional_device<palette_device> m_palette;
|
||||
required_shared_ptr<uint8_t> m_ram;
|
||||
|
||||
uint8_t m_flip_screen;
|
||||
uint8_t m_last_sound1;
|
||||
uint8_t m_last_sound2;
|
||||
uint8_t m_flip_screen = 0;
|
||||
uint8_t m_last_sound1 = 0;
|
||||
uint8_t m_last_sound2 = 0;
|
||||
|
||||
void port44_w(uint8_t data);
|
||||
void port42_w(uint8_t data);
|
||||
|
@ -60,7 +60,7 @@ protected:
|
||||
private:
|
||||
u8 sim152_r();
|
||||
void sim152_w(u8 data);
|
||||
u8 m_152_dat;
|
||||
u8 m_152_dat = 0;
|
||||
};
|
||||
|
||||
u8 st22xx_bbl338_sim_state::sim152_r()
|
||||
|
@ -113,15 +113,15 @@ private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<tms9927_device> m_tms;
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
tilemap_t *m_tilemap;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
optional_shared_ptr<uint8_t> m_question_offset;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
uint8_t m_question_offset_low;
|
||||
uint8_t m_question_offset_mid;
|
||||
uint8_t m_question_offset_high;
|
||||
uint8_t m_latched_coin;
|
||||
uint8_t m_last_coin;
|
||||
uint8_t m_question_offset_low = 0;
|
||||
uint8_t m_question_offset_mid = 0;
|
||||
uint8_t m_question_offset_high = 0;
|
||||
uint8_t m_latched_coin = 0;
|
||||
uint8_t m_last_coin = 0;
|
||||
|
||||
void statriv2_videoram_w(offs_t offset, uint8_t data);
|
||||
uint8_t question_data_r();
|
||||
|
@ -331,7 +331,7 @@ private:
|
||||
|
||||
/* video state */
|
||||
required_shared_ptr<uint8_t> m_color_ram;
|
||||
uint8_t m_color;
|
||||
uint8_t m_color = 0;
|
||||
void mpt02_io_map(address_map &map);
|
||||
void mpt02_map(address_map &map);
|
||||
};
|
||||
|
@ -126,13 +126,13 @@ private:
|
||||
required_device<palette_device> m_palette;
|
||||
required_device<generic_latch_8_device> m_soundlatch;
|
||||
|
||||
tilemap_t *m_fg_tilemap;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_fg_tilemap = nullptr;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
|
||||
uint8_t m_bg_xscroll;
|
||||
uint8_t m_nmi_enable;
|
||||
uint8_t m_spritebank0;
|
||||
uint8_t m_spritebank1;
|
||||
uint8_t m_bg_xscroll = 0;
|
||||
uint8_t m_nmi_enable = 0;
|
||||
uint8_t m_spritebank0 = 0;
|
||||
uint8_t m_spritebank1 = 0;
|
||||
|
||||
TILE_GET_INFO_MEMBER(get_stuntair_fg_tile_info);
|
||||
TILE_GET_INFO_MEMBER(get_stuntair_bg_tile_info);
|
||||
|
@ -306,14 +306,14 @@ private:
|
||||
required_device<ticket_dispenser_device> m_hopper;
|
||||
output_finder<16> m_lamps;
|
||||
|
||||
tilemap_t *m_tmap;
|
||||
tilemap_t *m_reel_tilemap[3];
|
||||
int m_tiles_offset;
|
||||
uint8_t m_out_c;
|
||||
tilemap_t *m_tmap = nullptr;
|
||||
tilemap_t *m_reel_tilemap[3]{};
|
||||
int m_tiles_offset = 0;
|
||||
uint8_t m_out_c = 0;
|
||||
std::unique_ptr<uint8_t[]> m_reel_attr[3];
|
||||
uint8_t m_flash_val;
|
||||
uint8_t m_flash_packet;
|
||||
uint8_t m_flash_packet_start;
|
||||
uint8_t m_flash_val = 0;
|
||||
uint8_t m_flash_packet = 0;
|
||||
uint8_t m_flash_packet_start = 0;
|
||||
|
||||
void tiles_offset_w(offs_t offset, uint8_t data);
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
|
@ -77,7 +77,7 @@ private:
|
||||
TILE_GET_INFO_MEMBER(tile_info);
|
||||
uint32_t screen_update_summit(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
|
||||
tilemap_t *m_tilemap;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
};
|
||||
|
||||
|
||||
|
@ -219,9 +219,9 @@ private:
|
||||
void sun3_460_mem(address_map &map);
|
||||
void sun3_80_mem(address_map &map);
|
||||
|
||||
uint32_t m_enable, m_buserr, m_diag, m_printer, m_irqctrl, m_memreg, m_memerraddr;
|
||||
uint32_t m_iommu[0x800];
|
||||
bool m_bInBusErr;
|
||||
uint32_t m_enable = 0, m_buserr = 0, m_diag = 0, m_printer = 0, m_irqctrl = 0, m_memreg = 0, m_memerraddr = 0;
|
||||
uint32_t m_iommu[0x800]{};
|
||||
bool m_bInBusErr = false;
|
||||
};
|
||||
|
||||
void sun3x_state::sun3_80_mem(address_map &map)
|
||||
|
@ -97,7 +97,7 @@ private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_shared_ptr<uint8_t> m_char_bank;
|
||||
|
||||
uint8_t m_wdog;
|
||||
uint8_t m_wdog = 0;
|
||||
|
||||
uint8_t rng_r();
|
||||
void wdog8000_w(uint8_t data);
|
||||
|
@ -68,9 +68,9 @@ private:
|
||||
required_device<tigeroad_spr_device> m_spritegen;
|
||||
required_device<generic_latch_8_device> m_soundlatch;
|
||||
|
||||
tilemap_t *m_text_tilemap;
|
||||
tilemap_t *m_fore_tilemap;
|
||||
tilemap_t *m_back_tilemap;
|
||||
tilemap_t *m_text_tilemap = nullptr;
|
||||
tilemap_t *m_fore_tilemap = nullptr;
|
||||
tilemap_t *m_back_tilemap = nullptr;
|
||||
|
||||
uint32_t screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
|
||||
|
||||
|
@ -194,7 +194,7 @@ protected:
|
||||
private:
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
required_shared_ptr<uint8_t> m_colorram;
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_bg_tilemap = nullptr;
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
||||
|
@ -53,12 +53,12 @@ protected:
|
||||
|
||||
private:
|
||||
required_device<pioneer_ldv1000_device> m_laserdisc;
|
||||
uint8_t m_ld_in_latch;
|
||||
uint8_t m_ld_out_latch;
|
||||
uint8_t m_ld_in_latch = 0;
|
||||
uint8_t m_ld_out_latch = 0;
|
||||
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
tilemap_t *m_tilemap;
|
||||
int m_color_bank;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
int m_color_bank = 0;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
|
@ -76,10 +76,10 @@ public:
|
||||
void superga2_map(address_map &map);
|
||||
|
||||
private:
|
||||
int m_speaker_state;
|
||||
int m_speaker_state = 0;
|
||||
|
||||
uint8_t *m_ram_ptr;
|
||||
int m_ram_size;
|
||||
uint8_t *m_ram_ptr = nullptr;
|
||||
int m_ram_size = 0;
|
||||
|
||||
uint8_t read_floatingbus();
|
||||
};
|
||||
|
@ -147,10 +147,10 @@ private:
|
||||
void supertnk_map(address_map &map);
|
||||
|
||||
std::unique_ptr<uint8_t[]> m_videoram[3];
|
||||
uint8_t m_rom_bank;
|
||||
uint8_t m_bitplane_select;
|
||||
uint8_t m_rom_bank = 0;
|
||||
uint8_t m_bitplane_select = 0;
|
||||
pen_t m_pens[NUM_PENS];
|
||||
bool m_interrupt_enable;
|
||||
bool m_interrupt_enable = false;
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<watchdog_timer_device> m_watchdog;
|
||||
|
@ -75,12 +75,12 @@ private:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
|
||||
uint8_t m_tile_bank;
|
||||
uint8_t m_sound_byte;
|
||||
uint8_t m_nmi_enable;
|
||||
uint8_t m_tile_bank = 0;
|
||||
uint8_t m_sound_byte = 0;
|
||||
uint8_t m_nmi_enable = 0;
|
||||
|
||||
tilemap_t * m_bg_tilemap;
|
||||
tilemap_t * m_fg_tilemap;
|
||||
tilemap_t * m_bg_tilemap = nullptr;
|
||||
tilemap_t * m_fg_tilemap = nullptr;
|
||||
|
||||
void superwng_nmi_enable_w(uint8_t data);
|
||||
void superwng_sound_interrupt_w(uint8_t data);
|
||||
|
@ -165,20 +165,20 @@ private:
|
||||
|
||||
struct dma_regs_t
|
||||
{
|
||||
uint32_t source[2];
|
||||
uint32_t dest[2];
|
||||
uint16_t count[2];
|
||||
uint16_t control[2];
|
||||
uint32_t source[2]{};
|
||||
uint32_t dest[2]{};
|
||||
uint16_t count[2]{};
|
||||
uint16_t control[2]{};
|
||||
};
|
||||
|
||||
struct sprdma_regs_t
|
||||
{
|
||||
uint32_t src;
|
||||
uint16_t src_inc;
|
||||
uint32_t dst;
|
||||
uint16_t dst_inc;
|
||||
uint16_t count;
|
||||
uint16_t control;
|
||||
uint32_t src = 0;
|
||||
uint16_t src_inc = 0;
|
||||
uint32_t dst = 0;
|
||||
uint16_t dst_inc = 0;
|
||||
uint16_t count = 0;
|
||||
uint16_t control = 0;
|
||||
};
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
@ -197,59 +197,59 @@ private:
|
||||
dma_regs_t m_dma_regs;
|
||||
sprdma_regs_t m_sprdma_regs;
|
||||
|
||||
uint16_t m_sound_cpu_ctrl;
|
||||
uint8_t m_soundcpu_irq_enable;
|
||||
uint8_t m_soundcpu_irq_source;
|
||||
uint8_t m_sound_cpu_shift_ctrl;
|
||||
uint8_t m_sound_cpu_shift_regs[2];
|
||||
uint16_t m_latched_controls[2];
|
||||
uint8_t m_sound_status;
|
||||
uint8_t m_sound_reg_addr;
|
||||
uint16_t m_sound_cpu_ctrl = 0;
|
||||
uint8_t m_soundcpu_irq_enable = 0;
|
||||
uint8_t m_soundcpu_irq_source = 0;
|
||||
uint8_t m_sound_cpu_shift_ctrl = 0;
|
||||
uint8_t m_sound_cpu_shift_regs[2]{};
|
||||
uint16_t m_latched_controls[2]{};
|
||||
uint8_t m_sound_status = 0;
|
||||
uint8_t m_sound_reg_addr = 0;
|
||||
|
||||
emu_timer *m_video_timer;
|
||||
emu_timer *m_hbl_timer;
|
||||
emu_timer *m_line_on_timer;
|
||||
emu_timer *m_line_off_timer;
|
||||
emu_timer *m_video_timer = nullptr;
|
||||
emu_timer *m_hbl_timer = nullptr;
|
||||
emu_timer *m_line_on_timer = nullptr;
|
||||
emu_timer *m_line_off_timer = nullptr;
|
||||
|
||||
std::vector<uint8_t> m_vram_addr_swapped;
|
||||
std::vector<uint8_t> m_vram_addr_swapped{};
|
||||
|
||||
#if 0
|
||||
uint16_t *m_pram;
|
||||
uint16_t *m_pram = nullptr;
|
||||
#endif
|
||||
|
||||
uint16_t m_sprite_count;
|
||||
uint32_t m_sprite_base_addr;
|
||||
uint8_t m_sprite_flags;
|
||||
uint16_t m_sprite_count = 0;
|
||||
uint32_t m_sprite_base_addr = 0;
|
||||
uint8_t m_sprite_flags = 0;
|
||||
|
||||
uint32_t m_tilemap_base_addr[3];
|
||||
int m_tilemap_scrollx[3];
|
||||
int m_tilemap_scrolly[3];
|
||||
uint16_t m_video_flags;
|
||||
uint16_t m_tilemap_flags[3];
|
||||
uint16_t m_tilemap_mode[3];
|
||||
uint16_t m_irq_mask;
|
||||
uint32_t m_tilemap_base_addr[3]{};
|
||||
int m_tilemap_scrollx[3]{};
|
||||
int m_tilemap_scrolly[3]{};
|
||||
uint16_t m_video_flags = 0;
|
||||
uint16_t m_tilemap_flags[3]{};
|
||||
uint16_t m_tilemap_mode[3]{};
|
||||
uint16_t m_irq_mask = 0;
|
||||
#if 0
|
||||
uint16_t m_hbl_mask;
|
||||
uint16_t m_hbl_mask = 0;
|
||||
#endif
|
||||
|
||||
uint32_t m_roz_base_addr;
|
||||
uint16_t m_roz_mode;
|
||||
uint32_t m_roz_scrollx;
|
||||
uint32_t m_roz_scrolly;
|
||||
uint16_t m_roz_tile_bank;
|
||||
uint32_t m_roz_unk_base0;
|
||||
uint32_t m_roz_unk_base1;
|
||||
uint32_t m_roz_unk_base2;
|
||||
uint16_t m_roz_coeffa;
|
||||
uint16_t m_roz_coeffb;
|
||||
uint16_t m_roz_coeffc;
|
||||
uint16_t m_roz_coeffd;
|
||||
int32_t m_roz_changed;
|
||||
uint16_t m_unk_1d0;
|
||||
uint32_t m_roz_base_addr = 0;
|
||||
uint16_t m_roz_mode = 0;
|
||||
uint32_t m_roz_scrollx = 0;
|
||||
uint32_t m_roz_scrolly = 0;
|
||||
uint16_t m_roz_tile_bank = 0;
|
||||
uint32_t m_roz_unk_base0 = 0;
|
||||
uint32_t m_roz_unk_base1 = 0;
|
||||
uint32_t m_roz_unk_base2 = 0;
|
||||
uint16_t m_roz_coeffa = 0;
|
||||
uint16_t m_roz_coeffb = 0;
|
||||
uint16_t m_roz_coeffc = 0;
|
||||
uint16_t m_roz_coeffd = 0;
|
||||
int32_t m_roz_changed = 0;
|
||||
uint16_t m_unk_1d0 = 0;
|
||||
|
||||
uint16_t m_video_regs[256];
|
||||
uint16_t m_video_regs[256]{};
|
||||
|
||||
tilemap_t *m_tilemap_sizes[4][4];
|
||||
tilemap_t *m_tilemap_sizes[4][4]{};
|
||||
bitmap_ind16 m_sprite_final_bitmap;
|
||||
bitmap_ind8 m_sprite_mask_bitmap;
|
||||
bitmap_ind8 m_prio_bitmap;
|
||||
|
@ -64,20 +64,20 @@ private:
|
||||
|
||||
required_shared_ptr<uint8_t> m_videoram;
|
||||
|
||||
tilemap_t *m_tilemap;
|
||||
tilemap_t *m_tilemap = nullptr;
|
||||
std::unique_ptr<uint8_t[]> m_paletteram;
|
||||
std::unique_ptr<uint8_t[]> m_bg_vram;
|
||||
std::unique_ptr<uint16_t[]> m_bg_fb;
|
||||
std::unique_ptr<uint16_t[]> m_fg_fb;
|
||||
uint8_t m_rom_bank;
|
||||
uint8_t m_bg_bank;
|
||||
uint8_t m_vreg_bank;
|
||||
uint8_t m_msm5205next;
|
||||
uint8_t m_msm_nmi_mask;
|
||||
uint8_t m_vreg_pen;
|
||||
uint8_t m_palette_switch;
|
||||
uint8_t m_bg_vreg_test;
|
||||
uint8_t m_toggle;
|
||||
uint8_t m_rom_bank = 0;
|
||||
uint8_t m_bg_bank = 0;
|
||||
uint8_t m_vreg_bank = 0;
|
||||
uint8_t m_msm5205next = 0;
|
||||
uint8_t m_msm_nmi_mask = 0;
|
||||
uint8_t m_vreg_pen = 0;
|
||||
uint8_t m_palette_switch = 0;
|
||||
uint8_t m_bg_vreg_test = 0;
|
||||
uint8_t m_toggle = 0;
|
||||
|
||||
uint8_t videoram_r(offs_t offset);
|
||||
void videoram_w(offs_t offset, uint8_t data);
|
||||
|
@ -65,9 +65,9 @@ private:
|
||||
required_device_array<ay8910_device, 2> m_psg;
|
||||
required_device_array<i8212_device, 2> m_soundlatch;
|
||||
|
||||
u8 m_port1_data;
|
||||
bool m_pcs[2];
|
||||
bool m_latch_select;
|
||||
u8 m_port1_data = 0;
|
||||
bool m_pcs[2]{};
|
||||
bool m_latch_select = 0;
|
||||
};
|
||||
|
||||
void supstarf_state::main_map(address_map &map)
|
||||
|
@ -64,7 +64,7 @@ private:
|
||||
|
||||
std::unique_ptr<u8[]> m_ram;
|
||||
|
||||
bool m_boot_read;
|
||||
bool m_boot_read = false;
|
||||
};
|
||||
|
||||
void systel1_state::machine_start()
|
||||
|
Loading…
Reference in New Issue
Block a user