diff options
author | 2021-04-20 21:01:55 +0200 | |
---|---|---|
committer | 2021-04-20 21:02:21 +0200 | |
commit | 5c3ded77a778232ffc8c9fd31bbd5cd902a3046d (patch) | |
tree | 32a315027ba208c14f97b0846b5ac4bbcfc6f76c /src | |
parent | eab35a4470be71b7bff1dc77941ae676818d1db8 (diff) |
ibm5170: fix validity error
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/machine/chessmachine.cpp | 4 | ||||
-rw-r--r-- | src/devices/machine/chessmachine.h | 4 | ||||
-rw-r--r-- | src/devices/machine/smartboard.cpp | 7 |
3 files changed, 2 insertions, 13 deletions
diff --git a/src/devices/machine/chessmachine.cpp b/src/devices/machine/chessmachine.cpp index 08e45ebb581..cd80fce19e5 100644 --- a/src/devices/machine/chessmachine.cpp +++ b/src/devices/machine/chessmachine.cpp @@ -62,10 +62,6 @@ void chessmachine_device::device_start() // resolve callbacks m_data_out.resolve_safe(); - // zerofill - m_bootrom_enabled = false; - m_latch[0] = m_latch[1] = 0; - // register for savestates save_item(NAME(m_bootrom_enabled)); save_item(NAME(m_latch)); diff --git a/src/devices/machine/chessmachine.h b/src/devices/machine/chessmachine.h index db670ff8dc6..b1a11b459f1 100644 --- a/src/devices/machine/chessmachine.h +++ b/src/devices/machine/chessmachine.h @@ -46,11 +46,11 @@ private: devcb_write_line m_data_out; - u8 m_latch[2]; + u8 m_latch[2] = { 0, 0 }; void sync0_callback(void *ptr, s32 param); void sync1_callback(void *ptr, s32 param); - bool m_bootrom_enabled; + bool m_bootrom_enabled = false; void install_bootrom(bool enable); TIMER_DEVICE_CALLBACK_MEMBER(disable_bootrom) { install_bootrom(false); } u32 disable_bootrom_r(); diff --git a/src/devices/machine/smartboard.cpp b/src/devices/machine/smartboard.cpp index 674568c5365..fe1dc0b5d08 100644 --- a/src/devices/machine/smartboard.cpp +++ b/src/devices/machine/smartboard.cpp @@ -58,16 +58,9 @@ enum SB30_BLACK_PAWN8 }; -//************************************************************************** -// DEVICE DEFINITIONS -//************************************************************************** DEFINE_DEVICE_TYPE(TASC_SB30, tasc_sb30_device, "tasc_sb30", "Tasc SmartBoard SB30") -//************************************************************************** -// LIVE DEVICE -//************************************************************************** - //------------------------------------------------- // tasc_sb30_device - constructor //------------------------------------------------- |