misc fixes for bugs that showed up in devnoclear debug builds (nw)

This commit is contained in:
Ivan Vangelista 2020-04-07 18:03:57 +02:00
parent 0121841abf
commit dfa42a514b
8 changed files with 9 additions and 5 deletions

View File

@ -81,6 +81,7 @@ lr35902_cpu_device::lr35902_cpu_device(const machine_config &mconfig, const char
, m_IF(0)
, m_enable(0)
, m_has_halt_bug(false)
, m_dma_cycles_to_burn(0)
, m_entering_halt(false)
, m_timer_func(*this)
, m_incdec16_func(*this)
@ -137,7 +138,6 @@ inline void lr35902_cpu_device::mem_write_word( uint16_t addr, uint16_t data )
void lr35902_cpu_device::device_start()
{
m_device = this;
m_program = &space(AS_PROGRAM);
// resolve callbacks

View File

@ -108,7 +108,6 @@ protected:
uint8_t m_IF;
int m_irq_state;
bool m_handle_ei_delay;
lr35902_cpu_device *m_device;
address_space *m_program;
int m_icount;

View File

@ -53,6 +53,7 @@ ds1994_device::ds1994_device(const machine_config &mconfig, const char *tag, dev
, m_rx(false)
, m_tx(false)
, m_state_ptr(0)
, m_offs_ro(false)
{
memset(m_ram, 0, sizeof(m_ram));
}

View File

@ -118,6 +118,7 @@ void tc0091lvc_device::banked_map(address_map &map)
tc0091lvc_device::tc0091lvc_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock)
: device_t(mconfig, TC0091LVC, tag, owner, clock)
, device_gfx_interface(mconfig, *this, gfxinfo, "palette")
, m_irq_enable(0)
, m_bankdev(*this, "bankdev_%u", 0U)
, m_vram(*this, "vram")
, m_bitmap_ram(*this, "bitmap_ram")

View File

@ -645,7 +645,7 @@ void at_state::at486(machine_config &config)
maincpu.set_addrmap(AS_IO, &at_state::at32_io);
maincpu.set_irq_acknowledge_callback("mb:pic8259_master", FUNC(pic8259_device::inta_cb));
AT_MB(config, m_mb, 0).at_softlists(config);
AT_MB(config, m_mb, 0).at_softlists(config);
config.set_maximum_quantum(attotime::from_hz(60));

View File

@ -438,7 +438,7 @@ ROM_START( megaphx )
ROM_REGION( 0x100000, "pic", 0 )
ROM_LOAD( "pic16c54-xt.bin", 0x000000, 0x430, CRC(21f396fb) SHA1(c8badb9b3681e684bced0ced1de4c3a15641de8b) )
ROM_FILL(0x2c, 1, 0x01) // patch timer length or its too slow (pic issue?)
ROM_FILL(0x2c, 1, 0x01) // patch timer length or it's too slow (pic issue?)
ROM_REGION( 0x1000, "pals", 0 ) // protected
ROM_LOAD( "p31_u31_palce16v8h-25.jed", 0x000, 0xbd4, BAD_DUMP CRC(05ef04b7) SHA1(330dd81a832b6675fb0473868c26fe9bec2da854) )
@ -469,7 +469,7 @@ ROM_START( hamboy )
ROM_REGION( 0x100000, "pic", 0 )
ROM_LOAD( "pic16c54-xt.bin", 0x000000, 0x430, CRC(21f396fb) SHA1(c8badb9b3681e684bced0ced1de4c3a15641de8b) )
ROM_FILL(0x2c, 1, 0x01) // patch timer length or its too slow (pic issue?)
ROM_FILL(0x2c, 1, 0x01) // patch timer length or it's too slow (pic issue?)
ROM_END
GAME( 1991, megaphx, 0, megaphx, megaphx, megaphx_state, empty_init, ROT0, "Dinamic / Inder", "Mega Phoenix", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND )

View File

@ -191,4 +191,6 @@ void inder_sb_device::device_start()
void inder_sb_device::device_reset()
{
m_soundsent = 0;
m_soundback = 0;
}

View File

@ -24,6 +24,7 @@ taito_sj_security_mcu_device::taito_sj_security_mcu_device(
, m_read_data(0U)
, m_zaccept(false)
, m_zready(false)
, m_pa_val(0U)
, m_pb_val(0U)
, m_busak(false)
, m_reset(false)