mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
argus, atarig42, gamecom, ghosteo, suna16, tm990189: initialized variables that were causing crashes in drvnoclear builds
This commit is contained in:
parent
156b500319
commit
7294887836
@ -49,6 +49,8 @@ void atarig42_state::machine_start()
|
||||
save_item(NAME(m_sloop_next_bank));
|
||||
save_item(NAME(m_sloop_offset));
|
||||
save_item(NAME(m_sloop_state));
|
||||
|
||||
m_sloop_bank = 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -68,6 +68,9 @@ ToDo: verify QS1000 hook-up
|
||||
#include "screen.h"
|
||||
#include "speaker.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
#define NAND_LOG 0
|
||||
|
||||
enum nand_mode_t
|
||||
@ -108,6 +111,10 @@ public:
|
||||
void init_touryuu();
|
||||
void init_bballoon();
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
|
||||
private:
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_device<i2cmem_device> m_i2cmem;
|
||||
@ -129,8 +136,6 @@ private:
|
||||
void qs1000_p3_w(uint8_t data);
|
||||
|
||||
int m_rom_pagesize;
|
||||
virtual void machine_start() override;
|
||||
virtual void machine_reset() override;
|
||||
uint32_t s3c2410_gpio_port_r(offs_t offset);
|
||||
void s3c2410_gpio_port_w(offs_t offset, uint32_t data);
|
||||
uint32_t s3c2410_core_pin_r(offs_t offset);
|
||||
@ -598,6 +603,8 @@ void ghosteo_state::machine_start()
|
||||
// Set up the QS1000 program ROM banking, taking care not to overlap the internal RAM
|
||||
m_qs1000->cpu().space(AS_IO).install_read_bank(0x0100, 0xffff, m_qs1000_bank);
|
||||
m_qs1000_bank->configure_entries(0, 8, memregion("qs1000:cpu")->base()+0x100, 0x10000);
|
||||
|
||||
m_security_count = 0;
|
||||
}
|
||||
|
||||
void ghosteo_state::machine_reset()
|
||||
@ -711,7 +718,7 @@ Notes:
|
||||
QS1001A - QDSP QS1001A 512k x8 MaskROM (SOP32)
|
||||
|
||||
qs1001a.u17 was not dumped from this PCB, but is a standard sample rom found on many Eolith games
|
||||
see eolith.c and vegaeo.c drivers
|
||||
see eolith.cpp and vegaeo.cpp drivers
|
||||
*/
|
||||
|
||||
// The NAND dumps are missing the ECC data. We calculate it on the fly, because the games require it, but really it should be dumped hence the 'BAD DUMP' flags
|
||||
@ -765,6 +772,9 @@ void ghosteo_state::init_touryuu()
|
||||
m_rom_pagesize = 0x210;
|
||||
}
|
||||
|
||||
} // Anonymous namespace
|
||||
|
||||
|
||||
GAME( 2003, bballoon, 0, bballoon, bballoon, ghosteo_state, init_bballoon, ROT0, "Eolith", "BnB Arcade", MACHINE_IMPERFECT_SOUND )
|
||||
GAME( 2005, hapytour, 0, bballoon, bballoon, ghosteo_state, init_bballoon, ROT0, "GAV Company", "Happy Tour", MACHINE_IMPERFECT_SOUND )
|
||||
GAME( 2005, touryuu, 0, touryuu, touryuu, ghosteo_state, init_touryuu, ROT0, "Yuki Enterprise", "Touryuumon (V1.1)?", MACHINE_IMPERFECT_SOUND ) // On first boot inputs won't work, TODO: hook-up default eeprom
|
||||
|
@ -757,8 +757,8 @@ ROM_START( orlegend111t )
|
||||
ROM_LOAD( "pgm_a0105b.u10", 0x1400000, 0x400000, BAD_DUMP CRC(a17a7147) SHA1(44eeb43c6b0ebb829559a20ae357383fbdeecd82) )
|
||||
|
||||
ROM_REGION16_LE( 0x1000000, "sprmask", 0 ) /* Sprite Masks + Colour Indexes */
|
||||
ROM_LOAD( "pgm_b0100.u9", 0x0000000, 0x400000, BAD_DUMP CRC(69d2e48c) SHA1(5b5f759007264c07b3b39be8e03a713698e1fc2a) )
|
||||
ROM_LOAD( "pgm_b0101.u10", 0x0400000, 0x400000, BAD_DUMP CRC(0d587bf3) SHA1(5347828b0a6e4ddd7a263663d2c2604407e4d49c) )
|
||||
ROM_LOAD( "pgm_b0100b.u9", 0x0000000, 0x400000, BAD_DUMP CRC(69d2e48c) SHA1(5b5f759007264c07b3b39be8e03a713698e1fc2a) )
|
||||
ROM_LOAD( "pgm_b0101b.u10", 0x0400000, 0x400000, BAD_DUMP CRC(0d587bf3) SHA1(5347828b0a6e4ddd7a263663d2c2604407e4d49c) )
|
||||
ROM_LOAD( "pgm_b0102.u15", 0x0800000, 0x400000, CRC(43823c1e) SHA1(e10a1a9a81b51b11044934ff702e35d8d7ab1b08) )
|
||||
|
||||
ROM_REGION( 0x600000, "ics", 0 ) /* Samples - (8 bit mono 11025Hz) - */
|
||||
|
@ -200,6 +200,9 @@ MACHINE_START_MEMBER(tm990189_state,tm990_189)
|
||||
m_digits.resolve();
|
||||
m_leds.resolve();
|
||||
m_displayena_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
|
||||
m_digitsel = 0;
|
||||
m_LED_state = 0;
|
||||
}
|
||||
|
||||
MACHINE_START_MEMBER(tm990189_state,tm990_189_v)
|
||||
@ -212,6 +215,9 @@ MACHINE_START_MEMBER(tm990189_state,tm990_189_v)
|
||||
m_joy1y_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
m_joy2x_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
m_joy2y_timer = machine().scheduler().timer_alloc(timer_expired_delegate());
|
||||
|
||||
m_digitsel = 0;
|
||||
m_LED_state = 0;
|
||||
}
|
||||
|
||||
MACHINE_RESET_MEMBER(tm990189_state,tm990_189_v)
|
||||
|
@ -265,6 +265,7 @@ void argus_state::video_reset()
|
||||
void valtric_state::video_start()
|
||||
{
|
||||
/* info offset w h col row */
|
||||
m_bg_tilemap[0] = nullptr;
|
||||
m_bg_tilemap[1] = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(valtric_state::get_bg_tile_info)), TILEMAP_SCAN_COLS, 16, 16, 32, 32);
|
||||
m_tx_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(*this, FUNC(valtric_state::get_tx_tile_info<2>)), TILEMAP_SCAN_COLS, 8, 8, 32, 32);
|
||||
|
||||
|
@ -71,4 +71,7 @@ void gamecom_state::video_start()
|
||||
m_scanline_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gamecom_state::gamecom_scanline),this));
|
||||
m_scanline_timer->adjust(m_screen->time_until_pos(0), 0, m_screen->scan_period());
|
||||
m_screen->register_screen_bitmap(m_bitmap);
|
||||
|
||||
m_base_address = 0;
|
||||
m_scanline = 0;
|
||||
}
|
||||
|
@ -96,6 +96,8 @@ void suna16_state::video_start()
|
||||
m_paletteram = std::make_unique<uint16_t[]>(m_palette->entries());
|
||||
|
||||
save_item(NAME(m_color_bank));
|
||||
|
||||
m_color_bank = 0;
|
||||
}
|
||||
|
||||
uint16_t suna16_state::paletteram_r(offs_t offset)
|
||||
|
Loading…
Reference in New Issue
Block a user