fixed Visual Studio compilation and compilation in general / small r10788_device initialization cleanup (nw)

This commit is contained in:
Oliver Stöneberg 2014-12-19 17:53:24 +01:00
parent ee0573b629
commit bb652cbfec
3 changed files with 2 additions and 5 deletions

View File

@ -58,7 +58,6 @@ const device_type R10788 = &device_creator<r10788_device>;
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;

View File

@ -57,7 +57,6 @@ const device_type RA17XX = &device_creator<ra17xx_device>;
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)

View File

@ -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);
}