Cleanups and version bump.

This commit is contained in:
Aaron Giles 2009-06-04 15:33:42 +00:00
parent 678873dae7
commit 0eed019da7
28 changed files with 312 additions and 312 deletions

View File

@ -9,57 +9,57 @@
**************************************************************************** ****************************************************************************
Typical usage is as follows: Typical usage is as follows:
static const char *DEVTEMPLATE_SOURCE = __FILE__; static const char *DEVTEMPLATE_SOURCE = __FILE__;
// for a primary device.... // for a primary device....
#define DEVTEMPLATE_ID(p,s) p##devicenameprefix##s #define DEVTEMPLATE_ID(p,s) p##devicenameprefix##s
#define DEVTEMPLATE_FEATURES DT_HAS_xxx | DT_HAS_yyy | ... #define DEVTEMPLATE_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
#define DEVTEMPLATE_NAME "Device Name String" #define DEVTEMPLATE_NAME "Device Name String"
#define DEVTEMPLATE_FAMILY "Device Family String" #define DEVTEMPLATE_FAMILY "Device Family String"
#define DEVTEMPLATE_CLASS DEVICE_CLASS_xxxx #define DEVTEMPLATE_CLASS DEVICE_CLASS_xxxx
#include "devtempl.h" #include "devtempl.h"
// for a derived device.... // for a derived device....
#define DEVTEMPLATE_DERIVED_ID(p,s) p##derivednameprefix##s #define DEVTEMPLATE_DERIVED_ID(p,s) p##derivednameprefix##s
#define DEVTEMPLATE_DERIVED_FEATURES DT_HAS_xxx | DT_HAS_yyy | ... #define DEVTEMPLATE_DERIVED_FEATURES DT_HAS_xxx | DT_HAS_yyy | ...
#define DEVTEMPLATE_NAME "Derived Name String" #define DEVTEMPLATE_NAME "Derived Name String"
#include "devtempl.h" #include "devtempl.h"
**************************************************************************** ****************************************************************************
Parameters are as follows: Parameters are as follows:
DEVTEMPLATE_ID(p,s) - required - macro to produce device function and DEVTEMPLATE_ID(p,s) - required - macro to produce device function and
type names with a prefix of 'p' and a suffix of 's' type names with a prefix of 'p' and a suffix of 's'
DEVTEMPLATE_FEATURES - required - bitmask consisting of one of the DEVTEMPLATE_FEATURES - required - bitmask consisting of one of the
DT_HAS_* flags, indicating which standard-named callbacks or DT_HAS_* flags, indicating which standard-named callbacks or
pointers are specified by this device (everything else is assumed pointers are specified by this device (everything else is assumed
to be NULL, which is the default) to be NULL, which is the default)
DEVTEMPLATE_NAME - required - a string describing the device DEVTEMPLATE_NAME - required - a string describing the device
DEVTEMPLATE_FAMILY - required - a string describing the device family DEVTEMPLATE_FAMILY - required - a string describing the device family
name name
DEVTEMPLATE_STATE - optional - the name of the device's state DEVTEMPLATE_STATE - optional - the name of the device's state
structure; by default, this is assumed to be structure; by default, this is assumed to be
DEVTEMPLATE_ID(,_state) DEVTEMPLATE_ID(,_state)
DEVTEMPLATE_CLASS - optional - the device's class (default is DEVTEMPLATE_CLASS - optional - the device's class (default is
DEVICE_CLASS_PERIPHERAL) DEVICE_CLASS_PERIPHERAL)
DEVTEMPLATE_VERSION - optional - the device's version string (default DEVTEMPLATE_VERSION - optional - the device's version string (default
is "1.0") is "1.0")
DEVTEMPLATE_CREDITS - optional - the device's credit string (default DEVTEMPLATE_CREDITS - optional - the device's credit string (default
is "Copyright Nicola Salmoria and the MAME Team") is "Copyright Nicola Salmoria and the MAME Team")
DEVTEMPLATE_INLINE_CONFIG - optional - the name of the device's DEVTEMPLATE_INLINE_CONFIG - optional - the name of the device's
inline configuration structure; by default, it is assumed the inline configuration structure; by default, it is assumed the
device does not have any inline configuration device does not have any inline configuration
***************************************************************************/ ***************************************************************************/

