summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/seibu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/seibu.h')
-rw-r--r--src/mame/audio/seibu.h161
1 files changed, 80 insertions, 81 deletions
diff --git a/src/mame/audio/seibu.h b/src/mame/audio/seibu.h
index aa55cc12275..2894ecee996 100644
--- a/src/mame/audio/seibu.h
+++ b/src/mame/audio/seibu.h
@@ -64,7 +64,7 @@ DECLARE_WRITE8_DEVICE_HANDLER( seibu_adpcm_adr_w );
DECLARE_WRITE8_DEVICE_HANDLER( seibu_adpcm_ctl_w );
class seibu_adpcm_device : public device_t,
- public device_sound_interface
+ public device_sound_interface
{
public:
seibu_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
@@ -92,7 +92,7 @@ extern const ym2203_interface seibu_ym2203_interface;
struct seibu_adpcm_interface
{
- const char *rom_region;
+ const char *rom_region;
};
extern const seibu_adpcm_interface seibu_adpcm1_intf;
@@ -100,123 +100,122 @@ extern const seibu_adpcm_interface seibu_adpcm2_intf;
/**************************************************************************/
-#define SEIBU_COIN_INPUTS \
- PORT_START("COIN") \
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(4) \
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(4) \
+#define SEIBU_COIN_INPUTS \
+ PORT_START("COIN") \
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(4) \
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(4) \
PORT_BIT( 0xfc, IP_ACTIVE_HIGH, IPT_UNUSED )
-#define SEIBU_COIN_INPUTS_INVERT \
- PORT_START("COIN") \
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(4) \
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(4) \
+#define SEIBU_COIN_INPUTS_INVERT \
+ PORT_START("COIN") \
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_IMPULSE(4) \
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 ) PORT_IMPULSE(4) \
PORT_BIT( 0xfc, IP_ACTIVE_LOW, IPT_UNUSED )
-#define SEIBU_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu_sound_map) \
+#define SEIBU_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu_sound_map) \
-#define SEIBU2_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu2_sound_map) \
+#define SEIBU2_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu2_sound_map) \
-#define SEIBU2_AIRRAID_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu2_airraid_sound_map) \
+#define SEIBU2_AIRRAID_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu2_airraid_sound_map) \
-#define SEIBU2_RAIDEN2_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu2_raiden2_sound_map) \
+#define SEIBU2_RAIDEN2_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu2_raiden2_sound_map) \
-#define SEIBU_NEWZEROTEAM_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu_newzeroteam_sound_map) \
+#define SEIBU_NEWZEROTEAM_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu_newzeroteam_sound_map) \
-#define SEIBU3_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu3_sound_map) \
+#define SEIBU3_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu3_sound_map) \
-#define SEIBU3A_SOUND_SYSTEM_CPU(freq) \
- MCFG_CPU_ADD("audiocpu", Z80, freq) \
- MCFG_CPU_PROGRAM_MAP(seibu3_adpcm_sound_map) \
+#define SEIBU3A_SOUND_SYSTEM_CPU(freq) \
+ MCFG_CPU_ADD("audiocpu", Z80, freq) \
+ MCFG_CPU_PROGRAM_MAP(seibu3_adpcm_sound_map) \
-#define SEIBU_SOUND_SYSTEM_YM3812_INTERFACE(freq1,freq2) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_SOUND_SYSTEM_YM3812_INTERFACE(freq1,freq2) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \
- MCFG_SOUND_CONFIG(seibu_ym3812_interface) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
+ MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \
+ MCFG_SOUND_CONFIG(seibu_ym3812_interface) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
\
- MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+ MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
-#define SEIBU_SOUND_SYSTEM_YM3812_RAIDEN_INTERFACE(freq1,freq2) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_SOUND_SYSTEM_YM3812_RAIDEN_INTERFACE(freq1,freq2) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \
- MCFG_SOUND_CONFIG(seibu_ym3812_interface) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
+ MCFG_SOUND_ADD("ymsnd", YM3812, freq1) \
+ MCFG_SOUND_CONFIG(seibu_ym3812_interface) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
\
- MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_HIGH) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
+ MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_HIGH) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) \
-#define SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(freq1,freq2) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_SOUND_SYSTEM_YM2151_INTERFACE(freq1,freq2) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_YM2151_ADD("ymsnd", freq1) \
+ MCFG_YM2151_ADD("ymsnd", freq1) \
MCFG_YM2151_IRQ_HANDLER(WRITELINE(driver_device, member_wrapper_line<seibu_ym2151_irqhandler>)) \
- MCFG_SOUND_ROUTE(0, "mono", 0.50) \
- MCFG_SOUND_ROUTE(1, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(0, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(1, "mono", 0.50) \
\
- MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+ MCFG_OKIM6295_ADD("oki", freq2, OKIM6295_PIN7_LOW) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
-#define SEIBU_AIRRAID_SOUND_SYSTEM_YM2151_INTERFACE(freq1) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_AIRRAID_SOUND_SYSTEM_YM2151_INTERFACE(freq1) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_YM2151_ADD("ymsnd", freq1) \
+ MCFG_YM2151_ADD("ymsnd", freq1) \
MCFG_YM2151_IRQ_HANDLER(WRITELINE(driver_device, member_wrapper_line<seibu_ym2151_irqhandler>)) \
- MCFG_SOUND_ROUTE(0, "mono", 0.50) \
- MCFG_SOUND_ROUTE(1, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(0, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(1, "mono", 0.50) \
\
-#define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1,freq2,regiona, regionb) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_SOUND_SYSTEM_YM2151_RAIDEN2_INTERFACE(freq1,freq2,regiona, regionb) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_YM2151_ADD("ymsnd", freq1) \
+ MCFG_YM2151_ADD("ymsnd", freq1) \
MCFG_YM2151_IRQ_HANDLER(WRITELINE(driver_device, member_wrapper_line<seibu_ym2151_irqhandler>)) \
- MCFG_SOUND_ROUTE(0, "mono", 0.50) \
- MCFG_SOUND_ROUTE(1, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(0, "mono", 0.50) \
+ MCFG_SOUND_ROUTE(1, "mono", 0.50) \
\
- MCFG_OKIM6295_ADD("oki1", freq2, OKIM6295_PIN7_HIGH) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+ MCFG_OKIM6295_ADD("oki1", freq2, OKIM6295_PIN7_HIGH) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
\
- MCFG_OKIM6295_ADD("oki2", freq2, OKIM6295_PIN7_HIGH) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+ MCFG_OKIM6295_ADD("oki2", freq2, OKIM6295_PIN7_HIGH) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
-#define SEIBU_SOUND_SYSTEM_YM2203_INTERFACE(freq) \
- MCFG_SPEAKER_STANDARD_MONO("mono") \
+#define SEIBU_SOUND_SYSTEM_YM2203_INTERFACE(freq) \
+ MCFG_SPEAKER_STANDARD_MONO("mono") \
\
- MCFG_SOUND_ADD("ym1", YM2203, freq) \
- MCFG_SOUND_CONFIG(seibu_ym2203_interface) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) \
+ MCFG_SOUND_ADD("ym1", YM2203, freq) \
+ MCFG_SOUND_CONFIG(seibu_ym2203_interface) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) \
\
- MCFG_SOUND_ADD("ym2", YM2203, freq) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) \
+ MCFG_SOUND_ADD("ym2", YM2203, freq) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.15) \
-#define SEIBU_SOUND_SYSTEM_ADPCM_INTERFACE \
- MCFG_SOUND_ADD("adpcm1", SEIBU_ADPCM, 8000) \
- MCFG_SOUND_CONFIG(seibu_adpcm1_intf) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+#define SEIBU_SOUND_SYSTEM_ADPCM_INTERFACE \
+ MCFG_SOUND_ADD("adpcm1", SEIBU_ADPCM, 8000) \
+ MCFG_SOUND_CONFIG(seibu_adpcm1_intf) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
\
- MCFG_SOUND_ADD("adpcm2", SEIBU_ADPCM, 8000) \
- MCFG_SOUND_CONFIG(seibu_adpcm2_intf) \
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
+ MCFG_SOUND_ADD("adpcm2", SEIBU_ADPCM, 8000) \
+ MCFG_SOUND_CONFIG(seibu_adpcm2_intf) \
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40) \
/**************************************************************************/
-