trunk/src/emu/cpu/upd7810/upd7810.c
r241721 | r241722 | |
567 | 567 | data = (data & ~0x02) | (m_rxd & 1 ? 0x02 : 0x00); |
568 | 568 | if (m_mcc & 0x04) /* PC2 = SCK input/output */ |
569 | 569 | data = (data & ~0x04) | (m_sck & 1 ? 0x04 : 0x00); |
570 | | if (m_mcc & 0x08) /* PC3 = TI input */ |
571 | | data = (data & ~0x08) | (m_ti & 1 ? 0x08 : 0x00); |
| 570 | if (m_mcc & 0x08) /* PC3 = TI/INT2 input */ |
| 571 | data = (data & ~0x08) | (m_int2 & 1 ? 0x08 : 0x00); |
572 | 572 | if (m_mcc & 0x10) /* PC4 = TO output */ |
573 | 573 | data = (data & ~0x10) | (m_to & 1 ? 0x10 : 0x00); |
574 | 574 | if (m_mcc & 0x20) /* PC5 = CI input */ |
r241721 | r241722 | |
648 | 648 | data = (data & ~0x02) | (m_rxd & 1 ? 0x02 : 0x00); |
649 | 649 | if (m_mcc & 0x04) /* PC2 = SCK input/output */ |
650 | 650 | data = (data & ~0x04) | (m_sck & 1 ? 0x04 : 0x00); |
651 | | if (m_mcc & 0x08) /* PC3 = TI input */ |
652 | | data = (data & ~0x08) | (m_ti & 1 ? 0x08 : 0x00); |
| 651 | if (m_mcc & 0x08) /* PC3 = TI/INT2 input */ |
| 652 | data = (data & ~0x08) | (m_int2 & 1 ? 0x08 : 0x00); |
653 | 653 | if (m_mcc & 0x10) /* PC4 = TO output */ |
654 | 654 | data = (data & ~0x10) | (m_to & 1 ? 0x10 : 0x00); |
655 | 655 | if (m_mcc & 0x20) /* PC5 = CI input */ |