Small Konami update: [Mamesick]

- aliens.c : reverted wrong changes applied in 0.145u8.
- crimfght.c : reverted wrong changes applied in 0.145u8.
- vendetta.c : small cosmetic changes plus PCB components verified.
This commit is contained in:
Michaël Banaan Ananas 2012-05-15 23:12:14 +00:00
parent 0bfe9374bf
commit f479f7925f
4 changed files with 19 additions and 31 deletions

View File

@ -19,15 +19,12 @@ Preliminary driver by:
/* prototypes */
static KONAMI_SETLINES_CALLBACK( aliens_banking );
static TIMER_DEVICE_CALLBACK( aliens_scanline )
static INTERRUPT_GEN( aliens_interrupt )
{
aliens_state *state = timer.machine().driver_data<aliens_state>();
int scanline = param;
aliens_state *state = device->machine().driver_data<aliens_state>();
if(scanline == 240 && k051960_is_irq_enabled(state->m_k051960)) // vblank irq
cputag_set_input_line(timer.machine(), "maincpu", KONAMI_IRQ_LINE, HOLD_LINE);
else if(((scanline % 32) == 0) && (k051960_is_nmi_enabled(state->m_k051960))) // timer irq
cputag_set_input_line(timer.machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
if (k051960_is_irq_enabled(state->m_k051960))
device_set_input_line(device, KONAMI_IRQ_LINE, HOLD_LINE);
}
READ8_MEMBER(aliens_state::bankedram_r)
@ -260,15 +257,13 @@ static MACHINE_CONFIG_START( aliens, aliens_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", KONAMI,XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_PROGRAM_MAP(aliens_map)
MCFG_TIMER_ADD_SCANLINE("scantimer", aliens_scanline, "screen", 0, 1)
MCFG_CPU_VBLANK_INT("screen", aliens_interrupt)
MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(aliens_sound_map)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
MCFG_MACHINE_START(aliens)
MCFG_MACHINE_RESET(aliens)

View File

@ -23,16 +23,12 @@
/* prototypes */
static KONAMI_SETLINES_CALLBACK( crimfght_banking );
static TIMER_DEVICE_CALLBACK( crimfght_scanline )
static INTERRUPT_GEN( crimfght_interrupt )
{
crimfght_state *state = timer.machine().driver_data<crimfght_state>();
int scanline = param;
if(scanline == 240 && k051960_is_irq_enabled(state->m_k051960)) // vblank irq
cputag_set_input_line(timer.machine(), "maincpu", KONAMI_IRQ_LINE, HOLD_LINE);
else if(((scanline % 32) == 0) && (k051960_is_nmi_enabled(state->m_k051960))) // timer irq
cputag_set_input_line(timer.machine(), "maincpu", INPUT_LINE_NMI, PULSE_LINE);
crimfght_state *state = device->machine().driver_data<crimfght_state>();
if (k051960_is_irq_enabled(state->m_k051960))
device_set_input_line(device, KONAMI_IRQ_LINE, HOLD_LINE);
}
WRITE8_MEMBER(crimfght_state::crimfght_coin_w)
@ -286,15 +282,13 @@ static MACHINE_RESET( crimfght )
static MACHINE_CONFIG_START( crimfght, crimfght_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", KONAMI,XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_PROGRAM_MAP(crimfght_map)
MCFG_TIMER_ADD_SCANLINE("scantimer", crimfght_scanline, "screen", 0, 1)
MCFG_CPU_VBLANK_INT("screen", crimfght_interrupt)
MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(crimfght_sound_map)
MCFG_QUANTUM_TIME(attotime::from_hz(600))
MCFG_MACHINE_START(crimfght)
MCFG_MACHINE_RESET(crimfght)

View File

@ -307,7 +307,7 @@ static const eeprom_interface eeprom_intf =
static MACHINE_CONFIG_START( simpsons, simpsons_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/2/4) /* pin 18 of konami cpu is 12Mhz, while pin 17 is 3mhz. Clock probably divided internally by 4 */
MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_VBLANK_INT("screen", simpsons_irq) /* IRQ triggered by the 052109, FIRQ by the sprite hardware */

View File

@ -503,12 +503,11 @@ static MACHINE_RESET( vendetta )
static MACHINE_CONFIG_START( vendetta, vendetta_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", KONAMI, 6000000) /* this is strange, seems an overclock but */
// MCFG_CPU_ADD("maincpu", KONAMI, 3000000) /* is needed to have correct music speed */
MCFG_CPU_ADD("maincpu", KONAMI, XTAL_24MHz/8) /* 052001 (verified on pcb) */
MCFG_CPU_PROGRAM_MAP(main_map)
MCFG_CPU_VBLANK_INT("screen", vendetta_irq)
MCFG_CPU_ADD("audiocpu", Z80, 3579545) /* verified with PCB */
MCFG_CPU_ADD("audiocpu", Z80, XTAL_3_579545MHz) /* verified with PCB */
MCFG_CPU_PROGRAM_MAP(sound_map)
/* interrupts are triggered by the main CPU */
@ -521,7 +520,7 @@ static MACHINE_CONFIG_START( vendetta, vendetta_state )
MCFG_VIDEO_ATTRIBUTES(VIDEO_HAS_SHADOWS)
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_REFRESH_RATE(59.17) /* measured on PCB */
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(64*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(13*8, (64-13)*8-1, 2*8, 30*8-1 )
@ -537,11 +536,11 @@ static MACHINE_CONFIG_START( vendetta, vendetta_state )
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_SOUND_ADD("ymsnd", YM2151, 3579545) /* verified with PCB */
MCFG_SOUND_ADD("ymsnd", YM2151, XTAL_3_579545MHz) /* verified with PCB */
MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MCFG_SOUND_ADD("k053260", K053260, 3579545) /* verified with PCB */
MCFG_SOUND_ADD("k053260", K053260, XTAL_3_579545MHz) /* verified with PCB */
MCFG_SOUND_ROUTE(0, "lspeaker", 0.75)
MCFG_SOUND_ROUTE(1, "rspeaker", 0.75)
MACHINE_CONFIG_END