View File

@ -101,7 +101,7 @@ static void print_game_configs(FILE *out, const game_driver *game, const input_p
/*------------------------------------------------- /*-------------------------------------------------
print_game_adjusters - print the Analog print_game_adjusters - print the Analog
Adjusters for a game Adjusters for a game
-------------------------------------------------*/ -------------------------------------------------*/
static void print_game_adjusters(FILE *out, const game_driver *game, const input_port_config *portlist) static void print_game_adjusters(FILE *out, const game_driver *game, const input_port_config *portlist)

View File

@ -72,7 +72,7 @@ static const char *const opmode[] =
static void ptm6840_timeout(const device_config *device, int idx); static void ptm6840_timeout(const device_config *device, int idx);
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _ptm6840_state ptm6840_state; 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) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) static void reload_count( const device_config *device, int idx )
@ -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 ) 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 ) 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 ) static void ptm6840_timeout( const device_config *device, int idx )
@ -593,7 +593,7 @@ 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 )
@ -616,7 +616,7 @@ static TIMER_CALLBACK( ptm6840_timer3_cb )
/*------------------------------------------------- /*-------------------------------------------------
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 ) INLINE void ptm6840_set_gate( const device_config *device, int state, int idx )
@ -632,7 +632,7 @@ 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 ) WRITE8_DEVICE_HANDLER( ptm6840_set_g1 )
@ -651,7 +651,7 @@ WRITE8_DEVICE_HANDLER( ptm6840_set_g3 )
} }
/*------------------------------------------------- /*-------------------------------------------------
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 ) INLINE void ptm6840_set_clock( const device_config *device, int state, int idx )
@ -668,7 +668,7 @@ 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 ) WRITE8_DEVICE_HANDLER( ptm6840_set_c1 )
@ -688,7 +688,7 @@ WRITE8_DEVICE_HANDLER( ptm6840_set_c3 )
/*------------------------------------------------- /*-------------------------------------------------
ptm6840_get_count - get count value ptm6840_get_count - get count value
-------------------------------------------------*/ -------------------------------------------------*/
UINT16 ptm6840_get_count( const device_config *device, int counter ) 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 ) 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 ) 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 ) static DEVICE_START( ptm6840 )
@ -810,7 +810,7 @@ static DEVICE_START( ptm6840 )
} }
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( ptm6840 ) DEVICE_RESET( ptm6840 )
-------------------------------------------------*/ -------------------------------------------------*/
static DEVICE_RESET( ptm6840 ) static DEVICE_RESET( ptm6840 )

View File

@ -44,7 +44,7 @@ enum
}; };
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _adc0831_state adc0831_state; 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) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) static DEVICE_START( adc0831 )
@ -467,7 +467,7 @@ static DEVICE_START( adc0831 )
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( adc083x ) DEVICE_RESET( adc083x )
-------------------------------------------------*/ -------------------------------------------------*/
static DEVICE_RESET( adc0831 ) static DEVICE_RESET( adc0831 )

View File

@ -17,7 +17,7 @@
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _adc12138_state adc12138_state; typedef struct _adc12138_state adc12138_state;
@ -51,7 +51,7 @@ struct _adc12138_state
#define ADC1213X_ACQUISITION_TIME_34_CCLK 3 #define ADC1213X_ACQUISITION_TIME_34_CCLK 3
/*************************************************************************** /***************************************************************************
INLINE FUNCTIONS INLINE FUNCTIONS
***************************************************************************/ ***************************************************************************/
INLINE adc12138_state *get_safe_token(const device_config *device) 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 ) 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) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) static DEVICE_START( adc12138 )
@ -336,7 +336,7 @@ static DEVICE_START( adc12138 )
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( adc1213x ) DEVICE_RESET( adc1213x )
-------------------------------------------------*/ -------------------------------------------------*/
static DEVICE_RESET( adc12138 ) static DEVICE_RESET( adc12138 )

View File

