trunk/src/mess/machine/c128.c
| r17713 | r17714 | |
| 135 | 135 | |
| 136 | 136 | static READ8_DEVICE_HANDLER( c128_cia0_port_b_r ) |
| 137 | 137 | { |
| 138 | | // c128_state *state = device->machine().driver_data<c128_state>(); |
| 138 | c128_state *state = device->machine().driver_data<c128_state>(); |
| 139 | 139 | UINT8 value = 0xff; |
| 140 | 140 | UINT8 cia0porta = mos6526_pa_r(device->machine().device("cia_0"), 0); |
| 141 | | //device_t *vic2e = device->machine().device("vic2e"); |
| 141 | device_t *vic2e = device->machine().device("vic2e"); |
| 142 | vic2e_device_interface *intf = dynamic_cast<vic2e_device_interface*>(vic2e); |
| 142 | 143 | |
| 143 | 144 | value &= cbm_common_cia0_port_b_r(device, cia0porta); |
| 144 | | /* |
| 145 | | if (!vic2e->k0_r()) |
| 145 | |
| 146 | if (!intf->k0_r()) |
| 146 | 147 | value &= state->m_keyline[0]; |
| 147 | | if (!vic2e->k1_r()) |
| 148 | if (!intf->k1_r()) |
| 148 | 149 | value &= state->m_keyline[1]; |
| 149 | | if (!vic2e->k2_r()) |
| 150 | if (!intf->k2_r()) |
| 150 | 151 | value &= state->m_keyline[2]; |
| 151 | | */ |
| 152 | |
| 152 | 153 | return value; |
| 153 | 154 | } |
| 154 | 155 | |
trunk/src/mess/video/mos6566.h
| r17713 | r17714 | |
| 477 | 477 | mos8562_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 478 | 478 | }; |
| 479 | 479 | |
| 480 | class vic2e_device_interface |
| 481 | { |
| 482 | public: |
| 483 | vic2e_device_interface() {} |
| 484 | virtual ~vic2e_device_interface() {} |
| 480 | 485 | |
| 486 | virtual DECLARE_READ_LINE_MEMBER( k0_r ) { return 1; } |
| 487 | virtual DECLARE_READ_LINE_MEMBER( k1_r ) { return 1; } |
| 488 | virtual DECLARE_READ_LINE_MEMBER( k2_r ) { return 1; } |
| 489 | }; |
| 490 | |
| 491 | |
| 481 | 492 | // ======================> mos8564_device |
| 482 | 493 | |
| 483 | | class mos8564_device : public mos6567_device |
| 494 | class mos8564_device : public mos6567_device, public vic2e_device_interface |
| 484 | 495 | { |
| 485 | 496 | public: |
| 486 | 497 | // construction/destruction |
| r17713 | r17714 | |
| 518 | 529 | |
| 519 | 530 | // ======================> mos8566_device |
| 520 | 531 | |
| 521 | | class mos8566_device : public mos6569_device |
| 532 | class mos8566_device : public mos6569_device, public vic2e_device_interface |
| 522 | 533 | { |
| 523 | 534 | public: |
| 524 | 535 | // construction/destruction |