summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-11-19 08:40:08 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-11-19 08:40:08 +0000
commit8813fb6bcd7f44f308e0c4350231d536ccd032d6 (patch)
treebf50f0b04ee4e4c617773687fa1195981f9dc216 /src/mess/machine
parentd60236970a2d1ac8e78e1b108100d9a4ccb33b8c (diff)
Cleanups and version bump (nw)mame0147u3
Diffstat (limited to 'src/mess/machine')
-rw-r--r--src/mess/machine/adam_ddp.c68
-rw-r--r--src/mess/machine/adam_fdc.c68
-rw-r--r--src/mess/machine/adam_ide.c48
-rw-r--r--src/mess/machine/adam_kb.c88
-rw-r--r--src/mess/machine/adam_prn.c92
-rw-r--r--src/mess/machine/adam_spi.c28
-rw-r--r--src/mess/machine/adamlink.c2
7 files changed, 197 insertions, 197 deletions
diff --git a/src/mess/machine/adam_ddp.c b/src/mess/machine/adam_ddp.c
index e46cf3d31de..a25c0e67414 100644
--- a/src/mess/machine/adam_ddp.c
+++ b/src/mess/machine/adam_ddp.c
@@ -166,18 +166,18 @@ WRITE8_MEMBER( adam_digital_data_pack_device::p1_w )
{
/*
- bit description
+ bit description
- 0 SPD SEL (0=20 ips, 1=80ips)
- 1 STOP0
- 2 STOP1
- 3 _GO FWD
- 4 _GO REV
- 5 BRAKE
- 6 _WR0
- 7 _WR1
+ 0 SPD SEL (0=20 ips, 1=80ips)
+ 1 STOP0
+ 2 STOP1
+ 3 _GO FWD
+ 4 _GO REV
+ 5 BRAKE
+ 6 _WR0
+ 7 _WR1
- */
+ */
if (m_ddp0->exists())
{
@@ -211,15 +211,15 @@ READ8_MEMBER( adam_digital_data_pack_device::p2_r )
{
/*
- bit description
+ bit description
- 0 mode bit 0
- 1 mode bit 1 / CIP1
- 2 mode bit 2
- 3 NET RXD
- 4
+ 0 mode bit 0
+ 1 mode bit 1 / CIP1
+ 2 mode bit 2
+ 3 NET RXD
+ 4
- */
+ */
UINT8 data = 0;
@@ -243,15 +243,15 @@ WRITE8_MEMBER( adam_digital_data_pack_device::p2_w )
{
/*
- bit description
+ bit description
- 0 WRT DATA
- 1
- 2 TRACK A/B (0=B, 1=A)
- 3
- 4 NET TXD
+ 0 WRT DATA
+ 1
+ 2 TRACK A/B (0=B, 1=A)
+ 3
+ 4 NET TXD
- */
+ */
if (m_ddp0->exists())
{
@@ -278,18 +278,18 @@ READ8_MEMBER( adam_digital_data_pack_device::p4_r )
{
/*
- bit description
+ bit description
- 0 A8
- 1 A9
- 2 A10 (2114 _S)
- 3 MSENSE 0
- 4 MSENSE 1
- 5 CIP0
- 6 RD DATA 0 (always 1)
- 7 RD DATA 1 (data from drives ORed together)
+ 0 A8
+ 1 A9
+ 2 A10 (2114 _S)
+ 3 MSENSE 0
+ 4 MSENSE 1
+ 5 CIP0
+ 6 RD DATA 0 (always 1)
+ 7 RD DATA 1 (data from drives ORed together)
- */
+ */
UINT8 data = 0;
diff --git a/src/mess/machine/adam_fdc.c b/src/mess/machine/adam_fdc.c
index 2b903d3e063..39c49e4aa58 100644
--- a/src/mess/machine/adam_fdc.c
+++ b/src/mess/machine/adam_fdc.c
@@ -215,18 +215,18 @@ READ8_MEMBER( adam_fdc_device::p1_r )
{
/*
- bit description
+ bit description
- 0 disk in place
- 1
- 2 FDC DRQ
- 3
- 4
- 5
- 6
- 7 SW3 (0=DS1, 1=DS2)
+ 0 disk in place
+ 1
+ 2 FDC DRQ
+ 3
+ 4
+ 5
+ 6
+ 7 SW3 (0=DS1, 1=DS2)
- */
+ */
UINT8 data = 0;
@@ -251,18 +251,18 @@ WRITE8_MEMBER( adam_fdc_device::p1_w )
{
/*
- bit description
+ bit description
- 0
- 1 FDC ENP
- 2
- 3 FDC _DDEN
- 4
- 5 DRIVE SELECT
- 6 MOTOR ON
- 7
+ 0
+ 1 FDC ENP
+ 2
+ 3 FDC _DDEN
+ 4
+ 5 DRIVE SELECT
+ 6 MOTOR ON
+ 7
- */
+ */
// write precompensation
//m_fdc->enp_w(BIT(data, 1));
@@ -293,15 +293,15 @@ READ8_MEMBER( adam_fdc_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_2;
@@ -320,15 +320,15 @@ WRITE8_MEMBER( adam_fdc_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));
}
diff --git a/src/mess/machine/adam_ide.c b/src/mess/machine/adam_ide.c
index c2e98989c6f..0b611c531b7 100644
--- a/src/mess/machine/adam_ide.c
+++ b/src/mess/machine/adam_ide.c
@@ -9,11 +9,11 @@
/*
- TODO:
+ TODO:
- - parallel status port
- - memory bank switching port
- - boot ROM
+ - parallel status port
+ - memory bank switching port
+ - boot ROM
*/
@@ -126,35 +126,35 @@ UINT8 powermate_ide_device::adam_bd_r(address_space &space, offs_t offset, UINT8
case 0x40: // Printer status
/*
-
- bit description
-
- 0
- 1
- 2
- 3
- 4
- 5
- 6
- 7
-
- */
+
+ bit description
+
+ 0
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+
+ */
break;
-
+
case 0x58:
m_ide_data = ide_bus_r(m_ide, 0, 0);
data = m_ide_data & 0xff;
break;
-
+
case 0x59:
data = m_ide_data >> 8;
break;
-
+
case 0x5a:
data = ide_bus_r(m_ide, 1, 6) & 0xff;
break;
-
+
case 0x5b: // Digital Input Register
data = 0xff;
break;
@@ -190,16 +190,16 @@ void powermate_ide_device::adam_bd_w(address_space &space, offs_t offset, UINT8
case 0x42: // Bank Number
break;
-
+
case 0x58:
m_ide_data |= data;
ide_bus_w(m_ide, 0, 0, m_ide_data);
break;
-
+
case 0x59:
m_ide_data = data << 8;
break;
-
+
case 0x5a: // Fixed Disk Control Register
break;
}
diff --git a/src/mess/machine/adam_kb.c b/src/mess/machine/adam_kb.c
index 509f3ab1a55..bfbceb1b37c 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);
}
diff --git a/src/mess/machine/adam_prn.c b/src/mess/machine/adam_prn.c
index 84abf050eac..3d76c9ee778 100644
--- a/src/mess/machine/adam_prn.c
+++ b/src/mess/machine/adam_prn.c
@@ -136,18 +136,18 @@ WRITE8_MEMBER( adam_printer_device::p1_w )
{
/*
- bit description
-
- 0 M2 phase D
- 1 M2 phase B
- 2 M2 phase C
- 3 M2 phase A
- 4 M3 phase B
- 5 M3 phase D
- 6 M3 phase A
- 7 M3 phase C
-
- */
+ bit description
+
+ 0 M2 phase D
+ 1 M2 phase B
+ 2 M2 phase C
+ 3 M2 phase A
+ 4 M3 phase B
+ 5 M3 phase D
+ 6 M3 phase A
+ 7 M3 phase C
+
+ */
}
@@ -159,15 +159,15 @@ READ8_MEMBER( adam_printer_device::p2_r )
{
/*
- bit description
+ bit description
- 0 mode bit 0
- 1 mode bit 1
- 2 mode bit 2
- 3 NET RXD
- 4 NET TXD
+ 0 mode bit 0
+ 1 mode bit 1
+ 2 mode bit 2
+ 3 NET RXD
+ 4 NET TXD
- */
+ */
UINT8 data = M6801_MODE_7;
@@ -186,15 +186,15 @@ WRITE8_MEMBER( adam_printer_device::p2_w )
{
/*
- bit description
+ bit description
- 0 mode bit 0
- 1 mode bit 1
- 2 mode bit 2
- 3 NET RXD
- 4 NET TXD
+ 0 mode bit 0
+ 1 mode bit 1
+ 2 mode bit 2
+ 3 NET RXD
+ 4 NET TXD
- */
+ */
m_bus->txd_w(this, BIT(data, 4));
}
@@ -218,18 +218,18 @@ READ8_MEMBER( adam_printer_device::p4_r )
{
/*
- bit description
+ bit description
- 0
- 1
- 2
- 3
- 4 left margin
- 5 platen detent
- 6 wheel home
- 7 self-test
+ 0
+ 1
+ 2
+ 3
+ 4 left margin
+ 5 platen detent
+ 6 wheel home
+ 7 self-test
- */
+ */
return 0x80;
}
@@ -243,16 +243,16 @@ WRITE8_MEMBER( adam_printer_device::p4_w )
{
/*
- bit description
+ bit description
- 0 print hammer solenoid
- 1 ribbon advance solenoid
- 2 platen motor advance
- 3 platen motor break
- 4
- 5
- 6
- 7
+ 0 print hammer solenoid
+ 1 ribbon advance solenoid
+ 2 platen motor advance
+ 3 platen motor break
+ 4
+ 5
+ 6
+ 7
- */
+ */
}
diff --git a/src/mess/machine/adam_spi.c b/src/mess/machine/adam_spi.c
index 0e004e000cc..4d4ffd826fd 100644
--- a/src/mess/machine/adam_spi.c
+++ b/src/mess/machine/adam_spi.c
@@ -134,15 +134,15 @@ READ8_MEMBER( adam_spi_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;
@@ -161,15 +161,15 @@ WRITE8_MEMBER( adam_spi_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));
}
diff --git a/src/mess/machine/adamlink.c b/src/mess/machine/adamlink.c
index 0d63111011c..07dba5fa09a 100644
--- a/src/mess/machine/adamlink.c
+++ b/src/mess/machine/adamlink.c
@@ -77,7 +77,7 @@ void adamlink_device::adam_bd_w(address_space &space, offs_t offset, UINT8 data,
{
case 0x5e:
break;
-
+
case 0x5f:
break;
}