mainevt.cpp: Derive clocks from XTAL values (nw)

This commit is contained in:
AJR 2018-03-25 21:26:30 -04:00
parent fb2c61e1e9
commit 66ee995028

View File

@ -413,11 +413,11 @@ INTERRUPT_GEN_MEMBER(mainevt_state::devstors_sound_timer_irq)
MACHINE_CONFIG_START(mainevt_state::mainevt)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", HD6309, 3000000*4) /* ?? */
MCFG_CPU_ADD("maincpu", HD6309E, 3000000) /* ?? */
MCFG_CPU_PROGRAM_MAP(mainevt_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", mainevt_state, mainevt_interrupt)
MCFG_CPU_ADD("audiocpu", Z80, 3579545) /* 3.579545 MHz */
MCFG_CPU_ADD("audiocpu", Z80, 3.579545_MHz_XTAL) /* 3.579545 MHz */
MCFG_CPU_PROGRAM_MAP(mainevt_sound_map)
MCFG_CPU_PERIODIC_INT_DRIVER(mainevt_state, mainevt_sound_timer_irq, 8*60) /* ??? */
@ -434,11 +434,11 @@ MACHINE_CONFIG_START(mainevt_state::mainevt)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_DEVICE_ADD("k052109", K052109, 24_MHz_XTAL)
MCFG_GFX_PALETTE("palette")
MCFG_K052109_CB(mainevt_state, mainevt_tile_callback)
MCFG_DEVICE_ADD("k051960", K051960, 0)
MCFG_DEVICE_ADD("k051960", K051960, 24_MHz_XTAL)
MCFG_GFX_PALETTE("palette")
MCFG_K051960_SCREEN_TAG("screen")
MCFG_K051960_CB(mainevt_state, mainevt_sprite_callback)
@ -448,7 +448,7 @@ MACHINE_CONFIG_START(mainevt_state::mainevt)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_SOUND_ADD("k007232", K007232, 3579545)
MCFG_SOUND_ADD("k007232", K007232, 3.579545_MHz_XTAL)
MCFG_K007232_PORT_WRITE_HANDLER(WRITE8(mainevt_state, volume_callback))
MCFG_SOUND_ROUTE(0, "mono", 0.20)
MCFG_SOUND_ROUTE(1, "mono", 0.20)
@ -461,11 +461,11 @@ MACHINE_CONFIG_END
MACHINE_CONFIG_START(mainevt_state::devstors)
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", HD6309, 3000000*4) /* ?? */
MCFG_CPU_ADD("maincpu", HD6309E, 24_MHz_XTAL / 8) // E & Q generated by 052109
MCFG_CPU_PROGRAM_MAP(devstors_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", mainevt_state, dv_interrupt)
MCFG_CPU_ADD("audiocpu", Z80, 3579545) /* 3.579545 MHz */
MCFG_CPU_ADD("audiocpu", Z80, 3.579545_MHz_XTAL)
MCFG_CPU_PROGRAM_MAP(devstors_sound_map)
MCFG_CPU_PERIODIC_INT_DRIVER(mainevt_state, devstors_sound_timer_irq, 4*60) /* ??? */
@ -482,11 +482,11 @@ MACHINE_CONFIG_START(mainevt_state::devstors)
MCFG_PALETTE_ENABLE_SHADOWS()
MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR)
MCFG_DEVICE_ADD("k052109", K052109, 0)
MCFG_DEVICE_ADD("k052109", K052109, 24_MHz_XTAL)
MCFG_GFX_PALETTE("palette")
MCFG_K052109_CB(mainevt_state, dv_tile_callback)
MCFG_DEVICE_ADD("k051960", K051960, 0)
MCFG_DEVICE_ADD("k051960", K051960, 24_MHz_XTAL)
MCFG_GFX_PALETTE("palette")
MCFG_K051960_SCREEN_TAG("screen")
MCFG_K051960_CB(mainevt_state, dv_sprite_callback)
@ -498,11 +498,11 @@ MACHINE_CONFIG_START(mainevt_state::devstors)
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_YM2151_ADD("ymsnd", 3579545)
MCFG_YM2151_ADD("ymsnd", 3.579545_MHz_XTAL)
MCFG_SOUND_ROUTE(0, "mono", 0.30)
MCFG_SOUND_ROUTE(1, "mono", 0.30)
MCFG_SOUND_ADD("k007232", K007232, 3579545)
MCFG_SOUND_ADD("k007232", K007232, 3.579545_MHz_XTAL)
MCFG_K007232_PORT_WRITE_HANDLER(WRITE8(mainevt_state, volume_callback))
MCFG_SOUND_ROUTE(0, "mono", 0.20)
MCFG_SOUND_ROUTE(1, "mono", 0.20)