summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/pce_cd.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-28 22:16:07 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-04-28 22:16:07 +0000
commit48ad06d57201b5c6c802836c6ad94f29d8484e1d (patch)
treeb5f81703454560ce0a24a3cf06997ed70408f0ee /src/mess/machine/pce_cd.c
parentb28ef72d778fb95c2452b053ac1aca2ad74d98c1 (diff)
fixed usage of uninitialized members in pce_cd_device (nw)
Diffstat (limited to 'src/mess/machine/pce_cd.c')
-rw-r--r--src/mess/machine/pce_cd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mess/machine/pce_cd.c b/src/mess/machine/pce_cd.c
index b590fc40e36..f9bd8bf5d28 100644
--- a/src/mess/machine/pce_cd.c
+++ b/src/mess/machine/pce_cd.c
@@ -201,6 +201,14 @@ void pce_cd_device::device_reset()
m_regs[0x0c] &= ~PCE_CD_ADPCM_PLAY_FLAG;
//m_regs[0x03] = (m_regs[0x03] & ~0x0c) | (PCE_CD_SAMPLE_STOP_PLAY);
m_msm_idle = 1;
+
+ m_scsi_RST = 0;
+ m_scsi_last_RST = 0;
+ m_scsi_SEL = 0;
+ m_scsi_BSY = 0;
+ m_selected = 0;
+ m_scsi_ATN = 0;
+ m_end_mark = 0;
}