trunk/src/mame/includes/gstriker.h
| r30966 | r30967 | |
| 21 | 21 | m_audiocpu(*this, "audiocpu"), |
| 22 | 22 | m_gfxdecode(*this, "gfxdecode"), |
| 23 | 23 | m_screen(*this, "screen"), |
| 24 | | m_palette(*this, "palette") { } |
| 24 | m_palette(*this, "palette"), |
| 25 | m_mixerregs1(*this, "mixerregs1"), |
| 26 | m_mixerregs2(*this, "mixerregs2") |
| 27 | { } |
| 25 | 28 | |
| 26 | 29 | virtual void machine_start() |
| 27 | 30 | { |
| r30966 | r30967 | |
| 58 | 61 | DECLARE_DRIVER_INIT(vgoalsoc); |
| 59 | 62 | DECLARE_DRIVER_INIT(twrldc94); |
| 60 | 63 | DECLARE_VIDEO_START(gstriker); |
| 61 | | DECLARE_VIDEO_START(vgoalsoc); |
| 62 | | DECLARE_VIDEO_START(twrldc94); |
| 64 | |
| 65 | |
| 63 | 66 | UINT32 screen_update_gstriker(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 64 | 67 | |
| 65 | 68 | |
| r30966 | r30967 | |
| 70 | 73 | required_device<gfxdecode_device> m_gfxdecode; |
| 71 | 74 | required_device<screen_device> m_screen; |
| 72 | 75 | required_device<palette_device> m_palette; |
| 76 | required_shared_ptr<UINT16> m_mixerregs1; |
| 77 | required_shared_ptr<UINT16> m_mixerregs2; |
| 73 | 78 | }; |
| 74 | 79 | |
| 75 | 80 | #endif |
trunk/src/mame/video/gstriker.c
| r30966 | r30967 | |
| 11 | 11 | { |
| 12 | 12 | bitmap.fill(m_palette->black_pen(), cliprect); |
| 13 | 13 | |
| 14 | 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 | |
| 16 | m_spr->set_pal_base( (m_mixerregs1[0]&0xf000)>>8 ); |
| 17 | m_bg->set_pal_base( (m_mixerregs1[1]&0xf000)>>8 ); |
| 18 | m_tx->set_pal_base( (m_mixerregs1[2]&0xf000)>>8 ); |
| 19 | |
| 20 | |
| 14 | 21 | // Sandwitched screen/sprite0/score/sprite1. Surely wrong, probably |
| 15 | 22 | // needs sprite orthogonality |
| 16 | 23 | m_bg->draw( screen, bitmap,cliprect, 0); |
| r30966 | r30967 | |
| 24 | 31 | return 0; |
| 25 | 32 | } |
| 26 | 33 | |
| 27 | | VIDEO_START_MEMBER(gstriker_state,gstriker) |
| 34 | VIDEO_START_MEMBER(gstriker_state, gstriker) |
| 28 | 35 | { |
| 29 | | // Palette bases are hardcoded, but should be probably extracted from the mixer registers |
| 30 | | |
| 31 | 36 | // Initalize the chip for the score plane |
| 32 | 37 | m_tx->set_gfx_region(0); |
| 33 | | m_tx->set_pal_base(0x30); |
| 34 | 38 | m_tx->get_tilemap()->set_transparent_pen(0xf); |
| 35 | 39 | |
| 36 | 40 | // Initalize the chip for the screen plane |
| 37 | | m_bg->set_gfx_region( 1); |
| 38 | | m_bg->set_pal_base( 0); |
| 41 | m_bg->set_gfx_region(1); |
| 39 | 42 | m_bg->get_tilemap()->set_transparent_pen(0xf); |
| 40 | 43 | } |
| 41 | | |
| 42 | | VIDEO_START_MEMBER(gstriker_state,twrldc94) |
| 43 | | { |
| 44 | | // Palette bases are hardcoded, but should be probably extracted from the mixer registers |
| 45 | | |
| 46 | | // Initalize the chip for the score plane |
| 47 | | m_tx->set_gfx_region(0); |
| 48 | | m_tx->set_pal_base(0x40); |
| 49 | | m_tx->get_tilemap()->set_transparent_pen(0xf); |
| 50 | | |
| 51 | | // Initalize the chip for the screen plane |
| 52 | | m_bg->set_gfx_region( 1); |
| 53 | | m_bg->set_pal_base( 0x50); |
| 54 | | m_bg->get_tilemap()->set_transparent_pen(0xf); |
| 55 | | } |
| 56 | | |
| 57 | | VIDEO_START_MEMBER(gstriker_state,vgoalsoc) |
| 58 | | { |
| 59 | | // Palette bases are hardcoded, but should be probably extracted from the mixer registers |
| 60 | | |
| 61 | | // Initalize the chip for the score plane |
| 62 | | m_tx->set_gfx_region(0); |
| 63 | | m_tx->set_pal_base(0x30); |
| 64 | | m_tx->get_tilemap()->set_transparent_pen(0xf); |
| 65 | | |
| 66 | | // Initalize the chip for the screen plane |
| 67 | | m_bg->set_gfx_region( 1); |
| 68 | | m_bg->set_pal_base( 0x20); |
| 69 | | m_bg->get_tilemap()->set_transparent_pen(0xf); |
| 70 | | } |
trunk/src/mame/drivers/gstriker.c
| r30966 | r30967 | |
| 279 | 279 | AM_RANGE(0x1c0000, 0x1c0fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette") |
| 280 | 280 | |
| 281 | 281 | AM_RANGE(0x200000, 0x20000f) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device, regs_r, regs_w ) |
| 282 | | AM_RANGE(0x200040, 0x20005f) AM_RAM |
| 283 | | AM_RANGE(0x200060, 0x20007f) AM_RAM |
| 282 | AM_RANGE(0x200040, 0x20005f) AM_RAM AM_SHARE("mixerregs1") |
| 283 | AM_RANGE(0x200060, 0x20007f) AM_RAM AM_SHARE("mixerregs2") |
| 284 | 284 | AM_RANGE(0x200080, 0x200081) AM_READ_PORT("P1") |
| 285 | 285 | AM_RANGE(0x200082, 0x200083) AM_READ_PORT("P2") |
| 286 | 286 | AM_RANGE(0x200084, 0x200085) AM_READ_PORT("SYSTEM") |
| r30966 | r30967 | |
| 315 | 315 | AM_RANGE(0x181000, 0x181fff) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device, line_r, line_w ) |
| 316 | 316 | AM_RANGE(0x1c0000, 0x1c4fff) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette") |
| 317 | 317 | AM_RANGE(0x200000, 0x20000f) AM_DEVREADWRITE("zoomtilemap", mb60553_zooming_tilemap_device, regs_r, regs_w ) |
| 318 | | AM_RANGE(0x200040, 0x20005f) AM_RAM |
| 318 | AM_RANGE(0x200040, 0x20005f) AM_RAM AM_SHARE("mixerregs1") |
| 319 | AM_RANGE(0x200060, 0x20007f) AM_RAM AM_SHARE("mixerregs2") |
| 319 | 320 | |
| 320 | 321 | AM_RANGE(0x200080, 0x200081) AM_READ_PORT("P1") |
| 321 | 322 | AM_RANGE(0x200082, 0x200083) AM_READ_PORT("P2") |
| r30966 | r30967 | |
| 565 | 566 | |
| 566 | 567 | MCFG_DEVICE_ADD("vsystem_spr", VSYSTEM_SPR, 0) |
| 567 | 568 | MCFG_VSYSTEM_SPR_SET_GFXREGION(2) |
| 568 | | MCFG_VSYSTEM_SPR_SET_PALBASE(0x10) |
| 569 | 569 | MCFG_VSYSTEM_SPR_SET_PALMASK(0x1f) |
| 570 | 570 | MCFG_VSYSTEM_SPR_SET_TRANSPEN(0) |
| 571 | 571 | MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") |
| r30966 | r30967 | |
| 583 | 583 | MCFG_SOUND_ROUTE(2, "rspeaker", 1.0) |
| 584 | 584 | MACHINE_CONFIG_END |
| 585 | 585 | |
| 586 | | static MACHINE_CONFIG_DERIVED( twrldc94, gstriker ) |
| 587 | | MCFG_VIDEO_START_OVERRIDE(gstriker_state, twrldc94 ) |
| 588 | 586 | |
| 589 | | MCFG_DEVICE_MODIFY("vsystem_spr") |
| 590 | | MCFG_VSYSTEM_SPR_SET_PALBASE(0x60) |
| 591 | | |
| 592 | | MACHINE_CONFIG_END |
| 593 | | |
| 594 | | |
| 595 | 587 | static MACHINE_CONFIG_START( vgoal, gstriker_state ) |
| 596 | 588 | MCFG_CPU_ADD("maincpu", M68000, 16000000) |
| 597 | 589 | MCFG_CPU_PROGRAM_MAP(vgoal_map) |
| r30966 | r30967 | |
| 622 | 614 | |
| 623 | 615 | MCFG_DEVICE_ADD("vsystem_spr", VSYSTEM_SPR, 0) |
| 624 | 616 | MCFG_VSYSTEM_SPR_SET_GFXREGION(2) |
| 625 | | MCFG_VSYSTEM_SPR_SET_PALBASE(0x00) |
| 626 | 617 | MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") |
| 627 | 618 | MCFG_VSYSTEM_SPR_PALETTE("palette") |
| 628 | 619 | |
| 629 | | MCFG_VIDEO_START_OVERRIDE(gstriker_state,vgoalsoc) |
| 620 | MCFG_VIDEO_START_OVERRIDE(gstriker_state,gstriker) |
| 630 | 621 | |
| 631 | 622 | MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker") |
| 632 | 623 | |
| r30966 | r30967 | |
| 1109 | 1100 | /* Similar, but not identical hardware, appear to be protected by an MCU :-( */ |
| 1110 | 1101 | GAME( 1994, vgoalsoc, 0, vgoal, vgoalsoc, gstriker_state, vgoalsoc, ROT0, "Tecmo", "V Goal Soccer (set 1)", GAME_NOT_WORKING ) |
| 1111 | 1102 | GAME( 1994, vgoalsca, vgoalsoc, vgoal, vgoalsoc, gstriker_state, vgoalsoc, ROT0, "Tecmo", "V Goal Soccer (set 2)", GAME_NOT_WORKING ) |
| 1112 | | GAME( 1994, twrldc94, 0, twrldc94, twrldc94, gstriker_state, twrldc94, ROT0, "Tecmo", "Tecmo World Cup '94 (set 1)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) |
| 1113 | | GAME( 1994, twrldc94a,twrldc94, twrldc94, twrldc94, gstriker_state, twrldc94a, ROT0, "Tecmo", "Tecmo World Cup '94 (set 2)", GAME_NOT_WORKING | GAME_UNEMULATED_PROTECTION | GAME_IMPERFECT_GRAPHICS ) |
| 1103 | GAME( 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 ) |
| 1104 | GAME( 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 ) |