summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine')
-rw-r--r--src/emu/machine/at28c16.c12
-rw-r--r--src/emu/machine/latch8.c16
-rw-r--r--src/emu/machine/latch8.h16
3 files changed, 22 insertions, 22 deletions
diff --git a/src/emu/machine/at28c16.c b/src/emu/machine/at28c16.c
index 57e8a1513d9..3a1354e4919 100644
--- a/src/emu/machine/at28c16.c
+++ b/src/emu/machine/at28c16.c
@@ -50,11 +50,11 @@ WRITE8_DEVICE_HANDLER( at28c16_w )
if( c->last_write >= 0 )
{
-// logerror( "%08x: at28c16_write( %d, %04x, %02x ) busy\n", activecpu_get_pc(), chip, offset, data );
+// logerror( "%08x: at28c16_write( %d, %04x, %02x ) busy\n", activecpu_get_pc(), chip, offset, data );
}
else if( c->oe_12v )
{
-// logerror( "%08x: at28c16_write( %d, %04x, %02x ) erase\n", activecpu_get_pc(), chip, offset, data );
+// logerror( "%08x: at28c16_write( %d, %04x, %02x ) erase\n", activecpu_get_pc(), chip, offset, data );
memset( c->data, 0xff, SIZE_DATA );
memset( c->id, 0xff, SIZE_ID );
c->last_write = 0xff;
@@ -62,7 +62,7 @@ WRITE8_DEVICE_HANDLER( at28c16_w )
}
else if( offset >= OFFSET_ID && c->a9_12v )
{
-// logerror( "%08x: at28c16_write( %d, %04x, %02x ) id\n", activecpu_get_pc(), chip, offset, data );
+// logerror( "%08x: at28c16_write( %d, %04x, %02x ) id\n", activecpu_get_pc(), chip, offset, data );
c->id[ offset - OFFSET_ID ] = data;
c->last_write = data;
timer_adjust_oneshot( c->write_timer, ATTOTIME_IN_USEC( 200 ), 0 );
@@ -83,12 +83,12 @@ READ8_DEVICE_HANDLER( at28c16_r )
if( c->last_write >= 0 )
{
-// logerror( "at28c16_read( %04x ) write status\n", offset );
+// logerror( "at28c16_read( %04x ) write status\n", offset );
return c->last_write ^ 0x80;
}
else if( offset >= OFFSET_ID && c->a9_12v )
{
-// logerror( "at28c16_read( %04x ) id\n", offset );
+// logerror( "at28c16_read( %04x ) id\n", offset );
return c->id[ offset - OFFSET_ID ];
}
else
@@ -124,7 +124,7 @@ static DEVICE_START(at28c16)
/* validate some basic stuff */
assert(device != NULL);
-// assert(device->static_config != NULL);
+// assert(device->static_config != NULL);
assert(device->inline_config == NULL);
assert(device->machine != NULL);
assert(device->machine->config != NULL);
diff --git a/src/emu/machine/latch8.c b/src/emu/machine/latch8.c
index 5c3d10b8e01..5900a48ab53 100644
--- a/src/emu/machine/latch8.c
+++ b/src/emu/machine/latch8.c
@@ -35,7 +35,7 @@ static void update(const device_config *device, UINT8 new_val, UINT8 mask)
{
latch8_t *latch8 = get_safe_token(device);
UINT8 old_val = latch8->value;
-
+
latch8->value = (latch8->value & ~mask) | (new_val & mask);
if (latch8->has_node_map)
@@ -53,7 +53,7 @@ static TIMER_CALLBACK( latch8_timerproc )
const device_config *device = ptr;
UINT8 new_val = param & 0xFF;
UINT8 mask = param >> 8;
-
+
update(device, new_val, mask);
}
@@ -63,7 +63,7 @@ READ8_DEVICE_HANDLER( latch8_r )
{
latch8_t *latch8 = get_safe_token(device);
UINT8 res;
-
+
assert(offset == 0);
res = latch8->value;
@@ -119,14 +119,14 @@ WRITE8_DEVICE_HANDLER( latch8_reset)
}
/* read bit x */
-/* return (latch >> x) & 0x01 */
+/* return (latch >> x) & 0x01 */
INLINE UINT8 latch8_bitx_r(const device_config *device, offs_t offset, int bit)
{
latch8_t *latch8 = get_safe_token(device);
assert( offset == 0);
-
+
return (latch8->value >> bit) & 0x01;
}
@@ -158,7 +158,7 @@ INLINE void latch8_bitx_w(const device_config *device, int bit, offs_t offset, U
UINT8 masked_data = (((data >> bit) & 0x01) << offset);
assert( offset < 8);
-
+
/* No need to synchronize ? */
if (latch8->intf->nosync & mask)
update(device, masked_data, mask);
@@ -191,7 +191,7 @@ static DEVICE_START( latch8 )
latch8->intf = device->inline_config;
latch8->value = 0x0;
-
+
/* setup nodemap */
for (i=0; i<8; i++)
if (latch8->intf->node_map[i] )
@@ -203,7 +203,7 @@ static DEVICE_START( latch8 )
{
if (latch8->devices[i] != NULL)
fatalerror("Device %s: Bit %d already has a handler.\n", device->tag, i);
- latch8->devices[i] = devtag_get_device(device->machine,
+ latch8->devices[i] = devtag_get_device(device->machine,
latch8->intf->devread[i].type,
latch8->intf->devread[i].tag);
if (latch8->devices[i] == NULL)
diff --git a/src/emu/machine/latch8.h b/src/emu/machine/latch8.h
index 66b05249c51..089fd587f41 100644
--- a/src/emu/machine/latch8.h
+++ b/src/emu/machine/latch8.h
@@ -1,15 +1,15 @@
/**********************************************************************
8 bit latch interface and emulation
-
+
Generic emulation of 74LS174/175, 74LS259 and other latches.
Apart from providing synched latch operation, these
latches can be configured to read their input bitwise from other
devices as well and individual bits can be connected to
discrete nodes.
-
+
Please see audio/dkong.c for examples.
-
+
**********************************************************************/
#ifndef __LATCH8_H_
@@ -36,7 +36,7 @@ typedef struct _latch8_config latch8_config;
struct _latch8_config
{
/* only for byte reads, does not affect bit reads and node_map */
- UINT32 maskout;
+ UINT32 maskout;
UINT32 xor; /* after mask */
UINT32 nosync;
UINT32 node_map[8];
@@ -57,11 +57,11 @@ struct _latch8_config
/* Bit mask specifying bits to be inverted */
#define MDRV_LATCH8_INVERT(_xor) \
- MDRV_DEVICE_CONFIG_DATA32(latch8_config, xor, _xor)
+ MDRV_DEVICE_CONFIG_DATA32(latch8_config, xor, _xor)
/* Bit mask specifying bits not needing cpu synchronization. */
#define MDRV_LATCH8_NOSYNC(_nosync) \
- MDRV_DEVICE_CONFIG_DATA32(latch8_config, nosync, _nosync)
+ MDRV_DEVICE_CONFIG_DATA32(latch8_config, nosync, _nosync)
/* Write bit to discrete node */
#define MDRV_LATCH8_DISCRETE_NODE(_bit, _node) \
@@ -110,7 +110,7 @@ WRITE8_DEVICE_HANDLER( latch8_w );
WRITE8_DEVICE_HANDLER( latch8_reset );
/* read bit x */
-/* return (latch >> x) & 0x01 */
+/* return (latch >> x) & 0x01 */
READ8_DEVICE_HANDLER( latch8_bit0_r );
READ8_DEVICE_HANDLER( latch8_bit1_r );
@@ -122,7 +122,7 @@ READ8_DEVICE_HANDLER( latch8_bit6_r );
READ8_DEVICE_HANDLER( latch8_bit7_r );
/* read inverted bit x */
-/* return (latch >> x) & 0x01 */
+/* return (latch >> x) & 0x01 */
READ8_DEVICE_HANDLER( latch8_bit0_q_r );
READ8_DEVICE_HANDLER( latch8_bit1_q_r );