Previous 15994 Revisions Next

r14737 Saturday 10th March, 2012 at 19:23:15 UTC by Wilbert Pol
Some more && -> & cases found by clang. (nw)
[src/emu/machine]ins8250.c

src/emu/machine/ins8250.c
r14736r14737
284284            else
285285            {
286286               m_out_dtr_func(m_regs.mcr & 1);
287               m_out_rts_func((m_regs.mcr & 2) && 1);
288               m_out_out1_func((m_regs.mcr & 4) && 1);
289               m_out_out2_func((m_regs.mcr & 8) && 1);
287               m_out_rts_func(m_regs.mcr & 2);
288               m_out_out1_func(m_regs.mcr & 4);
289               m_out_out2_func(m_regs.mcr & 8);
290290            }
291291         }
292292            break;
r14736r14737
476476
477477WRITE_LINE_MEMBER(ins8250_uart_device::dcd_w)
478478{
479   update_msr(3, (state&&1));
479   update_msr(3, (state&1));
480480}
481481
482482WRITE_LINE_MEMBER(ins8250_uart_device::dsr_w)
483483{
484   update_msr(1, (state&&1));
484   update_msr(1, (state&1));
485485}
486486
487487WRITE_LINE_MEMBER(ins8250_uart_device::ri_w)
488488{
489   update_msr(2, (state&&1));
489   update_msr(2, (state&1));
490490}
491491
492492WRITE_LINE_MEMBER(ins8250_uart_device::cts_w)
493493{
494   update_msr(0, (state&&1));
494   update_msr(0, (state&1));
495495}
496496
497497void ins8250_uart_device::device_start()

Previous 15994 Revisions Next


© 1998-2018 The MESS Team