summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2020-04-07 18:03:57 +0200
committer Ivan Vangelista <mesgnet@yahoo.it>2020-04-07 18:03:57 +0200
commitdfa42a514b58769d56dee5ec033d7b8a2b65134c (patch)
tree2556f3b5836b92d5d057293cbb48a1bbbd7d5005 /src
parent0121841abf14214a21416f39ebe917751cabafcd (diff)
misc fixes for bugs that showed up in devnoclear debug builds (nw)
Diffstat (limited to 'src')
-rw-r--r--src/devices/cpu/lr35902/lr35902.cpp2
-rw-r--r--src/devices/cpu/lr35902/lr35902.h1
-rw-r--r--src/devices/machine/ds1994.cpp1
-rw-r--r--src/devices/machine/tc009xlvc.cpp1
-rw-r--r--src/mame/drivers/at.cpp2
-rw-r--r--src/mame/drivers/megaphx.cpp4
-rw-r--r--src/mame/machine/inder_sb.cpp2
-rw-r--r--src/mame/machine/taitosjsec.cpp1
8 files changed, 9 insertions, 5 deletions
diff --git a/src/devices/cpu/lr35902/lr35902.cpp b/src/devices/cpu/lr35902/lr35902.cpp
index 59b8b45f601..452c96f3b8b 100644
--- a/src/devices/cpu/lr35902/lr35902.cpp
+++ b/src/devices/cpu/lr35902/lr35902.cpp
@@ -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
diff --git a/src/devices/cpu/lr35902/lr35902.h b/src/devices/cpu/lr35902/lr35902.h
index db950b6b48c..f723213137c 100644
--- a/src/devices/cpu/lr35902/lr35902.h
+++ b/src/devices/cpu/lr35902/lr35902.h
@@ -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;
diff --git a/src/devices/machine/ds1994.cpp b/src/devices/machine/ds1994.cpp
index 5bd8a7024ca..c8da607c35c 100644
--- a/src/devices/machine/ds1994.cpp
+++ b/src/devices/machine/ds1994.cpp
@@ -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));
}
diff --git a/src/devices/machine/tc009xlvc.cpp b/src/devices/machine/tc009xlvc.cpp
index a3553414d88..a98aa4a2ab4 100644
--- a/src/devices/machine/tc009xlvc.cpp
+++ b/src/devices/machine/tc009xlvc.cpp
@@ -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")
diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp
index 8cf3b5d42b6..552d752ff94 100644
--- a/src/mame/drivers/at.cpp
+++ b/src/mame/drivers/at.cpp
@@ -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));
diff --git a/src/mame/drivers/megaphx.cpp b/src/mame/drivers/megaphx.cpp
index 03a671239c1..93f6de3af1c 100644
--- a/src/mame/drivers/megaphx.cpp
+++ b/src/mame/drivers/megaphx.cpp
@@ -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 )
diff --git a/src/mame/machine/inder_sb.cpp b/src/mame/machine/inder_sb.cpp
index 871c0e0df14..cd6465e1140 100644
--- a/src/mame/machine/inder_sb.cpp
+++ b/src/mame/machine/inder_sb.cpp
@@ -191,4 +191,6 @@ void inder_sb_device::device_start()
void inder_sb_device::device_reset()
{
+ m_soundsent = 0;
+ m_soundback = 0;
}
diff --git a/src/mame/machine/taitosjsec.cpp b/src/mame/machine/taitosjsec.cpp
index dd5a6267812..cd8c5ce12c4 100644
--- a/src/mame/machine/taitosjsec.cpp
+++ b/src/mame/machine/taitosjsec.cpp
@@ -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)