mirror of
https://github.com/holub/mame
synced 2025-05-22 21:58:57 +03:00
Cleanups and version bump.
This commit is contained in:
parent
678873dae7
commit
0eed019da7
@ -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)),)
|
ifneq ($(filter SSEM,$(CPUS)),)
|
||||||
|
@ -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
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ DEVICE_GET_INFO( DEVTEMPLATE_ID(,) )
|
|||||||
case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(DEVTEMPLATE_ID(,_config)); break;
|
case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = sizeof(DEVTEMPLATE_ID(,_config)); break;
|
||||||
#endif
|
#endif
|
||||||
case DEVINFO_INT_CLASS: info->i = DEVTEMPLATE_CLASS; break;
|
case DEVINFO_INT_CLASS: info->i = DEVTEMPLATE_CLASS; break;
|
||||||
|
|
||||||
/* --- the following bits of info are returned as pointers --- */
|
/* --- the following bits of info are returned as pointers --- */
|
||||||
#if ((DEVTEMPLATE_FEATURES) & DT_HAS_ROM_REGION)
|
#if ((DEVTEMPLATE_FEATURES) & DT_HAS_ROM_REGION)
|
||||||
case DEVINFO_PTR_ROM_REGION: info->romregion = DEVTEMPLATE_ID(rom_,); break;
|
case DEVINFO_PTR_ROM_REGION: info->romregion = DEVTEMPLATE_ID(rom_,); break;
|
||||||
|
@ -100,8 +100,8 @@ 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)
|
||||||
|
@ -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 )
|
||||||
@ -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));
|
PLOG(("MC6840 #%s: reload_count(%d): clock = %d count = %d\n", device->tag, idx, clock, count));
|
||||||
|
|
||||||
duration = attotime_mul(ATTOTIME_IN_HZ(clock), count);
|
duration = attotime_mul(ATTOTIME_IN_HZ(clock), count);
|
||||||
if (idx == 2)
|
if (idx == 2)
|
||||||
duration = attotime_mul(duration, ptm6840->t3_divisor);
|
duration = attotime_mul(duration, ptm6840->t3_divisor);
|
||||||
|
|
||||||
PLOG(("MC6840 #%s: reload_count(%d): output = %lf\n", device->tag, idx, attotime_to_double(duration)));
|
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 )
|
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,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;
|
const device_config *device = (const device_config *)ptr;
|
||||||
ptm6840_timeout(device, 0);
|
ptm6840_timeout(device, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static TIMER_CALLBACK( ptm6840_timer2_cb )
|
static TIMER_CALLBACK( ptm6840_timer2_cb )
|
||||||
{
|
{
|
||||||
const device_config *device = (const device_config *)ptr;
|
const device_config *device = (const device_config *)ptr;
|
||||||
ptm6840_timeout(device, 1);
|
ptm6840_timeout(device, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static TIMER_CALLBACK( ptm6840_timer3_cb )
|
static TIMER_CALLBACK( ptm6840_timer3_cb )
|
||||||
{
|
{
|
||||||
const device_config *device = (const device_config *)ptr;
|
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 )
|
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 )
|
WRITE8_DEVICE_HANDLER( ptm6840_set_g1 )
|
||||||
{
|
{
|
||||||
ptm6840_set_gate(device, data, 0);
|
ptm6840_set_gate(device, data, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE8_DEVICE_HANDLER( ptm6840_set_g2 )
|
WRITE8_DEVICE_HANDLER( ptm6840_set_g2 )
|
||||||
{
|
{
|
||||||
ptm6840_set_gate(device, data, 1);
|
ptm6840_set_gate(device, data, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE8_DEVICE_HANDLER( ptm6840_set_g3 )
|
WRITE8_DEVICE_HANDLER( ptm6840_set_g3 )
|
||||||
{
|
{
|
||||||
ptm6840_set_gate(device, data, 2);
|
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 )
|
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 )
|
WRITE8_DEVICE_HANDLER( ptm6840_set_c1 )
|
||||||
{
|
{
|
||||||
ptm6840_set_clock(device, data, 0);
|
ptm6840_set_clock(device, data, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE8_DEVICE_HANDLER( ptm6840_set_c2 )
|
WRITE8_DEVICE_HANDLER( ptm6840_set_c2 )
|
||||||
{
|
{
|
||||||
ptm6840_set_clock(device, data, 1);
|
ptm6840_set_clock(device, data, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE8_DEVICE_HANDLER( ptm6840_set_c3 )
|
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 )
|
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 )
|
||||||
|
@ -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 )
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
National Semiconductor ADC12130 / ADC12132 / ADC12138
|
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
|
and Sample/Hold
|
||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
@ -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 )
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
National Semiconductor ADC12130 / ADC12132 / ADC12138
|
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
|
and Sample/Hold
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
@ -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
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/*-------------------------------------------------
|
/*-------------------------------------------------
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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 )
|
||||||
|
@ -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 )
|
||||||
@ -86,7 +86,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_reset_w )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* now look for a 0->1 transition */
|
/* now look for a 0->1 transition */
|
||||||
if (rp5h01->old_reset == 0 && newstate == 1)
|
if (rp5h01->old_reset == 0 && newstate == 1)
|
||||||
{
|
{
|
||||||
/* reset the counter */
|
/* reset the counter */
|
||||||
rp5h01->counter = 0;
|
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 )
|
WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
|
||||||
@ -110,7 +110,7 @@ WRITE8_DEVICE_HANDLER( rp5h01_clock_w )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* now look for a 1->0 transition */
|
/* 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 */
|
/* increment the counter, and mask it with the mode */
|
||||||
rp5h01->counter++;
|
rp5h01->counter++;
|
||||||
@ -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__;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
NEC uPD4701
|
NEC uPD4701
|
||||||
|
|
||||||
Incremental Encoder Control
|
Incremental Encoder Control
|
||||||
|
|
||||||
@ -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;
|
||||||
@ -34,7 +34,7 @@ struct _upd4701_state
|
|||||||
int cf;
|
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 */
|
16bit handlers in the following */
|
||||||
|
|
||||||
#define MASK_SWITCHES ( 7 )
|
#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)
|
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 )
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
NEC uPD4701
|
NEC uPD4701
|
||||||
|
|
||||||
Incremental Encoder Control
|
Incremental Encoder Control
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
Namco 52XX
|
Namco 52XX
|
||||||
|
|
||||||
This instance of the Fujitsu MB8843 MCU is programmed to act as a
|
This instance of the Fujitsu MB8843 MCU is programmed to act as a
|
||||||
sample player. It is used by just two games: Bosconian and Pole
|
sample player. It is used by just two games: Bosconian and Pole
|
||||||
Position.
|
Position.
|
||||||
|
|
||||||
A0-A15 = address to read from sample ROMs
|
A0-A15 = address to read from sample ROMs
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Namco 54XX
|
Namco 54XX
|
||||||
|
|
||||||
This custom chip is a Fujitsu MB8844 MCU programmed to act as a noise
|
This custom chip is a Fujitsu MB8844 MCU programmed to act as a noise
|
||||||
generator. It is used for explosions, the shoot sound in Bosconian,
|
generator. It is used for explosions, the shoot sound in Bosconian,
|
||||||
and the tire screech sound in Pole Position.
|
and the tire screech sound in Pole Position.
|
||||||
|
|
||||||
CMD = command from main CPU
|
CMD = command from main CPU
|
||||||
@ -28,8 +28,8 @@
|
|||||||
GND|14 15|R2 (CMD2)
|
GND|14 15|R2 (CMD2)
|
||||||
+------+
|
+------+
|
||||||
|
|
||||||
[1] The RNG that drives the type A output is output on pin 21, and
|
[1] The RNG that drives the type A output is output on pin 21, and
|
||||||
the one that drives the type B output is output on pin 22, but those
|
the one that drives the type B output is output on pin 22, but those
|
||||||
pins are not connected on the board.
|
pins are not connected on the board.
|
||||||
|
|
||||||
|
|
||||||
|
@ -5471,14 +5471,14 @@ ROM_END
|
|||||||
| 8 ROM10 ROM9 |
|
| 8 ROM10 ROM9 |
|
||||||
| DIP8 0 ROM12 ROM11 |
|
| DIP8 0 ROM12 ROM11 |
|
||||||
| 0 |
|
| 0 |
|
||||||
| DIP8 0 |
|
| DIP8 0 |
|
||||||
|------------------------------------------------------
|
|------------------------------------------------------
|
||||||
|
|
||||||
*1 = 12.000 Mhz
|
*1 = 12.000 Mhz
|
||||||
*2 = 3.579545 Mhz
|
*2 = 3.579545 Mhz
|
||||||
*3 = 16.000 Mhz
|
*3 = 16.000 Mhz
|
||||||
|
|
||||||
*/
|
*/
|
||||||
ROM_START( sf2ebbl )
|
ROM_START( sf2ebbl )
|
||||||
ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */
|
ROM_REGION( CODE_SIZE, "maincpu", 0 ) /* 68000 code */
|
||||||
ROM_LOAD16_BYTE( "12.bin", 0x00000, 0x40000, CRC(a258b4d5) SHA1(3433b6493794c98bb35c1b27cc65bb5f13d52e9b) )
|
ROM_LOAD16_BYTE( "12.bin", 0x00000, 0x40000, CRC(a258b4d5) SHA1(3433b6493794c98bb35c1b27cc65bb5f13d52e9b) )
|
||||||
@ -5509,14 +5509,14 @@ ROM_START( sf2ebbl )
|
|||||||
ROM_CONTINUE( 0x400005, 0x10000 )
|
ROM_CONTINUE( 0x400005, 0x10000 )
|
||||||
ROMX_LOAD( "08.bin", 0x400003, 0x10000, CRC(81c9550f) SHA1(2d75e329148caadfff35c8f2f91b352f14dbe08a) , ROM_SKIP(7) )
|
ROMX_LOAD( "08.bin", 0x400003, 0x10000, CRC(81c9550f) SHA1(2d75e329148caadfff35c8f2f91b352f14dbe08a) , ROM_SKIP(7) )
|
||||||
ROM_CONTINUE( 0x400007, 0x10000 )
|
ROM_CONTINUE( 0x400007, 0x10000 )
|
||||||
|
|
||||||
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
|
ROM_REGION( 0x18000, "audiocpu", 0 ) /* 64k for the audio CPU (+banks) */
|
||||||
ROM_LOAD( "03.bin", 0x00000, 0x08000, CRC(a4823a1b) SHA1(7b6bf59dfd578bfbbdb64c27988796783442d659) )
|
ROM_LOAD( "03.bin", 0x00000, 0x08000, CRC(a4823a1b) SHA1(7b6bf59dfd578bfbbdb64c27988796783442d659) )
|
||||||
ROM_CONTINUE( 0x10000, 0x08000 )
|
ROM_CONTINUE( 0x10000, 0x08000 )
|
||||||
|
|
||||||
ROM_REGION( 0x20000, "user1", 0 ) /* unknown (bootleg priority?) */
|
ROM_REGION( 0x20000, "user1", 0 ) /* unknown (bootleg priority?) */
|
||||||
ROM_LOAD( "04.bin", 0x00000, 0x10000, CRC(13ea1c44) SHA1(5b05fe4c3920e33d94fac5f59e09ff14b3e427fe) )
|
ROM_LOAD( "04.bin", 0x00000, 0x10000, CRC(13ea1c44) SHA1(5b05fe4c3920e33d94fac5f59e09ff14b3e427fe) )
|
||||||
|
|
||||||
ROM_REGION( 0x40000, "oki", 0 ) /* Samples */
|
ROM_REGION( 0x40000, "oki", 0 ) /* Samples */
|
||||||
ROM_LOAD( "02.bin", 0x00000, 0x20000, CRC(7f162009) SHA1(346bf42992b4c36c593e21901e22c87ae4a7d86d) )
|
ROM_LOAD( "02.bin", 0x00000, 0x20000, CRC(7f162009) SHA1(346bf42992b4c36c593e21901e22c87ae4a7d86d) )
|
||||||
ROM_LOAD( "01.bin", 0x20000, 0x20000, CRC(beade53f) SHA1(277c397dc12752719ec6b47d2224750bd1c07f79) )
|
ROM_LOAD( "01.bin", 0x20000, 0x20000, CRC(beade53f) SHA1(277c397dc12752719ec6b47d2224750bd1c07f79) )
|
||||||
|
@ -460,10 +460,10 @@ static INPUT_PORTS_START( hvyunit )
|
|||||||
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
/*copied from DJ Boy, WRONG
|
/*copied from DJ Boy, WRONG
|
||||||
|
|
||||||
HEAVY UNIT
|
HEAVY UNIT
|
||||||
Manufacturer: Taito
|
Manufacturer: Taito
|
||||||
Year: 1988 - Genre: Shooter
|
Year: 1988 - Genre: Shooter
|
||||||
Orientation: Horizontal
|
Orientation: Horizontal
|
||||||
Conversion Class: JAMMA
|
Conversion Class: JAMMA
|
||||||
DIP Switch Settings:
|
DIP Switch Settings:
|
||||||
SW#1
|
SW#1
|
||||||
@ -476,13 +476,13 @@ CABINET TYPE TABLE OFF
|
|||||||
VIDEO SCREEN NORMAL OFF
|
VIDEO SCREEN NORMAL OFF
|
||||||
FLIP ON
|
FLIP ON
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
TEST MODE NORMAL OFF
|
TEST MODE NORMAL OFF
|
||||||
TEST ON
|
TEST ON
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
COIN/CREDIT
|
COIN/CREDIT
|
||||||
COIN #1 1C/1P OFF OFF
|
COIN #1 1C/1P OFF OFF
|
||||||
1C/2P ON OFF
|
1C/2P ON OFF
|
||||||
2C/1P OFF ON
|
2C/1P OFF ON
|
||||||
2C/3P ON ON
|
2C/3P ON ON
|
||||||
|
|
||||||
COIN #2 1C/1P OFF OFF
|
COIN #2 1C/1P OFF OFF
|
||||||
@ -505,7 +505,7 @@ DIFFICULTY NORMAL OFF OFF
|
|||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
CONTINUE YES OFF
|
CONTINUE YES OFF
|
||||||
NO ON
|
NO ON
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
BONUS NO OFF
|
BONUS NO OFF
|
||||||
YES ON
|
YES ON
|
||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
|
@ -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" */
|
||||||
@ -1683,14 +1683,14 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
|
|||||||
if (io_stage[portnum] == 2)
|
if (io_stage[portnum] == 2)
|
||||||
{
|
{
|
||||||
/* here we read B, C & the additional buttons */
|
/* here we read B, C & the additional buttons */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0x30) |
|
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0x30) |
|
||||||
(input_port_read_safe(machine, pad6names[portnum], 0) & 0x0f)) & ~helper);
|
(input_port_read_safe(machine, pad6names[portnum], 0) & 0x0f)) & ~helper);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* here we read B, C & the directional buttons */
|
/* here we read B, C & the directional buttons */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
|
((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1699,20 +1699,20 @@ static UINT8 megadrive_io_read_data_port_6button(running_machine *machine, int p
|
|||||||
if (io_stage[portnum] == 1)
|
if (io_stage[portnum] == 1)
|
||||||
{
|
{
|
||||||
/* here we read ((Start & A) >> 2) | 0x00 */
|
/* here we read ((Start & A) >> 2) | 0x00 */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) & ~helper);
|
(((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) & ~helper);
|
||||||
}
|
}
|
||||||
else if (io_stage[portnum]==2)
|
else if (io_stage[portnum]==2)
|
||||||
{
|
{
|
||||||
/* here we read ((Start & A) >> 2) | 0x0f */
|
/* here we read ((Start & A) >> 2) | 0x0f */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) | 0x0f) & ~helper);
|
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) | 0x0f) & ~helper);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* here we read ((Start & A) >> 2) | Up and Down */
|
/* here we read ((Start & A) >> 2) | Up and Down */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
|
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
|
||||||
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
|
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1732,14 +1732,14 @@ static UINT8 megadrive_io_read_data_port_3button(running_machine *machine, int p
|
|||||||
if (megadrive_io_data_regs[portnum]&0x40)
|
if (megadrive_io_data_regs[portnum]&0x40)
|
||||||
{
|
{
|
||||||
/* here we read B, C & the directional buttons */
|
/* here we read B, C & the directional buttons */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
|
((input_port_read_safe(machine, pad3names[portnum], 0) & 0x3f) & ~helper);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* here we read ((Start & A) >> 2) | Up and Down */
|
/* here we read ((Start & A) >> 2) | Up and Down */
|
||||||
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
retdata = (megadrive_io_data_regs[portnum] & helper) |
|
||||||
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
|
((((input_port_read_safe(machine, pad3names[portnum], 0) & 0xc0) >> 2) |
|
||||||
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
|
(input_port_read_safe(machine, pad3names[portnum], 0) & 0x02)) & ~helper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1754,7 +1754,7 @@ UINT8 megatech_bios_port_cc_dc_r(running_machine *machine, int offset, int ctrl)
|
|||||||
if (ctrl == 0x55)
|
if (ctrl == 0x55)
|
||||||
{
|
{
|
||||||
/* A keys */
|
/* A keys */
|
||||||
retdata = ((input_port_read(machine, "PAD1") & 0x40) >> 2) |
|
retdata = ((input_port_read(machine, "PAD1") & 0x40) >> 2) |
|
||||||
((input_port_read(machine, "PAD2") & 0x40) >> 4) | 0xeb;
|
((input_port_read(machine, "PAD2") & 0x40) >> 4) | 0xeb;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -5925,7 +5925,7 @@ VIDEO_EOF(megadriv)
|
|||||||
megadrive_imode_odd_frame^=1;
|
megadrive_imode_odd_frame^=1;
|
||||||
// cputag_set_input_line(machine, "genesis_snd_z80", 0, CLEAR_LINE); // if the z80 interrupt hasn't happened by now, clear it..
|
// cputag_set_input_line(machine, "genesis_snd_z80", 0, CLEAR_LINE); // if the z80 interrupt hasn't happened by now, clear it..
|
||||||
|
|
||||||
if (input_port_read_safe(machine, "RESET", 0x00) & 0x01)
|
if (input_port_read_safe(machine, "RESET", 0x00) & 0x01)
|
||||||
cputag_set_input_line(machine, "maincpu", INPUT_LINE_RESET, PULSE_LINE);
|
cputag_set_input_line(machine, "maincpu", INPUT_LINE_RESET, PULSE_LINE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -537,8 +537,8 @@ static const ptm6840_interface ptm_ic2_intf =
|
|||||||
{
|
{
|
||||||
MPU4_MASTER_CLOCK / 4,
|
MPU4_MASTER_CLOCK / 4,
|
||||||
{ 0, 0, 0 },
|
{ 0, 0, 0 },
|
||||||
{ DEVCB_HANDLER(ic2_o1_callback),
|
{ DEVCB_HANDLER(ic2_o1_callback),
|
||||||
DEVCB_HANDLER(ic2_o2_callback),
|
DEVCB_HANDLER(ic2_o2_callback),
|
||||||
DEVCB_HANDLER(ic2_o3_callback) },
|
DEVCB_HANDLER(ic2_o3_callback) },
|
||||||
DEVCB_LINE(cpu0_irq_m6840)
|
DEVCB_LINE(cpu0_irq_m6840)
|
||||||
};
|
};
|
||||||
|
@ -404,7 +404,7 @@ static const ptm6840_interface ptm_vid_intf =
|
|||||||
{
|
{
|
||||||
VIDEO_MASTER_CLOCK / 10, /* 68k E clock */
|
VIDEO_MASTER_CLOCK / 10, /* 68k E clock */
|
||||||
{ 0, 0, 0 },
|
{ 0, 0, 0 },
|
||||||
{ DEVCB_HANDLER(vid_o1_callback),
|
{ DEVCB_HANDLER(vid_o1_callback),
|
||||||
DEVCB_HANDLER(vid_o2_callback),
|
DEVCB_HANDLER(vid_o2_callback),
|
||||||
DEVCB_HANDLER(vid_o3_callback) },
|
DEVCB_HANDLER(vid_o3_callback) },
|
||||||
DEVCB_LINE(cpu1_ptm_irq)
|
DEVCB_LINE(cpu1_ptm_irq)
|
||||||
|
@ -1010,7 +1010,7 @@ static const sharc_config sharc_cfg =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static double adc12138_input_callback( const device_config *device, UINT8 input )
|
static double adc12138_input_callback( const device_config *device, UINT8 input )
|
||||||
{
|
{
|
||||||
int value = 0;
|
int value = 0;
|
||||||
switch (input)
|
switch (input)
|
||||||
|
@ -361,7 +361,7 @@ static MACHINE_DRIVER_START( thedeep )
|
|||||||
/* IRQ by YM2203, NMI by when sound latch written by main cpu */
|
/* IRQ by YM2203, NMI by when sound latch written by main cpu */
|
||||||
|
|
||||||
/* CPU3 is a i8751 running at 8Mhz (8mhz xtal)*/
|
/* CPU3 is a i8751 running at 8Mhz (8mhz xtal)*/
|
||||||
|
|
||||||
MDRV_MACHINE_RESET(thedeep)
|
MDRV_MACHINE_RESET(thedeep)
|
||||||
|
|
||||||
/* video hardware */
|
/* video hardware */
|
||||||
|
@ -1133,7 +1133,7 @@ static UINT8 *taitofx1_eeprom2 = NULL;
|
|||||||
|
|
||||||
static WRITE32_HANDLER( bank_coh1000t_w )
|
static WRITE32_HANDLER( bank_coh1000t_w )
|
||||||
{
|
{
|
||||||
const device_config *mb3773 = devtag_get_device(space->machine, "mb3773");
|
const device_config *mb3773 = devtag_get_device(space->machine, "mb3773");
|
||||||
mb3773_set_ck(mb3773, 0, (data & 0x20) >> 5);
|
mb3773_set_ck(mb3773, 0, (data & 0x20) >> 5);
|
||||||
verboselog( space->machine, 1, "bank_coh1000t_w( %08x, %08x, %08x )\n", offset, data, mem_mask );
|
verboselog( space->machine, 1, "bank_coh1000t_w( %08x, %08x, %08x )\n", offset, data, mem_mask );
|
||||||
memory_set_bankptr(space->machine, 1, memory_region( space->machine, "user2" ) + ( ( data & 3 ) * 0x800000 ) );
|
memory_set_bankptr(space->machine, 1, memory_region( space->machine, "user2" ) + ( ( data & 3 ) * 0x800000 ) );
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
||||||
Namco 06XX
|
Namco 06XX
|
||||||
|
|
||||||
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
|
|
||||||
NMIs to the controlling CPU to drive reads based on a clock.
|
|
||||||
|
|
||||||
SD0-SD7 are data I/O lines connecting to the controlling CPU
|
This chip is used as an interface to up to 4 other custom chips.
|
||||||
SEL selects either control (1) or data (0), usually connected to
|
It signals IRQs to the custom MCUs when writes happen, and generates
|
||||||
an address line of the controlling CPU
|
NMIs to the controlling CPU to drive reads based on a clock.
|
||||||
/NMI is an NMI signal line for the controlling CPU
|
|
||||||
|
|
||||||
ID0-ID7 are data I/O lines connecting to the other custom chips
|
SD0-SD7 are data I/O lines connecting to the controlling CPU
|
||||||
/IO1-/IO4 are IRQ signal lines for each custom chip
|
SEL selects either control (1) or data (0), usually connected to
|
||||||
|
an address line of 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
|
||||||
|
/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
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
Namco 50XX
|
Namco 50XX
|
||||||
|
|
||||||
This custom chip is a Fujitsu MB8842 MCU programmed to act as a
|
This custom chip is a Fujitsu MB8842 MCU programmed to act as a
|
||||||
protection device. It keeps track of the players scores, and checks if
|
protection device. It keeps track of the players scores, and checks if
|
||||||
a high score has been obtained or bonus lives should be awarded. The
|
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 by
|
main CPU has a range of commands to increment/decrement the score by
|
||||||
various fixed amounts.
|
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
|
||||||
@ -30,7 +30,7 @@
|
|||||||
(ANS6) O6|10 19|R6 (n.c.)
|
(ANS6) O6|10 19|R6 (n.c.)
|
||||||
(ANS7) O7|11 18|R5 (n.c.)
|
(ANS7) O7|11 18|R5 (n.c.)
|
||||||
(CMD0) R7|12 17|R4 (n.c.)
|
(CMD0) R7|12 17|R4 (n.c.)
|
||||||
(CMD1) R0|13 16|R3 (CMD3)
|
(CMD1) R0|13 16|R3 (CMD3)
|
||||||
GND|14 15|R2 (CMD2)
|
GND|14 15|R2 (CMD2)
|
||||||
+------+
|
+------+
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
Namco 53XX
|
Namco 53XX
|
||||||
|
|
||||||
This instance of the Fujitsu MB8843 MCU is programmed to act as an I/O
|
This instance of the Fujitsu MB8843 MCU is programmed to act as an I/O
|
||||||
device. It is used by just two games: Dig Dug and Pole Position.
|
device. It is used by just two games: Dig Dug and Pole Position.
|
||||||
|
|
||||||
MOD0-MOD2 = input mode
|
MOD0-MOD2 = input mode
|
||||||
CS0-CS3 = chip select lines used to select 1 of 4 input sources
|
CS0-CS3 = chip select lines used to select 1 of 4 input sources
|
||||||
OUT0-OUT7 = 8-bit final output data
|
OUT0-OUT7 = 8-bit final output data
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
MOD selects one of 8 modes in which the input data is interpreted.
|
MOD selects one of 8 modes in which the input data is interpreted.
|
||||||
|
|
||||||
Pole Position is hard-wired to use mode 0, which reads 4 steering
|
Pole Position is hard-wired to use mode 0, which reads 4 steering
|
||||||
inputs and 4 DIP switches (only 1 of each is used). The steering
|
inputs and 4 DIP switches (only 1 of each is used). The steering
|
||||||
inputs are clocked on P0 and direction on P1, 1 bit per analog input.
|
inputs are clocked on P0 and direction on P1, 1 bit per analog input.
|
||||||
The DIP switches are connected to P2 and P3.
|
The DIP switches are connected to P2 and P3.
|
||||||
@ -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
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
|
@ -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__")";
|
||||||
|
Loading…
Reference in New Issue
Block a user