mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
fix build (nw)
This commit is contained in:
parent
0f361b73b0
commit
c9dd10f1d9
@ -116,7 +116,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
uint8_t m_kbdclk, m_kbdread, m_kbdport2, m_kbdrow, m_kbdcol;
|
uint8_t m_kbdclk, m_kbdread, m_kbdport2;
|
||||||
required_device<palette_device> m_palette;
|
required_device<palette_device> m_palette;
|
||||||
required_shared_ptr<u8> m_vram;
|
required_shared_ptr<u8> m_vram;
|
||||||
required_region_ptr<u8> m_gfx;
|
required_region_ptr<u8> m_gfx;
|
||||||
@ -175,8 +175,6 @@ WRITE8_MEMBER(alphatpx_state::kbd_matrix_w)
|
|||||||
int rd_masks[8] = { 1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80 };
|
int rd_masks[8] = { 1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80 };
|
||||||
int tmp_read;
|
int tmp_read;
|
||||||
|
|
||||||
// printf("matrix_w: %02x (col %d row %d clk %d)\n", data, m_kbdcol, m_kbdrow, (data & 0x80) ? 1 : 0);
|
|
||||||
|
|
||||||
if ((data & 0x80) && (!m_kbdclk))
|
if ((data & 0x80) && (!m_kbdclk))
|
||||||
{
|
{
|
||||||
tmp_read = m_keycols[(data >> 3) & 0xf]->read() & rd_masks[data & 0x7];
|
tmp_read = m_keycols[(data >> 3) & 0xf]->read() & rd_masks[data & 0x7];
|
||||||
|
Loading…
Reference in New Issue
Block a user