summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2021-02-17 13:03:22 +0100
committer Ivan Vangelista <mesgnet@yahoo.it>2021-02-17 13:03:22 +0100
commit181040bf3bd1964e5919198dca5f960bc9bdbac6 (patch)
tree1de0d3de0ee1b2214fb0d3a25a5d7f0ba9484930 /src/mame/includes
parent3649d3f69df05544bd3a38a38ff75e0325f635a7 (diff)
apexc, apf, aussiebyte, avt, chaos, cops, corona, dec0, dms86, eprom, esq5505, eurocom2, jonos, jupiter: initialized some variables which were causing incorrect behaviours in drvnoclear debug builds
Diffstat (limited to 'src/mame/includes')
-rw-r--r--src/mame/includes/aussiebyte.h6
-rw-r--r--src/mame/includes/dec0.h1
-rw-r--r--src/mame/includes/eprom.h36
3 files changed, 23 insertions, 20 deletions
diff --git a/src/mame/includes/aussiebyte.h b/src/mame/includes/aussiebyte.h
index 1e02f5c0971..c5f6053d2f1 100644
--- a/src/mame/includes/aussiebyte.h
+++ b/src/mame/includes/aussiebyte.h
@@ -74,6 +74,10 @@ public:
DECLARE_QUICKLOAD_LOAD_MEMBER(quickload_cb);
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+
private:
u8 memory_read_byte(offs_t offset);
void memory_write_byte(offs_t offset, u8 data);
@@ -108,8 +112,6 @@ private:
MC6845_UPDATE_ROW(crtc_update_row);
MC6845_ON_UPDATE_ADDR_CHANGED(crtc_update_addr);
- virtual void machine_start() override;
- virtual void machine_reset() override;
void io_map(address_map &map);
void mem_map(address_map &map);
diff --git a/src/mame/includes/dec0.h b/src/mame/includes/dec0.h
index 5c88125cfee..a9b51c26750 100644
--- a/src/mame/includes/dec0.h
+++ b/src/mame/includes/dec0.h
@@ -184,6 +184,7 @@ public:
m_adpcm_select(*this, "adpcm_select%u", 1U),
m_soundbank(*this, "soundbank")
{
+ std::fill(std::begin(m_automat_scroll_regs), std::end(m_automat_scroll_regs), 0);
}
void secretab(machine_config &config);
diff --git a/src/mame/includes/eprom.h b/src/mame/includes/eprom.h
index d17085ab57c..bb28cf411f1 100644
--- a/src/mame/includes/eprom.h
+++ b/src/mame/includes/eprom.h
@@ -44,22 +44,7 @@ public:
protected:
virtual void machine_start() override;
virtual void machine_reset() override;
- void video_int_ack_w(uint16_t data);
- TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
- uint8_t adc_r(offs_t offset);
- void eprom_latch_w(uint8_t data);
- template<bool maincpu> void sync_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
- TILE_GET_INFO_MEMBER(get_alpha_tile_info);
- TILE_GET_INFO_MEMBER(get_playfield_tile_info);
- TILE_GET_INFO_MEMBER(guts_get_playfield_tile_info);
- DECLARE_VIDEO_START(eprom);
- DECLARE_VIDEO_START(guts);
- uint32_t screen_update_eprom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- uint32_t screen_update_guts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- void update_palette();
- void extra_map(address_map &map);
- void guts_map(address_map &map);
- void main_map(address_map &map);
+ virtual void video_start() override;
private:
required_device<cpu_device> m_maincpu;
@@ -70,14 +55,29 @@ private:
required_device<atari_motion_objects_device> m_mob;
required_device<atari_jsa_base_device> m_jsa;
required_shared_ptr<uint16_t> m_share1;
- int m_screen_intensity;
- int m_video_disable;
+ uint8_t m_screen_intensity;
+ uint8_t m_video_disable;
optional_device<adc0808_device> m_adc;
optional_device<cpu_device> m_extra;
required_device<palette_device> m_palette;
optional_shared_ptr<uint16_t> m_paletteram;
static const atari_motion_objects_config s_mob_config;
static const atari_motion_objects_config s_guts_mob_config;
+
+ void video_int_ack_w(uint16_t data);
+ TIMER_DEVICE_CALLBACK_MEMBER(scanline_update);
+ uint8_t adc_r(offs_t offset);
+ void eprom_latch_w(uint8_t data);
+ template<bool maincpu> void sync_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
+ TILE_GET_INFO_MEMBER(get_alpha_tile_info);
+ TILE_GET_INFO_MEMBER(get_playfield_tile_info);
+ TILE_GET_INFO_MEMBER(guts_get_playfield_tile_info);
+ uint32_t screen_update_eprom(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_guts(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
+ void update_palette();
+ void extra_map(address_map &map);
+ void guts_map(address_map &map);
+ void main_map(address_map &map);
};
#endif // MAME_INCLUDES_EPROM_H