summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-06-04 15:33:42 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-06-04 15:33:42 +0000
commit0eed019da759dbc4cc239c580c0a8f0d213d6686 (patch)
tree3c6c2250143ceaef47e03f811772a94011ec72eb /src/emu
parent678873dae7e955502f75796843b87314bb2447a0 (diff)
Cleanups and version bump.mame0131u4
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/cpu/cpu.mak2
-rw-r--r--src/emu/devtempl.h84
-rw-r--r--src/emu/info.c4
-rw-r--r--src/emu/machine/6840ptm.c80
-rw-r--r--src/emu/machine/adc083x.c24
-rw-r--r--src/emu/machine/adc1213x.c26
-rw-r--r--src/emu/machine/adc1213x.h2
-rw-r--r--src/emu/machine/mb3773.c8
-rw-r--r--src/emu/machine/mb3773.h2
-rw-r--r--src/emu/machine/pd4990a.c38
-rw-r--r--src/emu/machine/rp5h01.c30
-rw-r--r--src/emu/machine/upd4701.c36
-rw-r--r--src/emu/machine/upd4701.h2
13 files changed, 169 insertions, 169 deletions
diff --git a/src/emu/cpu/cpu.mak b/src/emu/cpu/cpu.mak
index 6bdf57c966d..0fbc85c7ee8 100644
--- a/src/emu/cpu/cpu.mak
+++ b/src/emu/cpu/cpu.mak
@@ -689,7 +689,7 @@ $(CPUOBJ)/lh5801/lh5801.o: $(CPUSRC)/lh5801/lh5801.c \
#-------------------------------------------------
-# Manchester Small-Scale Experimental Machine
+# Manchester Small-Scale Experimental Machine
#-------------------------------------------------
ifneq ($(filter SSEM,$(CPUS)),)
diff --git a/src/emu/devtempl.h b/src/emu/devtempl.h
index d60b3d97093..c95c2565b4f 100644
--- a/src/emu/devtempl.h
+++ b/src/emu/devtempl.h
@@ -9,57 +9,57 @@
****************************************************************************
- Typical usage is as follows:
-
+ Typical usage is as follows:
+
static const char *DEVTEMPLATE_SOURCE = __FILE__;
// for a primary device....
-#define DEVTEMPLATE_ID(p,s) p##devicenameprefix##s
-#define DEVTEMPLATE_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
-#define DEVTEMPLATE_NAME "Device Name String"
-#define DEVTEMPLATE_FAMILY "Device Family String"
-#define DEVTEMPLATE_CLASS DEVICE_CLASS_xxxx
+#define DEVTEMPLATE_ID(p,s) p##devicenameprefix##s
+#define DEVTEMPLATE_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
+#define DEVTEMPLATE_NAME "Device Name String"
+#define DEVTEMPLATE_FAMILY "Device Family String"
+#define DEVTEMPLATE_CLASS DEVICE_CLASS_xxxx
#include "devtempl.h"
// for a derived device....
-#define DEVTEMPLATE_DERIVED_ID(p,s) p##derivednameprefix##s
-#define DEVTEMPLATE_DERIVED_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
-#define DEVTEMPLATE_NAME "Derived Name String"
+#define DEVTEMPLATE_DERIVED_ID(p,s) p##derivednameprefix##s
+#define DEVTEMPLATE_DERIVED_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
+#define DEVTEMPLATE_NAME "Derived Name String"
#include "devtempl.h"
****************************************************************************
- Parameters are as follows:
-
- DEVTEMPLATE_ID(p,s) - required - macro to produce device function and
- type names with a prefix of 'p' and a suffix of 's'
-
- DEVTEMPLATE_FEATURES - required - bitmask consisting of one of the
- DT_HAS_* flags, indicating which standard-named callbacks or
- pointers are specified by this device (everything else is assumed
- to be NULL, which is the default)
-
- DEVTEMPLATE_NAME - required - a string describing the device
-
- DEVTEMPLATE_FAMILY - required - a string describing the device family
- name
-
- DEVTEMPLATE_STATE - optional - the name of the device's state
- structure; by default, this is assumed to be
- DEVTEMPLATE_ID(,_state)
-
- DEVTEMPLATE_CLASS - optional - the device's class (default is
- DEVICE_CLASS_PERIPHERAL)
-
- DEVTEMPLATE_VERSION - optional - the device's version string (default
- is "1.0")
-
- DEVTEMPLATE_CREDITS - optional - the device's credit string (default
- is "Copyright Nicola Salmoria and the MAME Team")
-
- DEVTEMPLATE_INLINE_CONFIG - optional - the name of the device's
- inline configuration structure; by default, it is assumed the
- device does not have any inline configuration
+ Parameters are as follows:
+
+ DEVTEMPLATE_ID(p,s) - required - macro to produce device function and
+ type names with a prefix of 'p' and a suffix of 's'
+
+ DEVTEMPLATE_FEATURES - required - bitmask consisting of one of the
+ DT_HAS_* flags, indicating which standard-named callbacks or
+ pointers are specified by this device (everything else is assumed
+ to be NULL, which is the default)
+
+ DEVTEMPLATE_NAME - required - a string describing the device
+
+ DEVTEMPLATE_FAMILY - required - a string describing the device family
+ name
+
+ DEVTEMPLATE_STATE - optional - the name of the device's state
+ structure; by default, this is assumed to be
+ DEVTEMPLATE_ID(,_state)
+
+ DEVTEMPLATE_CLASS - optional - the device's class (default is
+ DEVICE_CLASS_PERIPHERAL)
+
+ DEVTEMPLATE_VERSION - optional - the device's version string (default
+ is "1.0")
+
+ DEVTEMPLATE_CREDITS - optional - the device's credit string (default
+ is "Copyright Nicola Salmoria and the MAME Team")
+
+ DEVTEMPLATE_INLINE_CONFIG - optional - the name of the device's
+ inline configuration structure; by default, it is assumed the
+ device does not have any inline configuration
***************************************************************************/
@@ -160,7 +160,7 @@ DEVICE_GET_INFO( DEVTEMPLATE_ID(,) )
case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(DEVTEMPLATE_ID(,_config)); break;
#endif
case DEVINFO_INT_CLASS: info->i = DEVTEMPLATE_CLASS; break;
-
+
/* --- the following bits of info are returned as pointers --- */
#if ((DEVTEMPLATE_FEATURES) & DT_HAS_ROM_REGION)
case DEVINFO_PTR_ROM_REGION: info->romregion = DEVTEMPLATE_ID(rom_,); break;
diff --git a/src/emu/info.c b/src/emu/info.c
index 64d36172c48..1fb2e3a646a 100644
--- a/src/emu/info.c
+++ b/src/emu/info.c
@@ -100,8 +100,8 @@ static void print_game_configs(FILE *out, const game_driver *game, const input_p
}
/*-------------------------------------------------
- print_game_adjusters - print the Analog
- Adjusters for a game
+ print_game_adjusters - print the Analog
+ Adjusters for a game
-------------------------------------------------*/
static void print_game_adjusters(FILE *out, const game_driver *game, const input_port_config *portlist)
diff --git a/src/emu/machine/6840ptm.c b/src/emu/machine/6840ptm.c
index 6014e681de4..e86d9368ed8 100644
--- a/src/emu/machine/6840ptm.c
+++ b/src/emu/machine/6840ptm.c
@@ -72,7 +72,7 @@ static const char *const opmode[] =
static void ptm6840_timeout(const device_config *device, int idx);
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _ptm6840_state ptm6840_state;
@@ -107,7 +107,7 @@ struct _ptm6840_state
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE ptm6840_state *get_safe_token(const device_config *device)
@@ -127,11 +127,11 @@ INLINE const ptm6840_interface *get_interface(const device_config *device)
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- ptm6840_get_status - Get enabled status
+ ptm6840_get_status - Get enabled status
-------------------------------------------------*/
int ptm6840_get_status( const device_config *device, int clock )
@@ -141,7 +141,7 @@ int ptm6840_get_status( const device_config *device, int clock )
}
/*-------------------------------------------------
- ptm6840_get_irq - Get IRQ state
+ ptm6840_get_irq - Get IRQ state
-------------------------------------------------*/
int ptm6840_get_irq( const device_config *device )
@@ -151,7 +151,7 @@ int ptm6840_get_irq( const device_config *device )
}
/*-------------------------------------------------
- subtract_from_counter - Subtract from Counter
+ subtract_from_counter - Subtract from Counter
-------------------------------------------------*/
static void subtract_from_counter( const device_config *device, int counter, int count )
@@ -228,7 +228,7 @@ static void subtract_from_counter( const device_config *device, int counter, int
}
/*-------------------------------------------------
- ptm_tick
+ ptm_tick
-------------------------------------------------*/
static void ptm_tick( const device_config *device, int counter, int count )
@@ -252,7 +252,7 @@ static void ptm_tick( const device_config *device, int counter, int count )
}
/*-------------------------------------------------
- update_interrupts - Update Internal Interrupts
+ update_interrupts - Update Internal Interrupts
-------------------------------------------------*/
INLINE void update_interrupts( const device_config *device )
@@ -278,7 +278,7 @@ INLINE void update_interrupts( const device_config *device )
}
/*-------------------------------------------------
- compute_counter - Compute Counter
+ compute_counter - Compute Counter
-------------------------------------------------*/
static UINT16 compute_counter( const device_config *device, int counter )
@@ -321,7 +321,7 @@ static UINT16 compute_counter( const device_config *device, int counter )
}
/*-------------------------------------------------
- reload_count - Reload Counter
+ reload_count - Reload Counter
-------------------------------------------------*/
static void reload_count( const device_config *device, int idx )
@@ -366,7 +366,7 @@ static void reload_count( const device_config *device, int idx )
PLOG(("MC6840 #%s: reload_count(%d): clock = %d count = %d\n", device->tag, idx, clock, count));
duration = attotime_mul(ATTOTIME_IN_HZ(clock), count);
- if (idx == 2)
+ if (idx == 2)
duration = attotime_mul(duration, ptm6840->t3_divisor);
PLOG(("MC6840 #%s: reload_count(%d): output = %lf\n", device->tag, idx, attotime_to_double(duration)));
@@ -389,7 +389,7 @@ static void reload_count( const device_config *device, int idx )
/*-------------------------------------------------
- ptm6840_read - Read Timer
+ ptm6840_read - Read Timer
-------------------------------------------------*/
READ8_DEVICE_HANDLER( ptm6840_read )
@@ -453,7 +453,7 @@ READ8_DEVICE_HANDLER( ptm6840_read )
}
/*-------------------------------------------------
- ptm6840_write - Write Timer
+ ptm6840_write - Write Timer
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( ptm6840_write )
@@ -546,7 +546,7 @@ WRITE8_DEVICE_HANDLER( ptm6840_write )
}
/*-------------------------------------------------
- ptm6840_timeout - Called if timer is mature
+ ptm6840_timeout - Called if timer is mature
-------------------------------------------------*/
static void ptm6840_timeout( const device_config *device, int idx )
@@ -593,30 +593,30 @@ static void ptm6840_timeout( const device_config *device, int idx )
}
/*-------------------------------------------------
- TIMER_CALLBACKs for Timer 1, 2 & 3
+ TIMER_CALLBACKs for Timer 1, 2 & 3
-------------------------------------------------*/
-static TIMER_CALLBACK( ptm6840_timer1_cb )
-{
+static TIMER_CALLBACK( ptm6840_timer1_cb )
+{
const device_config *device = (const device_config *)ptr;
- ptm6840_timeout(device, 0);
+ ptm6840_timeout(device, 0);
}
static TIMER_CALLBACK( ptm6840_timer2_cb )
-{
+{
const device_config *device = (const device_config *)ptr;
- ptm6840_timeout(device, 1);
+ ptm6840_timeout(device, 1);
}
static TIMER_CALLBACK( ptm6840_timer3_cb )
-{
+{
const device_config *device = (const device_config *)ptr;
- ptm6840_timeout(device, 2);
+ ptm6840_timeout(device, 2);
}
/*-------------------------------------------------
- ptm6840_set_gate - set gate status (0 or 1)
+ ptm6840_set_gate - set gate status (0 or 1)
-------------------------------------------------*/
INLINE void ptm6840_set_gate( const device_config *device, int state, int idx )
@@ -632,26 +632,26 @@ INLINE void ptm6840_set_gate( const device_config *device, int state, int idx )
}
/*-------------------------------------------------
- WRITE8_DEVICE_HANDLERs for Gate 1, 2 & 3
+ WRITE8_DEVICE_HANDLERs for Gate 1, 2 & 3
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( ptm6840_set_g1 )
-{
+{
ptm6840_set_gate(device, data, 0);
}
WRITE8_DEVICE_HANDLER( ptm6840_set_g2 )
-{
+{
ptm6840_set_gate(device, data, 1);
}
WRITE8_DEVICE_HANDLER( ptm6840_set_g3 )
-{
+{
ptm6840_set_gate(device, data, 2);
}
/*-------------------------------------------------
- ptm6840_set_clock - set clock status (0 or 1)
+ ptm6840_set_clock - set clock status (0 or 1)
-------------------------------------------------*/
INLINE void ptm6840_set_clock( const device_config *device, int state, int idx )
@@ -668,27 +668,27 @@ INLINE void ptm6840_set_clock( const device_config *device, int state, int idx )
}
/*-------------------------------------------------
- WRITE8_DEVICE_HANDLERs for Clock 1, 2 & 3
+ WRITE8_DEVICE_HANDLERs for Clock 1, 2 & 3
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( ptm6840_set_c1 )
-{
- ptm6840_set_clock(device, data, 0);
+{
+ ptm6840_set_clock(device, data, 0);
}
WRITE8_DEVICE_HANDLER( ptm6840_set_c2 )
-{
- ptm6840_set_clock(device, data, 1);
+{
+ ptm6840_set_clock(device, data, 1);
}
WRITE8_DEVICE_HANDLER( ptm6840_set_c3 )
-{
- ptm6840_set_clock(device, data, 2);
+{
+ ptm6840_set_clock(device, data, 2);
}
/*-------------------------------------------------
- ptm6840_get_count - get count value
+ ptm6840_get_count - get count value
-------------------------------------------------*/
UINT16 ptm6840_get_count( const device_config *device, int counter )
@@ -697,7 +697,7 @@ UINT16 ptm6840_get_count( const device_config *device, int counter )
}
/*------------------------------------------------------------
- ptm6840_set_ext_clock - set external clock frequency
+ ptm6840_set_ext_clock - set external clock frequency
------------------------------------------------------------*/
void ptm6840_set_ext_clock( const device_config *device, int counter, int clock )
@@ -739,7 +739,7 @@ void ptm6840_set_ext_clock( const device_config *device, int counter, int clock
}
/*------------------------------------------------------------
- ptm6840_get_ext_clock - get external clock frequency
+ ptm6840_get_ext_clock - get external clock frequency
------------------------------------------------------------*/
int ptm6840_get_ext_clock( const device_config *device, int counter )
@@ -750,7 +750,7 @@ int ptm6840_get_ext_clock( const device_config *device, int counter )
/*-------------------------------------------------
- DEVICE_START( ptm6840 )
+ DEVICE_START( ptm6840 )
-------------------------------------------------*/
static DEVICE_START( ptm6840 )
@@ -810,7 +810,7 @@ static DEVICE_START( ptm6840 )
}
/*-------------------------------------------------
- DEVICE_RESET( ptm6840 )
+ DEVICE_RESET( ptm6840 )
-------------------------------------------------*/
static DEVICE_RESET( ptm6840 )
diff --git a/src/emu/machine/adc083x.c b/src/emu/machine/adc083x.c
index fdd3ccc07fd..36bdca53457 100644
--- a/src/emu/machine/adc083x.c
+++ b/src/emu/machine/adc083x.c
@@ -44,7 +44,7 @@ enum
};
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _adc0831_state adc0831_state;
@@ -71,7 +71,7 @@ struct _adc0831_state
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE adc0831_state *get_safe_token(const device_config *device)
@@ -91,11 +91,11 @@ INLINE const adc0831_interface *get_interface(const device_config *device)
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- adc083x_cs_write
+ adc083x_cs_write
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc083x_cs_write )
@@ -138,7 +138,7 @@ WRITE8_DEVICE_HANDLER( adc083x_cs_write )
}
/*-------------------------------------------------
- adc083x_conversion
+ adc083x_conversion
-------------------------------------------------*/
static UINT8 adc083x_conversion( const device_config *device )
@@ -219,7 +219,7 @@ static UINT8 adc083x_conversion( const device_config *device )
}
/*-------------------------------------------------
- adc083x_clk_write
+ adc083x_clk_write
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc083x_clk_write )
@@ -359,7 +359,7 @@ WRITE8_DEVICE_HANDLER( adc083x_clk_write )
}
/*-------------------------------------------------
- adc083x_di_write
+ adc083x_di_write
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc083x_di_write )
@@ -375,7 +375,7 @@ WRITE8_DEVICE_HANDLER( adc083x_di_write )
}
/*-------------------------------------------------
- adc083x_se_write
+ adc083x_se_write
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc083x_se_write )
@@ -391,7 +391,7 @@ WRITE8_DEVICE_HANDLER( adc083x_se_write )
}
/*-------------------------------------------------
- adc083x_sars_read
+ adc083x_sars_read
-------------------------------------------------*/
READ8_DEVICE_HANDLER( adc083x_sars_read )
@@ -403,7 +403,7 @@ READ8_DEVICE_HANDLER( adc083x_sars_read )
}
/*-------------------------------------------------
- adc083x_do_read
+ adc083x_do_read
-------------------------------------------------*/
READ8_DEVICE_HANDLER( adc083x_do_read )
@@ -416,7 +416,7 @@ READ8_DEVICE_HANDLER( adc083x_do_read )
/*-------------------------------------------------
- DEVICE_START( adc083x )
+ DEVICE_START( adc083x )
-------------------------------------------------*/
static DEVICE_START( adc0831 )
@@ -467,7 +467,7 @@ static DEVICE_START( adc0831 )
/*-------------------------------------------------
- DEVICE_RESET( adc083x )
+ DEVICE_RESET( adc083x )
-------------------------------------------------*/
static DEVICE_RESET( adc0831 )
diff --git a/src/emu/machine/adc1213x.c b/src/emu/machine/adc1213x.c
index f16262b2d07..cc4d4df521f 100644
--- a/src/emu/machine/adc1213x.c
+++ b/src/emu/machine/adc1213x.c
@@ -2,7 +2,7 @@
National Semiconductor ADC12130 / ADC12132 / ADC12138
- Self-calibrating 12-bit Plus Sign Serial I/O A/D Converters with MUX
+ Self-calibrating 12-bit Plus Sign Serial I/O A/D Converters with MUX
and Sample/Hold
TODO:
@@ -17,7 +17,7 @@
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _adc12138_state adc12138_state;
@@ -51,7 +51,7 @@ struct _adc12138_state
#define ADC1213X_ACQUISITION_TIME_34_CCLK 3
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE adc12138_state *get_safe_token(const device_config *device)
@@ -71,11 +71,11 @@ INLINE const adc12138_interface *get_interface(const device_config *device)
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- adc1213x_di_w
+ adc1213x_di_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc1213x_di_w )
@@ -85,7 +85,7 @@ WRITE8_DEVICE_HANDLER( adc1213x_di_w )
}
/*-------------------------------------------------
- adc1213x_convert
+ adc1213x_convert
-------------------------------------------------*/
static void adc1213x_convert(const device_config *device, int channel, int bits16, int lsbfirst)
@@ -176,7 +176,7 @@ static void adc1213x_convert(const device_config *device, int channel, int bits1
}
/*-------------------------------------------------
- adc1213x_cs_w
+ adc1213x_cs_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc1213x_cs_w )
@@ -254,7 +254,7 @@ WRITE8_DEVICE_HANDLER( adc1213x_cs_w )
}
/*-------------------------------------------------
- adc1213x_sclk_w
+ adc1213x_sclk_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc1213x_sclk_w )
@@ -276,7 +276,7 @@ WRITE8_DEVICE_HANDLER( adc1213x_sclk_w )
}
/*-------------------------------------------------
- adc1213x_conv_w
+ adc1213x_conv_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( adc1213x_conv_w )
@@ -286,7 +286,7 @@ WRITE8_DEVICE_HANDLER( adc1213x_conv_w )
}
/*-------------------------------------------------
- adc1213x_do_r
+ adc1213x_do_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( adc1213x_do_r )
@@ -298,7 +298,7 @@ READ8_DEVICE_HANDLER( adc1213x_do_r )
}
/*-------------------------------------------------
- adc1213x_eoc_r
+ adc1213x_eoc_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( adc1213x_eoc_r )
@@ -308,7 +308,7 @@ READ8_DEVICE_HANDLER( adc1213x_eoc_r )
}
/*-------------------------------------------------
- DEVICE_START( adc1213x )
+ DEVICE_START( adc1213x )
-------------------------------------------------*/
static DEVICE_START( adc12138 )
@@ -336,7 +336,7 @@ static DEVICE_START( adc12138 )
/*-------------------------------------------------
- DEVICE_RESET( adc1213x )
+ DEVICE_RESET( adc1213x )
-------------------------------------------------*/
static DEVICE_RESET( adc12138 )
diff --git a/src/emu/machine/adc1213x.h b/src/emu/machine/adc1213x.h
index 51527395869..d90783b7c40 100644
--- a/src/emu/machine/adc1213x.h
+++ b/src/emu/machine/adc1213x.h
@@ -2,7 +2,7 @@
National Semiconductor ADC12130 / ADC12132 / ADC12138
- Self-calibrating 12-bit Plus Sign Serial I/O A/D Converters with MUX
+ Self-calibrating 12-bit Plus Sign Serial I/O A/D Converters with MUX
and Sample/Hold
***************************************************************************/
diff --git a/src/emu/machine/mb3773.c b/src/emu/machine/mb3773.c
index 90096914cc9..2897e361f3b 100644
--- a/src/emu/machine/mb3773.c
+++ b/src/emu/machine/mb3773.c
@@ -1,6 +1,6 @@
/***************************************************************************
- Fujitsu MB3773
+ Fujitsu MB3773
Power Supply Monitor with Watch Dog Timer (i.e. Reset IC)
@@ -17,7 +17,7 @@
#include "mb3773.h"
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _mb3773_state mb3773_state;
@@ -28,7 +28,7 @@ struct _mb3773_state
};
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE mb3773_state *get_safe_token(const device_config *device)
@@ -40,7 +40,7 @@ INLINE mb3773_state *get_safe_token(const device_config *device)
}
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
diff --git a/src/emu/machine/mb3773.h b/src/emu/machine/mb3773.h
index 2ff11645a2f..c4612b79fa6 100644
--- a/src/emu/machine/mb3773.h
+++ b/src/emu/machine/mb3773.h
@@ -1,6 +1,6 @@
/***************************************************************************
- Fujistu MB3773
+ Fujistu MB3773
Power Supply Monitor with Watch Dog Timer (i.e. Reset IC)
diff --git a/src/emu/machine/pd4990a.c b/src/emu/machine/pd4990a.c
index bad9df698b4..c02cd915ebb 100644
--- a/src/emu/machine/pd4990a.c
+++ b/src/emu/machine/pd4990a.c
@@ -45,7 +45,7 @@
#define END_BIT 0x04
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _upd4990a_state upd4990a_state;
@@ -79,7 +79,7 @@ struct _upd4990a_state
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE upd4990a_state *get_safe_token(const device_config *device)
@@ -97,11 +97,11 @@ INLINE UINT8 convert_to_bcd(int val)
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- upd4990a_increment_month
+ upd4990a_increment_month
-------------------------------------------------*/
void upd4990a_increment_month( const device_config *device )
@@ -124,7 +124,7 @@ void upd4990a_increment_month( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_increment_day
+ upd4990a_increment_day
-------------------------------------------------*/
void upd4990a_increment_day( const device_config *device )
@@ -182,7 +182,7 @@ void upd4990a_increment_day( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_addretrace
+ upd4990a_addretrace
-------------------------------------------------*/
void upd4990a_addretrace( const device_config *device )
@@ -235,7 +235,7 @@ void upd4990a_addretrace( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_testbit_r
+ upd4990a_testbit_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( upd4990a_testbit_r )
@@ -245,7 +245,7 @@ READ8_DEVICE_HANDLER( upd4990a_testbit_r )
}
/*-------------------------------------------------
- upd4990a_databit_r
+ upd4990a_databit_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( upd4990a_databit_r )
@@ -255,7 +255,7 @@ READ8_DEVICE_HANDLER( upd4990a_databit_r )
}
/*-------------------------------------------------
- upd4990a_readbit
+ upd4990a_readbit
-------------------------------------------------*/
static void upd4990a_readbit( const device_config *device )
@@ -297,7 +297,7 @@ static void upd4990a_readbit( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_resetbitstream
+ upd4990a_resetbitstream
-------------------------------------------------*/
static void upd4990a_resetbitstream( const device_config *device )
@@ -310,7 +310,7 @@ static void upd4990a_resetbitstream( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_writebit
+ upd4990a_writebit
-------------------------------------------------*/
static void upd4990a_writebit( const device_config *device , UINT8 bit )
@@ -323,7 +323,7 @@ static void upd4990a_writebit( const device_config *device , UINT8 bit )
}
/*-------------------------------------------------
- upd4990a_nextbit
+ upd4990a_nextbit
-------------------------------------------------*/
static void upd4990a_nextbit( const device_config *device )
@@ -343,7 +343,7 @@ static void upd4990a_nextbit( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_getcommand
+ upd4990a_getcommand
-------------------------------------------------*/
static UINT8 upd4990a_getcommand( const device_config *device )
@@ -358,7 +358,7 @@ static UINT8 upd4990a_getcommand( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_update_date
+ upd4990a_update_date
-------------------------------------------------*/
static void upd4990a_update_date( const device_config *device )
@@ -375,7 +375,7 @@ static void upd4990a_update_date( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_process_command
+ upd4990a_process_command
-------------------------------------------------*/
static void upd4990a_process_command( const device_config *device )
@@ -409,7 +409,7 @@ static void upd4990a_process_command( const device_config *device )
}
/*-------------------------------------------------
- upd4990a_serial_control
+ upd4990a_serial_control
-------------------------------------------------*/
static void upd4990a_serial_control( const device_config *device, UINT8 data )
@@ -432,7 +432,7 @@ static void upd4990a_serial_control( const device_config *device, UINT8 data )
}
/*-------------------------------------------------
- upd4990a_control_16_w
+ upd4990a_control_16_w
-------------------------------------------------*/
WRITE16_DEVICE_HANDLER( upd4990a_control_16_w )
@@ -442,7 +442,7 @@ WRITE16_DEVICE_HANDLER( upd4990a_control_16_w )
/*-------------------------------------------------
- DEVICE_START( upd4990a )
+ DEVICE_START( upd4990a )
-------------------------------------------------*/
static DEVICE_START( upd4990a )
@@ -498,7 +498,7 @@ static DEVICE_START( upd4990a )
/*-------------------------------------------------
- DEVICE_RESET( upd4990a )
+ DEVICE_RESET( upd4990a )
-------------------------------------------------*/
static DEVICE_RESET( upd4990a )
diff --git a/src/emu/machine/rp5h01.c b/src/emu/machine/rp5h01.c
index bf5c9eaa4c5..4f979fdd0b3 100644
--- a/src/emu/machine/rp5h01.c
+++ b/src/emu/machine/rp5h01.c
@@ -12,7 +12,7 @@
/***************************************************************************
- PARAMETERS
+ PARAMETERS
***************************************************************************/
/* these also work as the address masks */
@@ -23,7 +23,7 @@ enum {
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _rp5h01_state rp5h01_state;
@@ -38,7 +38,7 @@ struct _rp5h01_state
};
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE rp5h01_state *get_safe_token(const device_config *device)
@@ -57,11 +57,11 @@ INLINE const rp5h01_interface *get_interface(const device_config *device)
}
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- rp5h01_enable_w
+ rp5h01_enable_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( rp5h01_enable_w )
@@ -73,7 +73,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_enable_w )
}
/*-------------------------------------------------
- rp5h01_reset_w
+ rp5h01_reset_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
@@ -86,7 +86,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
return;
/* now look for a 0->1 transition */
- if (rp5h01->old_reset == 0 && newstate == 1)
+ if (rp5h01->old_reset == 0 && newstate == 1)
{
/* reset the counter */
rp5h01->counter = 0;
@@ -97,7 +97,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
}
/*-------------------------------------------------
- rp5h01_clock_w
+ rp5h01_clock_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
@@ -110,7 +110,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
return;
/* now look for a 1->0 transition */
- if (rp5h01->old_clock == 1 && newstate == 0)
+ if (rp5h01->old_clock == 1 && newstate == 0)
{
/* increment the counter, and mask it with the mode */
rp5h01->counter++;
@@ -121,7 +121,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
}
/*-------------------------------------------------
- rp5h01_test_w
+ rp5h01_test_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( rp5h01_test_w )
@@ -137,7 +137,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_test_w )
}
/*-------------------------------------------------
- rp5h01_counter_r
+ rp5h01_counter_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( rp5h01_counter_r )
@@ -153,7 +153,7 @@ READ8_DEVICE_HANDLER( rp5h01_counter_r )
}
/*-------------------------------------------------
- rp5h01_data_r
+ rp5h01_data_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( rp5h01_data_r )
@@ -174,7 +174,7 @@ READ8_DEVICE_HANDLER( rp5h01_data_r )
}
/*-------------------------------------------------
- DEVICE_START( rp5h01 )
+ DEVICE_START( rp5h01 )
-------------------------------------------------*/
static DEVICE_START( rp5h01 )
@@ -193,7 +193,7 @@ static DEVICE_START( rp5h01 )
}
/*-------------------------------------------------
- DEVICE_RESET( rp5h01 )
+ DEVICE_RESET( rp5h01 )
-------------------------------------------------*/
static DEVICE_RESET( rp5h01 )
@@ -208,7 +208,7 @@ static DEVICE_RESET( rp5h01 )
}
/*-------------------------------------------------
- device definition
+ device definition
-------------------------------------------------*/
static const char *DEVTEMPLATE_SOURCE = __FILE__;
diff --git a/src/emu/machine/upd4701.c b/src/emu/machine/upd4701.c
index b5ca1ad940b..416017ce19c 100644
--- a/src/emu/machine/upd4701.c
+++ b/src/emu/machine/upd4701.c
@@ -1,6 +1,6 @@
/***************************************************************************
- NEC uPD4701
+ NEC uPD4701
Incremental Encoder Control
@@ -12,7 +12,7 @@
#include "upd4701.h"
/***************************************************************************
- TYPE DEFINITIONS
+ TYPE DEFINITIONS
***************************************************************************/
typedef struct _upd4701_state upd4701_state;
@@ -34,7 +34,7 @@ struct _upd4701_state
int cf;
};
-/* x,y increments can be 12bit (see MASK_COUNTER), hence we need a couple of
+/* x,y increments can be 12bit (see MASK_COUNTER), hence we need a couple of
16bit handlers in the following */
#define MASK_SWITCHES ( 7 )
@@ -42,7 +42,7 @@ struct _upd4701_state
/***************************************************************************
- INLINE FUNCTIONS
+ INLINE FUNCTIONS
***************************************************************************/
INLINE upd4701_state *get_safe_token(const device_config *device)
@@ -55,11 +55,11 @@ INLINE upd4701_state *get_safe_token(const device_config *device)
/***************************************************************************
- IMPLEMENTATION
+ IMPLEMENTATION
***************************************************************************/
/*-------------------------------------------------
- upd4701_ul_w
+ upd4701_ul_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_ul_w )
@@ -69,7 +69,7 @@ WRITE8_DEVICE_HANDLER( upd4701_ul_w )
}
/*-------------------------------------------------
- upd4701_xy_w
+ upd4701_xy_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_xy_w )
@@ -79,7 +79,7 @@ WRITE8_DEVICE_HANDLER( upd4701_xy_w )
}
/*-------------------------------------------------
- upd4701_cs_w
+ upd4701_cs_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_cs_w )
@@ -107,7 +107,7 @@ WRITE8_DEVICE_HANDLER( upd4701_cs_w )
}
/*-------------------------------------------------
- upd4701_resetx_w
+ upd4701_resetx_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_resetx_w )
@@ -126,7 +126,7 @@ WRITE8_DEVICE_HANDLER( upd4701_resetx_w )
}
/*-------------------------------------------------
- upd4701_resety_w
+ upd4701_resety_w
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_resety_w )
@@ -145,7 +145,7 @@ WRITE8_DEVICE_HANDLER( upd4701_resety_w )
}
/*-------------------------------------------------
- upd4701_x_add
+ upd4701_x_add
-------------------------------------------------*/
WRITE16_DEVICE_HANDLER( upd4701_x_add )
@@ -164,7 +164,7 @@ WRITE16_DEVICE_HANDLER( upd4701_x_add )
}
/*-------------------------------------------------
- upd4701_y_add
+ upd4701_y_add
-------------------------------------------------*/
WRITE16_DEVICE_HANDLER( upd4701_y_add )
@@ -183,7 +183,7 @@ WRITE16_DEVICE_HANDLER( upd4701_y_add )
}
/*-------------------------------------------------
- upd4701_switches_set
+ upd4701_switches_set
-------------------------------------------------*/
WRITE8_DEVICE_HANDLER( upd4701_switches_set )
@@ -193,7 +193,7 @@ WRITE8_DEVICE_HANDLER( upd4701_switches_set )
}
/*-------------------------------------------------
- upd4701_d_r
+ upd4701_d_r
-------------------------------------------------*/
READ16_DEVICE_HANDLER( upd4701_d_r )
@@ -228,7 +228,7 @@ READ16_DEVICE_HANDLER( upd4701_d_r )
}
/*-------------------------------------------------
- upd4701_sf_r
+ upd4701_sf_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( upd4701_sf_r )
@@ -244,7 +244,7 @@ READ8_DEVICE_HANDLER( upd4701_sf_r )
}
/*-------------------------------------------------
- upd4701_cf_r
+ upd4701_cf_r
-------------------------------------------------*/
READ8_DEVICE_HANDLER( upd4701_cf_r )
@@ -254,7 +254,7 @@ READ8_DEVICE_HANDLER( upd4701_cf_r )
}
/*-------------------------------------------------
- DEVICE_START( upd4701 )
+ DEVICE_START( upd4701 )
-------------------------------------------------*/
static DEVICE_START( upd4701 )
@@ -279,7 +279,7 @@ static DEVICE_START( upd4701 )
}
/*-------------------------------------------------
- DEVICE_RESET( upd4701 )
+ DEVICE_RESET( upd4701 )
-------------------------------------------------*/
static DEVICE_RESET( upd4701 )
diff --git a/src/emu/machine/upd4701.h b/src/emu/machine/upd4701.h
index b2aac3b4221..e6e166d6131 100644
--- a/src/emu/machine/upd4701.h
+++ b/src/emu/machine/upd4701.h
@@ -1,6 +1,6 @@
/***************************************************************************
- NEC uPD4701
+ NEC uPD4701
Incremental Encoder Control