src/emu/machine/6526cia.c
| r5646 | r5647 | |
| 663 | 663 | port = &cia->port[offset & 1]; |
| 664 | 664 | data = devcb_call_read8(&port->read, 0); |
| 665 | 665 | data = ((data & ~port->ddr) | (port->latch & port->ddr)) & port->mask_value; |
| 666 | |
| 666 | 667 | port->in = data; |
| 667 | 668 | |
| 668 | 669 | if (offset == CIA_PRB) |
| r5646 | r5647 | |
| 762 | 763 | data = timer->mode; |
| 763 | 764 | break; |
| 764 | 765 | } |
| 766 | |
| 765 | 767 | return data; |
| 766 | 768 | } |
| 767 | 769 | |
| r5646 | r5647 | |
| 891 | 893 | |
| 892 | 894 | |
| 893 | 895 | |
| 894 | | UINT8 cia_get_output_a(const device_config *device) { return get_token(device)->port[0].out; } |
| 895 | | UINT8 cia_get_output_b(const device_config *device) { return get_token(device)->port[1].out; } |
| 896 | UINT8 cia_get_output_a(const device_config *device) { return (get_token(device)->port[0].latch | ~get_token(device)->port[0].ddr); } |
| 897 | UINT8 cia_get_output_b(const device_config *device) { return (get_token(device)->port[1].latch | ~get_token(device)->port[1].ddr); } |
| 896 | 898 | int cia_get_irq(const device_config *device) { return get_token(device)->irq; } |
| 897 | 899 | |
| 898 | 900 | |