@ -1,6 +1,6 @@
/*************************************************************************** /***************************************************************************
Fujitsu MB3773 Fujitsu MB3773
Power Supply Monitor with Watch Dog Timer (i.e. Reset IC) Power Supply Monitor with Watch Dog Timer (i.e. Reset IC)
@ -17,7 +17,7 @@
#include "mb3773.h" #include "mb3773.h"
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _mb3773_state mb3773_state; 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) 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
***************************************************************************/ ***************************************************************************/
/*------------------------------------------------- /*-------------------------------------------------

View File

@ -1,6 +1,6 @@
/*************************************************************************** /***************************************************************************
Fujistu MB3773 Fujistu MB3773
Power Supply Monitor with Watch Dog Timer (i.e. Reset IC) Power Supply Monitor with Watch Dog Timer (i.e. Reset IC)

View File

@ -45,7 +45,7 @@
#define END_BIT 0x04 #define END_BIT 0x04
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _upd4990a_state upd4990a_state; 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) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) static DEVICE_START( upd4990a )
@ -498,7 +498,7 @@ static DEVICE_START( upd4990a )
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( upd4990a ) DEVICE_RESET( upd4990a )
-------------------------------------------------*/ -------------------------------------------------*/
static DEVICE_RESET( upd4990a ) static DEVICE_RESET( upd4990a )

View File

@ -12,7 +12,7 @@
/*************************************************************************** /***************************************************************************
PARAMETERS PARAMETERS
***************************************************************************/ ***************************************************************************/
/* these also work as the address masks */ /* these also work as the address masks */
@ -23,7 +23,7 @@ enum {
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _rp5h01_state rp5h01_state; 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) 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 ) 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 ) WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
@ -97,7 +97,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
} }
/*------------------------------------------------- /*-------------------------------------------------
rp5h01_clock_w rp5h01_clock_w
-------------------------------------------------*/ -------------------------------------------------*/
WRITE8_DEVICE_HANDLER( rp5h01_clock_w ) WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
@ -121,7 +121,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
} }
/*------------------------------------------------- /*-------------------------------------------------
rp5h01_test_w rp5h01_test_w
-------------------------------------------------*/ -------------------------------------------------*/
WRITE8_DEVICE_HANDLER( 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 ) 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 ) 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 ) static DEVICE_START( rp5h01 )
@ -193,7 +193,7 @@ static DEVICE_START( rp5h01 )
} }
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( rp5h01 ) DEVICE_RESET( rp5h01 )
-------------------------------------------------*/ -------------------------------------------------*/
static 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__; static const char *DEVTEMPLATE_SOURCE = __FILE__;

View File

@ -12,7 +12,7 @@
#include "upd4701.h" #include "upd4701.h"
/*************************************************************************** /***************************************************************************
TYPE DEFINITIONS TYPE DEFINITIONS
***************************************************************************/ ***************************************************************************/
typedef struct _upd4701_state upd4701_state; typedef struct _upd4701_state upd4701_state;
@ -42,7 +42,7 @@ struct _upd4701_state
/*************************************************************************** /***************************************************************************
INLINE FUNCTIONS INLINE FUNCTIONS
***************************************************************************/ ***************************************************************************/
INLINE upd4701_state *get_safe_token(const device_config *device) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) 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 ) static DEVICE_START( upd4701 )
@ -279,7 +279,7 @@ static DEVICE_START( upd4701 )
} }
/*------------------------------------------------- /*-------------------------------------------------
DEVICE_RESET( upd4701 ) DEVICE_RESET( upd4701 )
-------------------------------------------------*/ -------------------------------------------------*/
static DEVICE_RESET( upd4701 ) static DEVICE_RESET( upd4701 )

View File

@ -1637,7 +1637,7 @@ INPUT_PORTS_START( aladbl )
PORT_DIPSETTING( 0x05, DEF_STR( 1C_5C ) ) PORT_DIPSETTING( 0x05, DEF_STR( 1C_5C ) )
PORT_DIPSETTING( 0x06, DEF_STR( 1C_6C ) ) PORT_DIPSETTING( 0x06, DEF_STR( 1C_6C ) )
PORT_DIPSETTING( 0x07, DEF_STR( 1C_7C ) ) PORT_DIPSETTING( 0x07, DEF_STR( 1C_7C ) )
// PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */ // PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_SPECIAL ) /* to avoid it being changed and corrupting Coinage settings */
PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) /* code at 0x1b2680 */ PORT_DIPNAME( 0x30, 0x00, DEF_STR( Difficulty ) ) /* code at 0x1b2680 */
PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) /* "PRACTICE" */ PORT_DIPSETTING( 0x10, DEF_STR( Easy ) ) /* "PRACTICE" */
PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) /* "NORMAL" */ PORT_DIPSETTING( 0x00, DEF_STR( Normal ) ) /* "NORMAL" */

