mirror of
https://github.com/holub/mame
synced 2025-04-28 03:02:52 +03:00
Some more cleanup (nw)
This commit is contained in:
parent
a1b116c06f
commit
bc4e5ad73a
@ -1230,7 +1230,7 @@ static MACHINE_CONFIG_START( cps2, cps_state )
|
||||
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(qsound_sub_map)
|
||||
MCFG_CPU_PERIODIC_INT(irq0_line_hold, 251) /* 251 is good (see 'mercy mercy mercy'section of sgemf attract mode for accurate sound sync */
|
||||
MCFG_CPU_PERIODIC_INT_DRIVER(cps_state, irq0_line_hold, 251) /* 251 is good (see 'mercy mercy mercy'section of sgemf attract mode for accurate sound sync */
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(cps_state,cps2)
|
||||
|
||||
|
@ -1506,7 +1506,7 @@ static MACHINE_CONFIG_START( nbmjdrv2, nbmj8991_state ) // pstadium
|
||||
MCFG_CPU_ADD("audiocpu", Z80, 4000000) /* 4.00 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(nbmj8991_sound_map)
|
||||
MCFG_CPU_IO_MAP(nbmj8991_sound_io_map)
|
||||
MCFG_CPU_PERIODIC_INT(irq0_line_hold, 128*60) // ?
|
||||
MCFG_CPU_PERIODIC_INT_DRIVER(nbmj8991_state, irq0_line_hold, 128*60) // ?
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
|
@ -638,7 +638,7 @@ static MACHINE_CONFIG_START( pipedrm, fromance_state )
|
||||
MCFG_CPU_ADD("maincpu", Z80,12000000/2)
|
||||
MCFG_CPU_PROGRAM_MAP(main_map)
|
||||
MCFG_CPU_IO_MAP(main_portmap)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", fromance_state, irq0_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("sub", Z80,14318000/4)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
@ -677,7 +677,7 @@ static MACHINE_CONFIG_START( hatris, fromance_state )
|
||||
MCFG_CPU_ADD("maincpu", Z80,12000000/2)
|
||||
MCFG_CPU_PROGRAM_MAP(main_map)
|
||||
MCFG_CPU_IO_MAP(main_portmap)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq0_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", fromance_state, irq0_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("sub", Z80,14318000/4)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
|
@ -484,7 +484,7 @@ static MACHINE_CONFIG_START( powerbal, playmark_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(powerbal_main_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq2_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", playmark_state, irq2_line_hold)
|
||||
|
||||
MCFG_MACHINE_START_OVERRIDE(playmark_state,powerbal)
|
||||
MCFG_MACHINE_RESET_OVERRIDE(playmark_state,powerbal)
|
||||
@ -514,7 +514,7 @@ static MACHINE_CONFIG_START( magicstk, playmark_state )
|
||||
/* basic machine hardware */
|
||||
MCFG_CPU_ADD("maincpu", M68000, 12000000) /* 12 MHz */
|
||||
MCFG_CPU_PROGRAM_MAP(magicstk_main_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq2_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", playmark_state, irq2_line_hold)
|
||||
|
||||
MCFG_EEPROM_ADD("eeprom", eeprom_intf)
|
||||
MCFG_EEPROM_DEFAULT_VALUE(0)
|
||||
|
@ -1947,7 +1947,7 @@ static MACHINE_CONFIG_START( system16a, segas16a_state )
|
||||
// basic machine hardware
|
||||
MCFG_CPU_ADD("maincpu", M68000, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system16a_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16a_state, irq4_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("soundcpu", Z80, 4000000)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
@ -1989,19 +1989,19 @@ MACHINE_CONFIG_END
|
||||
static MACHINE_CONFIG_DERIVED( system16a_fd1089a, system16a )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1089A, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system16a_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16a_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( system16a_fd1089b, system16a )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1089B, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system16a_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16a_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( system16a_fd1094, system16a )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1094, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system16a_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16a_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
|
@ -3286,7 +3286,7 @@ static MACHINE_CONFIG_START( system16b, segas16b_state )
|
||||
// basic machine hardware
|
||||
MCFG_CPU_ADD("maincpu", M68000, MASTER_CLOCK_10MHz)
|
||||
MCFG_CPU_PROGRAM_MAP(system16b_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16b_state, irq4_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("soundcpu", Z80, MASTER_CLOCK_10MHz/2)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
@ -3321,19 +3321,19 @@ MACHINE_CONFIG_END
|
||||
static MACHINE_CONFIG_DERIVED( system16b_fd1089a, system16b )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1089A, MASTER_CLOCK_10MHz)
|
||||
MCFG_CPU_PROGRAM_MAP(system16b_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16b_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( system16b_fd1089b, system16b )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1089B, MASTER_CLOCK_10MHz)
|
||||
MCFG_CPU_PROGRAM_MAP(system16b_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16b_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( system16b_fd1094, system16b )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1094, MASTER_CLOCK_10MHz)
|
||||
MCFG_CPU_PROGRAM_MAP(system16b_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas16b_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -7122,7 +7122,7 @@ static MACHINE_CONFIG_DERIVED_CLASS( isgsm, system16b, isgsm_state )
|
||||
|
||||
MCFG_CPU_ADD("maincpu", M68000, 16000000) // no obvious CPU, but seems to be clocked faster than an original system16 based on the boot times
|
||||
MCFG_CPU_PROGRAM_MAP(isgsm_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", isgsm_state, irq4_line_hold)
|
||||
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
@ -1242,7 +1242,7 @@ static MACHINE_CONFIG_START( system18, segas18_state )
|
||||
// basic machine hardware
|
||||
MCFG_CPU_ADD("maincpu", M68000, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system18_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas18_state, irq4_line_hold)
|
||||
|
||||
MCFG_CPU_ADD("soundcpu", Z80, 8000000)
|
||||
MCFG_CPU_PROGRAM_MAP(sound_map)
|
||||
@ -1293,7 +1293,7 @@ MACHINE_CONFIG_END
|
||||
static MACHINE_CONFIG_DERIVED( system18_fd1094, system18 )
|
||||
MCFG_CPU_REPLACE("maincpu", FD1094, 10000000)
|
||||
MCFG_CPU_PROGRAM_MAP(system18_map)
|
||||
MCFG_CPU_VBLANK_INT("screen", irq4_line_hold)
|
||||
MCFG_CPU_VBLANK_INT_DRIVER("screen", segas18_state, irq4_line_hold)
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
static MACHINE_CONFIG_DERIVED( system18_fd1094_i8751, system18_fd1094 )
|
||||
|
Loading…
Reference in New Issue
Block a user