summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/adam_kb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mess/machine/adam_kb.c')
-rw-r--r--src/mess/machine/adam_kb.c88
1 files changed, 44 insertions, 44 deletions
diff --git a/src/mess/machine/adam_kb.c b/src/mess/machine/adam_kb.c
index bfbceb1b37c..509f3ab1a55 100644
--- a/src/mess/machine/adam_kb.c
+++ b/src/mess/machine/adam_kb.c
@@ -261,18 +261,18 @@ READ8_MEMBER( adam_keyboard_device::p1_r )
{
/*
- bit description
+ bit description
- 0 X0
- 1 X1
- 2 X2
- 3 X3
- 4 X4
- 5 X5
- 6 X6
- 7 X7
+ 0 X0
+ 1 X1
+ 2 X2
+ 3 X3
+ 4 X4
+ 5 X5
+ 6 X6
+ 7 X7
- */
+ */
UINT8 data = 0xff;
@@ -302,15 +302,15 @@ READ8_MEMBER( adam_keyboard_device::p2_r )
{
/*
- bit description
+ bit description
- 0 mode bit 0
- 1 mode bit 1
- 2 mode bit 2
- 3 NET RXD
- 4
+ 0 mode bit 0
+ 1 mode bit 1
+ 2 mode bit 2
+ 3 NET RXD
+ 4
- */
+ */
UINT8 data = M6801_MODE_7;
@@ -329,15 +329,15 @@ WRITE8_MEMBER( adam_keyboard_device::p2_w )
{
/*
- bit description
+ bit description
- 0
- 1
- 2
- 3
- 4 NET TXD
+ 0
+ 1
+ 2
+ 3
+ 4 NET TXD
- */
+ */
m_bus->txd_w(this, BIT(data, 4));
}
@@ -361,18 +361,18 @@ WRITE8_MEMBER( adam_keyboard_device::p3_w )
{
/*
- bit description
+ bit description
- 0 Y0
- 1 Y1
- 2 Y2
- 3 Y3
- 4 Y4
- 5 Y5
- 6 Y6
- 7 Y7
+ 0 Y0
+ 1 Y1
+ 2 Y2
+ 3 Y3
+ 4 Y4
+ 5 Y5
+ 6 Y6
+ 7 Y7
- */
+ */
m_key_y = (m_key_y & 0x1f00) | data;
}
@@ -396,18 +396,18 @@ WRITE8_MEMBER( adam_keyboard_device::p4_w )
{
/*
- bit description
+ bit description
- 0 Y8
- 1 Y9
- 2 Y10
- 3 Y11
- 4 Y12
- 5
- 6
- 7
+ 0 Y8
+ 1 Y9
+ 2 Y10
+ 3 Y11
+ 4 Y12
+ 5
+ 6
+ 7
- */
+ */
m_key_y = ((data & 0x1f) << 8) | (m_key_y & 0xff);
}