View File

@ -1,18 +1,18 @@
/*************************************************************************** /***************************************************************************
Namco 06XX Namco 06XX
This chip is used as an interface to up to 4 other custom chips. This chip is used as an interface to up to 4 other custom chips.
It signals IRQs to the custom MCUs when writes happen, and generates It signals IRQs to the custom MCUs when writes happen, and generates
NMIs to the controlling CPU to drive reads based on a clock. NMIs to the controlling CPU to drive reads based on a clock.
SD0-SD7 are data I/O lines connecting to the controlling CPU SD0-SD7 are data I/O lines connecting to the controlling CPU
SEL selects either control (1) or data (0), usually connected to SEL selects either control (1) or data (0), usually connected to
an address line of the controlling CPU an address line of the controlling CPU
/NMI is an NMI signal line for the controlling CPU /NMI is an NMI signal line for the controlling CPU
ID0-ID7 are data I/O lines connecting to the other custom chips ID0-ID7 are data I/O lines connecting to the other custom chips
/IO1-/IO4 are IRQ signal lines for each custom chip /IO1-/IO4 are IRQ signal lines for each custom chip
+------+ +------+
[1]|1 28|Vcc [1]|1 28|Vcc
@ -31,51 +31,51 @@
GND|14 15|SEL GND|14 15|SEL
+------+ +------+
[1] on polepos, galaga, xevious, and bosco: connected to K3 of the 51xx [1] on polepos, galaga, xevious, and bosco: connected to K3 of the 51xx
on bosco and xevious, connected to R8 of the 50xx on bosco and xevious, connected to R8 of the 50xx
06XX interface: 06XX interface:
--------------- ---------------
Galaga 51XX ---- ---- 54XX Galaga 51XX ---- ---- 54XX
Bosconian (CPU board) 51XX ---- 50XX 54XX Bosconian (CPU board) 51XX ---- 50XX 54XX
Bosconian (Video board) 50XX 52XX ---- ---- Bosconian (Video board) 50XX 52XX ---- ----
Xevious 51XX ---- 50XX 54XX Xevious 51XX ---- 50XX 54XX
Dig Dug 51XX 53XX ---- ---- Dig Dug 51XX 53XX ---- ----
Pole Position / PP II 51XX 53XX 52XX 54XX Pole Position / PP II 51XX 53XX 52XX 54XX
Galaga writes: Galaga writes:
control = 10(000), data = FF at startup control = 10(000), data = FF at startup
control = 71(011), read 3, control = 10 control = 71(011), read 3, control = 10
control = A1(101), write 4, control = 10 control = A1(101), write 4, control = 10
control = A8(101), write 12, control = 10 control = A8(101), write 12, control = 10
Xevious writes: Xevious writes:
control = 10 at startup control = 10 at startup
control = A1(101), write 6, control = 10 control = A1(101), write 6, control = 10
control = 71(011), read 3, control = 10 control = 71(011), read 3, control = 10
control = 64(011), write 1, control = 10 control = 64(011), write 1, control = 10
control = 74(011), read 4, control = 10 control = 74(011), read 4, control = 10
control = 68(011), write 7, control = 10 control = 68(011), write 7, control = 10
Dig Dug writes: Dig Dug writes:
control = 10(000), data = 10 at startup control = 10(000), data = 10 at startup
control = A1(101), write 3, control = 10 control = A1(101), write 3, control = 10
control = 71(011), read 3, control = 10 control = 71(011), read 3, control = 10
control = D2(110), read 2, control = 10 control = D2(110), read 2, control = 10
Bosco writes: Bosco writes:
control = 10(000), data = FF at startup control = 10(000), data = FF at startup
control = C8(110), write 17, control = 10 control = C8(110), write 17, control = 10
control = 61(011), write 1, control = 10 control = 61(011), write 1, control = 10
control = 71(011), read 3, control = 10 control = 71(011), read 3, control = 10
control = 94(100), read 4, control = 10 control = 94(100), read 4, control = 10
control = 64(011), write 1, control = 10 control = 64(011), write 1, control = 10
control = 84(100), write 5, control = 10 control = 84(100), write 5, control = 10
control = 34(001), write 1, control = 10 control = 34(001), write 1, control = 10
***************************************************************************/ ***************************************************************************/

