Previous 199869 Revisions Next

r17714 Saturday 8th September, 2012 at 09:45:27 UTC by Curt Coder
(MESS) c128: Fixed extended keyboard line reading. (nw)
[src/mess/machine]c128.c
[src/mess/video]mos6566.h

trunk/src/mess/machine/c128.c
r17713r17714
135135
136136static READ8_DEVICE_HANDLER( c128_cia0_port_b_r )
137137{
138//   c128_state *state = device->machine().driver_data<c128_state>();
138   c128_state *state = device->machine().driver_data<c128_state>();
139139   UINT8 value = 0xff;
140140   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);
142143
143144   value &= cbm_common_cia0_port_b_r(device, cia0porta);
144/*
145   if (!vic2e->k0_r())
145
146   if (!intf->k0_r())
146147      value &= state->m_keyline[0];
147   if (!vic2e->k1_r())
148   if (!intf->k1_r())
148149      value &= state->m_keyline[1];
149   if (!vic2e->k2_r())
150   if (!intf->k2_r())
150151      value &= state->m_keyline[2];
151*/
152
152153   return value;
153154}
154155
trunk/src/mess/video/mos6566.h
r17713r17714
477477    mos8562_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
478478};
479479
480class vic2e_device_interface
481{
482public:
483   vic2e_device_interface() {}
484   virtual ~vic2e_device_interface() {}
480485
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
481492// ======================> mos8564_device
482493
483class mos8564_device :  public mos6567_device
494class mos8564_device :  public mos6567_device, public vic2e_device_interface
484495{
485496public:
486497    // construction/destruction
r17713r17714
518529
519530// ======================> mos8566_device
520531
521class mos8566_device :  public mos6569_device
532class mos8566_device :  public mos6569_device, public vic2e_device_interface
522533{
523534public:
524535    // construction/destruction

Previous 199869 Revisions Next


© 1997-2024 The MAME Team