Previous 15994 Revisions Next

r5150 Sunday 5th July, 2009 at 10:16:00 UTC by Curt Coder
[ABC80] Fixed keyboard.
[src/mess/drivers]abc80.c

src/mess/drivers/abc80.c
r5149r5150
201201      {
202202         if (BIT(data, col))
203203         {
204            /* latch key data */
205            state->key_data = abc80_keycodes[row + (table * 7)][col];
204            UINT8 keydata = abc80_keycodes[row + (table * 7)][col];
206205
207            /* set key strobe */
208            state->key_strobe = 1;
206            if (state->key_data != keydata)
207            {
208               UINT8 pio_data = 0x80 | keydata;
209
210               /* latch key data */
211               state->key_data = keydata;
212
213               /* set key strobe */
214               state->key_strobe = 1;
215
216               z80pio_p_w(state->z80pio, 0, pio_data);
217
218               return;
219            }
209220         }
210221      }
211222   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team