diff --git a/src/emu/machine/r10788.c b/src/emu/machine/r10788.c index b6c79be11f4..10f46ab621a 100644 --- a/src/emu/machine/r10788.c +++ b/src/emu/machine/r10788.c @@ -58,7 +58,6 @@ const device_type R10788 = &device_creator; r10788_device::r10788_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, R10788, "Rockwell 10788", tag, owner, clock, "r10788", __FILE__), - m_reg(), m_ktr(0), m_kts(0), m_kla(0), m_klb(0), m_mask_a(15), m_mask_b(15), m_ker(0), m_io_counter(0), m_scan_counter(0), m_display(*this) @@ -93,8 +92,7 @@ void r10788_device::device_start() */ void r10788_device::device_reset() { - for (int i = 0; i < 16; i++) - m_reg[0][i] = m_reg[1][i] = 0; + memset(m_reg, 0x00, sizeof(m_reg)); m_ktr = 0; m_kts = 0; m_kla = 0; diff --git a/src/emu/machine/ra17xx.c b/src/emu/machine/ra17xx.c index 0e474ee5d36..0869016e562 100644 --- a/src/emu/machine/ra17xx.c +++ b/src/emu/machine/ra17xx.c @@ -57,7 +57,6 @@ const device_type RA17XX = &device_creator; ra17xx_device::ra17xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, RA17XX, "Rockwell A17XX", tag, owner, clock, "ra17xx", __FILE__), - m_line(), m_enable(false), m_iord(*this), m_iowr(*this) diff --git a/src/mame/drivers/barata.c b/src/mame/drivers/barata.c index e4249af0e92..4db4d4ab506 100644 --- a/src/mame/drivers/barata.c +++ b/src/mame/drivers/barata.c @@ -261,7 +261,7 @@ static void fpga_send(unsigned char cmd){ WRITE8_MEMBER(barata_state::fpga_w) { static unsigned char old_data = 0; - if (!BIT(old_data, 5) and BIT(data, 5)){ + if (!BIT(old_data, 5) && BIT(data, 5)){ //process the command sent to the FPGA fpga_send((data >> 2) & 7); }