Previous 199869 Revisions Next

r30978 Sunday 15th June, 2014 at 09:39:06 UTC by David Haywood
shuffle (nw)
[src/mame/drivers]gstriker.c
[src/mame/video]gstriker.c

trunk/src/mame/drivers/gstriker.c
r30977r30978
276276   AM_RANGE(0x140000, 0x141fff) AM_RAM AM_SHARE("cg10103_m_vram")
277277   AM_RANGE(0x180000, 0x180fff) AM_DEVREADWRITE("texttilemap", vs920a_text_tilemap_device,  vram_r, vram_w )
278278   AM_RANGE(0x181000, 0x181fff) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device,  line_r, line_w )
279   AM_RANGE(0x1c0000, 0x1c0fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
279   AM_RANGE(0x1c0000, 0x1c0fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette") AM_MIRROR(0x00f000)
280280
281281   AM_RANGE(0x200000, 0x20000f) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device,  regs_r, regs_w )
282282   AM_RANGE(0x200040, 0x20005f) AM_RAM AM_SHARE("mixerregs1")
r30977r30978
307307ADDRESS_MAP_END
308308
309309
310static ADDRESS_MAP_START( vgoal_map, AS_PROGRAM, 16, gstriker_state )
311   AM_RANGE(0x000000, 0x0fffff) AM_ROM
312   AM_RANGE(0x100000, 0x103fff) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device,  vram_r, vram_w )
313   AM_RANGE(0x140000, 0x141fff) AM_RAM AM_SHARE("cg10103_m_vram")
314   AM_RANGE(0x180000, 0x180fff) AM_DEVREADWRITE("texttilemap", vs920a_text_tilemap_device,  vram_r, vram_w )
315   AM_RANGE(0x181000, 0x181fff) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device,  line_r, line_w )
316   AM_RANGE(0x1c0000, 0x1c4fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette")
317   AM_RANGE(0x200000, 0x20000f) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device,  regs_r, regs_w )
318   AM_RANGE(0x200040, 0x20005f) AM_RAM AM_SHARE("mixerregs1")
319   AM_RANGE(0x200060, 0x20007f) AM_RAM AM_SHARE("mixerregs2")
320310
321   AM_RANGE(0x200080, 0x200081) AM_READ_PORT("P1")
322   AM_RANGE(0x200082, 0x200083) AM_READ_PORT("P2")
323   AM_RANGE(0x200084, 0x200085) AM_READ_PORT("SYSTEM")
324   AM_RANGE(0x200086, 0x200087) AM_READ_PORT("DSW1")
325   AM_RANGE(0x200088, 0x200089) AM_READ_PORT("DSW2")
326   AM_RANGE(0x20008e, 0x20008f) AM_READ(dmmy_8f)
327
328   AM_RANGE(0x2000a0, 0x2000a1) AM_WRITE(sound_command_w)
329   AM_RANGE(0xffc000, 0xffffff) AM_RAM AM_SHARE("work_ram")
330ADDRESS_MAP_END
331
332311/*** INPUT PORTS *************************************************************/
333312
334313static INPUT_PORTS_START( gstriker_generic )
r30977r30978
583562   MCFG_SOUND_ROUTE(2, "rspeaker", 1.0)
584563MACHINE_CONFIG_END
585564
586
587static MACHINE_CONFIG_START( vgoal, gstriker_state )
588   MCFG_CPU_ADD("maincpu", M68000, 16000000)
589   MCFG_CPU_PROGRAM_MAP(vgoal_map)
565static MACHINE_CONFIG_DERIVED( twc94, gstriker )
566   MCFG_CPU_REPLACE("maincpu", M68000, 16000000)
567   MCFG_CPU_PROGRAM_MAP(gstriker_map)
590568   MCFG_CPU_VBLANK_INT_DRIVER("screen", gstriker_state,  irq1_line_hold)
569MACHINE_CONFIG_END
591570
592   MCFG_CPU_ADD("audiocpu", Z80,8000000/2) /* 4 MHz ??? */
593   MCFG_CPU_PROGRAM_MAP(sound_map)
594   MCFG_CPU_IO_MAP(sound_io_map)
595571
596   MCFG_SCREEN_ADD("screen", RASTER)
597   MCFG_SCREEN_VIDEO_ATTRIBUTES(VIDEO_UPDATE_AFTER_VBLANK)
598   MCFG_SCREEN_REFRESH_RATE(60)
599   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(5000) /* hand-tuned, it needs a bit */)
600   MCFG_SCREEN_SIZE(64*8, 64*8)
601   MCFG_SCREEN_VISIBLE_AREA(0*8, 40*8-1, 0*8, 28*8-1)
602   MCFG_SCREEN_UPDATE_DRIVER(gstriker_state, screen_update_gstriker)
603   MCFG_SCREEN_PALETTE("palette")
572static MACHINE_CONFIG_DERIVED( vgoal, gstriker )
573   MCFG_CPU_REPLACE("maincpu", M68000, 16000000)
574   MCFG_CPU_PROGRAM_MAP(gstriker_map)
575   MCFG_CPU_VBLANK_INT_DRIVER("screen", gstriker_state,  irq1_line_hold)
604576
605   MCFG_GFXDECODE_ADD("gfxdecode", "palette", gstriker)
606   MCFG_PALETTE_ADD("palette", 0x2000)
607   MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
608
609   MCFG_DEVICE_ADD("zoomtilemap", MB60553, 0)
610   MCFG_MB60553_GFXDECODE("gfxdecode")
611
612   MCFG_DEVICE_ADD("texttilemap", VS920A, 0)
613   MCFG_VS920A_GFXDECODE("gfxdecode")
614
615   MCFG_DEVICE_ADD("vsystem_spr", VSYSTEM_SPR, 0)
577   MCFG_DEVICE_REPLACE("vsystem_spr", VSYSTEM_SPR, 0)
616578   MCFG_VSYSTEM_SPR_SET_GFXREGION(2)
579   MCFG_VSYSTEM_SPR_SET_TRANSPEN(0xf) // different vs. the other games, find register
617580   MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode")
618581   MCFG_VSYSTEM_SPR_PALETTE("palette")
619
620   MCFG_VIDEO_START_OVERRIDE(gstriker_state,gstriker)
621
622   MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
623
624   MCFG_SOUND_ADD("ymsnd", YM2610, 8000000)
625   MCFG_YM2610_IRQ_HANDLER(WRITELINE(gstriker_state, gs_ym2610_irq))
626   MCFG_SOUND_ROUTE(0, "lspeaker",  0.25)
627   MCFG_SOUND_ROUTE(0, "rspeaker", 0.25)
628   MCFG_SOUND_ROUTE(1, "lspeaker",  1.0)
629   MCFG_SOUND_ROUTE(2, "rspeaker", 1.0)
630582MACHINE_CONFIG_END
631583
632584
r30977r30978
11001052/* Similar, but not identical hardware, appear to be protected by an MCU :-( */
11011053GAME( 1994, vgoalsoc, 0,        vgoal,    vgoalsoc, gstriker_state, vgoalsoc,   ROT0, "Tecmo", "V Goal Soccer (set 1)", GAME_NOT_WORKING )
11021054GAME( 1994, vgoalsca, vgoalsoc, vgoal,    vgoalsoc, gstriker_state, vgoalsoc,   ROT0, "Tecmo", "V Goal Soccer (set 2)", GAME_NOT_WORKING )
1103GAME( 1994, twrldc94, 0,        gstriker, twrldc94, gstriker_state, twrldc94,   ROT0, "Tecmo", "Tecmo World Cup '94 (set 1)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS )
1104GAME( 1994, twrldc94a,twrldc94, gstriker, twrldc94, gstriker_state, twrldc94a,  ROT0, "Tecmo", "Tecmo World Cup '94 (set 2)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS )
1055GAME( 1994, twrldc94, 0,        twc94,    twrldc94, gstriker_state, twrldc94,   ROT0, "Tecmo", "Tecmo World Cup '94 (set 1)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS )
1056GAME( 1994, twrldc94a,twrldc94, twc94,    twrldc94, gstriker_state, twrldc94a,  ROT0, "Tecmo", "Tecmo World Cup '94 (set 2)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS )
trunk/src/mame/video/gstriker.c
r30977r30978
99
1010UINT32 gstriker_state::screen_update_gstriker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
1111{
12   bitmap.fill(m_palette->black_pen(), cliprect);
12   bitmap.fill(m_mixerregs1[8]&0x07ff, cliprect); // complete guess, causes green behind test grid in twc94 and blue behind title screen on gstriker
1313   
1414   popmessage("%04x %04x %04x %04x %04x %04x %04x %04x | %04x %04x %04x %04x %04x %04x %04x %04x", m_mixerregs1[0],m_mixerregs1[1],m_mixerregs1[2],m_mixerregs1[3],m_mixerregs1[4],m_mixerregs1[5],m_mixerregs1[6],m_mixerregs1[7],  m_mixerregs1[8],m_mixerregs1[9],m_mixerregs1[10],m_mixerregs1[11],m_mixerregs1[12],m_mixerregs1[13],m_mixerregs1[14],m_mixerregs1[15] );
15//   popmessage("%04x %04x %04x %04x %04x %04x %04x %04x | %04x %04x %04x %04x %04x %04x %04x %04x", m_mixerregs2[0],m_mixerregs2[1],m_mixerregs2[2],m_mixerregs2[3],m_mixerregs2[4],m_mixerregs2[5],m_mixerregs2[6],m_mixerregs2[7],  m_mixerregs2[8],m_mixerregs2[9],m_mixerregs2[10],m_mixerregs2[11],m_mixerregs2[12],m_mixerregs2[13],m_mixerregs2[14],m_mixerregs2[15] );
1516
1617   m_spr->set_pal_base( (m_mixerregs1[0]&0xf000)>>8 );
1718   m_bg->set_pal_base( (m_mixerregs1[1]&0xf000)>>8 );

Previous 199869 Revisions Next


© 1997-2024 The MAME Team