mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
init vars found from regression testing
This commit is contained in:
parent
3b180da4e1
commit
6b26c03867
@ -252,8 +252,8 @@ public:
|
||||
template<int cpunum> uint8_t perr_r(offs_t offset);
|
||||
template<int cpunum> void perr_w(offs_t offset, uint8_t data);
|
||||
|
||||
uint16_t m_aic_ad565_in[16];
|
||||
uint8_t m_aic_mux_latch;
|
||||
uint16_t m_aic_ad565_in[16]{};
|
||||
uint8_t m_aic_mux_latch = 0;
|
||||
|
||||
uint8_t aic_ad574_r();
|
||||
template<int Dac> void aic_dac_w(uint8_t data);
|
||||
@ -407,11 +407,11 @@ protected:
|
||||
address_space *m_cpu2space;
|
||||
|
||||
private:
|
||||
emu_timer *m_map_switch_timer;
|
||||
emu_timer *m_hblank_timer;
|
||||
emu_timer *m_jam_timeout_timer;
|
||||
emu_timer *m_map_switch_timer = nullptr;
|
||||
emu_timer *m_hblank_timer = nullptr;
|
||||
emu_timer *m_jam_timeout_timer = nullptr;
|
||||
|
||||
uint8_t m_video_data;
|
||||
uint8_t m_video_data = 0;
|
||||
|
||||
// Memory
|
||||
bool map_is_active(int cpunum, int map, uint8_t *map_info);
|
||||
|
@ -160,21 +160,21 @@ private:
|
||||
TILEMAP_MAPPER_MEMBER(tile_scan_layer0);
|
||||
TILEMAP_MAPPER_MEMBER(tile_scan_layer1);
|
||||
|
||||
uint16_t m_dsp_ram[0x1000];
|
||||
uint16_t m_io_share_ram[0x2000];
|
||||
uint16_t m_dsp_ram[0x1000]{};
|
||||
uint16_t m_io_share_ram[0x2000]{};
|
||||
|
||||
std::unique_ptr<uint32_t[]> m_screen_ram;
|
||||
std::unique_ptr<uint32_t[]> m_pal_ram;
|
||||
|
||||
tilemap_t *m_tilemap[2];
|
||||
tilemap_t *m_tilemap[2]{};
|
||||
|
||||
uint32_t m_video_address;
|
||||
uint32_t m_video_address = 0;
|
||||
|
||||
uint32_t m_dsp_rom_address;
|
||||
int m_scroll_x;
|
||||
int m_scroll_y;
|
||||
uint32_t m_dsp_rom_address = 0;
|
||||
int m_scroll_x = 0;
|
||||
int m_scroll_y = 0;
|
||||
|
||||
uint32_t m_tlcs_sound_ptr;
|
||||
uint32_t m_tlcs_sound_ptr = 0;
|
||||
|
||||
void mn10200_map(address_map &map);
|
||||
void ppc603e_mem(address_map &map);
|
||||
|
@ -106,42 +106,42 @@ protected:
|
||||
virtual void nvram_init(nvram_device &nvram, void *base, size_t length);
|
||||
|
||||
std::unique_ptr<u16[]> m_videoram;
|
||||
u8 m_vint_state;
|
||||
u8 m_xint_state;
|
||||
u8 m_qint_state;
|
||||
u8 m_irq_base;
|
||||
u8 m_sound_return;
|
||||
offs_t m_itech020_prot_address;
|
||||
int m_special_result;
|
||||
int m_p1_effx;
|
||||
int m_p1_effy;
|
||||
int m_p1_lastresult;
|
||||
attotime m_p1_lasttime;
|
||||
int m_p2_effx;
|
||||
int m_p2_effy;
|
||||
int m_p2_lastresult;
|
||||
attotime m_p2_lasttime;
|
||||
u8 m_written[0x8000];
|
||||
u16 m_xfer_xcount;
|
||||
u16 m_xfer_ycount;
|
||||
u16 m_xfer_xcur;
|
||||
u16 m_xfer_ycur;
|
||||
rectangle m_clip_rect;
|
||||
rectangle m_scaled_clip_rect;
|
||||
rectangle m_clip_save;
|
||||
emu_timer *m_scanline_timer;
|
||||
u32 m_grom_bank;
|
||||
u16 m_color_latch[2];
|
||||
u8 m_enable_latch[2];
|
||||
u16 *m_videoplane[2];
|
||||
u8 m_vint_state = 0;
|
||||
u8 m_xint_state = 0;
|
||||
u8 m_qint_state = 0;
|
||||
u8 m_irq_base = 0;
|
||||
u8 m_sound_return = 0;
|
||||
offs_t m_itech020_prot_address = 0;
|
||||
int m_special_result = 0;
|
||||
int m_p1_effx = 0;
|
||||
int m_p1_effy = 0;
|
||||
int m_p1_lastresult = 0;
|
||||
attotime m_p1_lasttime{};
|
||||
int m_p2_effx = 0;
|
||||
int m_p2_effy = 0;
|
||||
int m_p2_lastresult = 0;
|
||||
attotime m_p2_lasttime{};
|
||||
u8 m_written[0x8000]{};
|
||||
u16 m_xfer_xcount = 0;
|
||||
u16 m_xfer_ycount = 0;
|
||||
u16 m_xfer_xcur = 0;
|
||||
u16 m_xfer_ycur = 0;
|
||||
rectangle m_clip_rect{};
|
||||
rectangle m_scaled_clip_rect{};
|
||||
rectangle m_clip_save{};
|
||||
emu_timer *m_scanline_timer = nullptr;
|
||||
u32 m_grom_bank = 0;
|
||||
u16 m_color_latch[2]{};
|
||||
u8 m_enable_latch[2]{};
|
||||
u16 *m_videoplane[2]{};
|
||||
|
||||
// configuration at init time
|
||||
u8 m_planes;
|
||||
u16 m_vram_height;
|
||||
u32 m_vram_mask;
|
||||
u32 m_vram_xmask;
|
||||
u32 m_vram_ymask;
|
||||
u32 m_grom_bank_mask;
|
||||
u8 m_planes = 0;
|
||||
u16 m_vram_height = 0;
|
||||
u32 m_vram_mask = 0;
|
||||
u32 m_vram_xmask = 0;
|
||||
u32 m_vram_ymask = 0;
|
||||
u32 m_grom_bank_mask = 0;
|
||||
|
||||
void int1_ack_w(u16 data);
|
||||
u8 trackball_r();
|
||||
@ -301,7 +301,7 @@ private:
|
||||
required_ioport m_dips;
|
||||
required_ioport_array<2> m_gun_x;
|
||||
required_ioport_array<2> m_gun_y;
|
||||
emu_timer *m_gun_timer;
|
||||
emu_timer *m_gun_timer = nullptr;
|
||||
};
|
||||
|
||||
#endif // MAME_INCLUDES_ITECH32_H
|
||||
|
@ -97,42 +97,42 @@ protected:
|
||||
optional_ioport m_p1;
|
||||
optional_ioport m_p2;
|
||||
|
||||
rectangle m_visarea;
|
||||
rectangle m_visarea{};
|
||||
|
||||
uint8_t m_grom_bank;
|
||||
uint8_t m_blitter_int;
|
||||
uint8_t m_tms34061_int;
|
||||
uint8_t m_periodic_int;
|
||||
uint8_t m_pia_porta_data;
|
||||
uint8_t m_pia_portb_data;
|
||||
uint8_t m_z80_ctrl;
|
||||
uint8_t m_z80_port_val;
|
||||
uint8_t m_z80_clear_to_send;
|
||||
uint16_t m_sensor0;
|
||||
uint16_t m_sensor1;
|
||||
uint16_t m_sensor2;
|
||||
uint16_t m_sensor3;
|
||||
uint8_t m_curvx;
|
||||
uint8_t m_curvy;
|
||||
uint8_t m_curx;
|
||||
int8_t m_xbuffer[YBUFFER_COUNT];
|
||||
int8_t m_ybuffer[YBUFFER_COUNT];
|
||||
int m_ybuffer_next;
|
||||
int m_curxpos;
|
||||
int m_last_ytotal;
|
||||
uint8_t m_crosshair_vis;
|
||||
uint8_t m_blitter_data[16];
|
||||
uint8_t m_blit_in_progress;
|
||||
uint8_t m_page_select;
|
||||
offs_t m_fetch_offset;
|
||||
uint8_t m_fetch_rle_count;
|
||||
uint8_t m_fetch_rle_value;
|
||||
uint8_t m_fetch_rle_literal;
|
||||
emu_timer *m_irq_off_timer;
|
||||
emu_timer *m_behind_beam_update_timer;
|
||||
emu_timer *m_blitter_done_timer;
|
||||
emu_timer *m_delayed_z80_control_timer;
|
||||
int m_bankxor;
|
||||
uint8_t m_grom_bank = 0;
|
||||
uint8_t m_blitter_int = 0;
|
||||
uint8_t m_tms34061_int = 0;
|
||||
uint8_t m_periodic_int = 0;
|
||||
uint8_t m_pia_porta_data = 0;
|
||||
uint8_t m_pia_portb_data = 0;
|
||||
uint8_t m_z80_ctrl = 0;
|
||||
uint8_t m_z80_port_val = 0;
|
||||
uint8_t m_z80_clear_to_send = 0;
|
||||
uint16_t m_sensor0 = 0;
|
||||
uint16_t m_sensor1 = 0;
|
||||
uint16_t m_sensor2 = 0;
|
||||
uint16_t m_sensor3 = 0;
|
||||
uint8_t m_curvx = 0;
|
||||
uint8_t m_curvy = 0;
|
||||
uint8_t m_curx = 0;
|
||||
int8_t m_xbuffer[YBUFFER_COUNT]{};
|
||||
int8_t m_ybuffer[YBUFFER_COUNT]{};
|
||||
int m_ybuffer_next = 0;
|
||||
int m_curxpos = 0;
|
||||
int m_last_ytotal = 0;
|
||||
uint8_t m_crosshair_vis = 0;
|
||||
uint8_t m_blitter_data[16]{};
|
||||
uint8_t m_blit_in_progress = 0;
|
||||
uint8_t m_page_select = 0;
|
||||
offs_t m_fetch_offset = 0;
|
||||
uint8_t m_fetch_rle_count = 0;
|
||||
uint8_t m_fetch_rle_value = 0;
|
||||
uint8_t m_fetch_rle_literal = 0;
|
||||
emu_timer *m_irq_off_timer = nullptr;
|
||||
emu_timer *m_behind_beam_update_timer = nullptr;
|
||||
emu_timer *m_blitter_done_timer = nullptr;
|
||||
emu_timer *m_delayed_z80_control_timer = nullptr;
|
||||
int m_bankxor = 0;
|
||||
|
||||
// common
|
||||
DECLARE_WRITE_LINE_MEMBER(generate_tms34061_interrupt);
|
||||
@ -256,7 +256,7 @@ protected:
|
||||
|
||||
void palette_update();
|
||||
|
||||
emu_timer *m_palette_timer;
|
||||
emu_timer *m_palette_timer = nullptr;
|
||||
uint8_t m_palcontrol = 0U;
|
||||
uint8_t m_xscroll = 0U;
|
||||
rgb_t m_palette[2][16]{};
|
||||
|
@ -201,7 +201,7 @@ private:
|
||||
optional_shared_ptr<u16> m_bg15_scroll;
|
||||
required_device<palette_device> m_bgpalette;
|
||||
|
||||
bitmap_ind16 m_bg15_bitmap[32];
|
||||
bitmap_ind16 m_bg15_bitmap[32]{};
|
||||
|
||||
u8 bg15_select_r();
|
||||
void bg15_select_w(u8 data);
|
||||
|
Loading…
Reference in New Issue
Block a user