View File

@ -1,56 +1,56 @@
/*************************************************************************** /***************************************************************************
Namco 51XX Namco 51XX
This custom chip is a Fujitsu MB8843 MCU programmed to act as an I/O This custom chip is a Fujitsu MB8843 MCU programmed to act as an I/O
device with built-in coin management. It is also apparently used as a device with built-in coin management. It is also apparently used as a
protection device. It keeps track of the players scores, and checks protection device. It keeps track of the players scores, and checks
if a high score has been obtained or bonus lives should be awarded. if a high score has been obtained or bonus lives should be awarded.
The main CPU has a range of commands to increment/decrement the score The main CPU has a range of commands to increment/decrement the score
by various fixed amounts. by various fixed amounts.
The device is used to its full potential only by Bosconian; Xevious The device is used to its full potential only by Bosconian; Xevious
uses it too, but only to do a protection check on startup. uses it too, but only to do a protection check on startup.
CMD = command from main CPU CMD = command from main CPU
ANS = answer to main CPU ANS = answer to main CPU
The chip reads/writes the I/O ports when the /IRQ is pulled down. The chip reads/writes the I/O ports when the /IRQ is pulled down.
Pin 21 determines whether a read or write should happen (1=R, 0=W). Pin 21 determines whether a read or write should happen (1=R, 0=W).
+------+ +------+
EX|1 42|Vcc EX|1 42|Vcc
X|2 41|K3 X|2 41|K3
/RESET|3 40|K2 /RESET|3 40|K2
/IRQ|4 39|K1 /IRQ|4 39|K1
SO|5 38|K0 SO|5 38|K0
SI|6 37|R15 SI|6 37|R15
/SC /TO|7 36|R14 /SC /TO|7 36|R14
/TC|8 35|R13 /TC|8 35|R13
P0|9 34|R12 P0|9 34|R12
P1|10 33|R11 P1|10 33|R11
P2|11 32|R10 P2|11 32|R10
P3|12 31|R9 P3|12 31|R9
O0|13 30|R8 O0|13 30|R8
O1|14 29|R7 O1|14 29|R7
O2|15 28|R6 O2|15 28|R6
O3|16 27|R5 O3|16 27|R5
O4|17 26|R4 O4|17 26|R4
O5|18 25|R3 O5|18 25|R3
O6|19 24|R2 O6|19 24|R2
O7|20 23|R1 O7|20 23|R1
GND|21 22|R0 GND|21 22|R0
+------+ +------+
commands: commands:
00: nop 00: nop
01 + 4 arguments: set coinage (xevious, possibly because of a bug, is different) 01 + 4 arguments: set coinage (xevious, possibly because of a bug, is different)
02: go in "credit" mode and enable start buttons 02: go in "credit" mode and enable start buttons
03: disable joystick remapping 03: disable joystick remapping
04: enable joystick remapping 04: enable joystick remapping
05: go in "switch" mode 05: go in "switch" mode
06: nop 06: nop
07: nop 07: nop
***************************************************************************/ ***************************************************************************/

View File

@ -47,8 +47,8 @@
Dig Dug can control which mode to use via the MOD bit latches. It sets Dig Dug can control which mode to use via the MOD bit latches. It sets
these values to mode 7 when running. these values to mode 7 when running.
Unknowns: Unknowns:
SO is connected to IOSEL on Pole Position SO is connected to IOSEL on Pole Position
***************************************************************************/ ***************************************************************************/

View File

@ -10,4 +10,4 @@
***************************************************************************/ ***************************************************************************/
extern const char build_version[]; extern const char build_version[];
const char build_version[] = "0.131u3 ("__DATE__")"; const char build_version[] = "0.131u4 ("__DATE__")";