trunk/src/mame/drivers/mario.c
r32748 | r32749 | |
187 | 187 | AM_RANGE(0xa000, 0xa000) AM_READNOP /* watchdog? */ |
188 | 188 | AM_RANGE(0xa100, 0xa100) AM_READ_PORT("DSW") /* DSW */ |
189 | 189 | AM_RANGE(0xa206, 0xa206) AM_WRITE(mario_gfxbank_w) |
| 190 | |
| 191 | AM_RANGE(0x8000, 0x9fff) AM_ROM |
| 192 | AM_RANGE(0xb000, 0xbfff) AM_ROM |
190 | 193 | AM_RANGE(0xe000, 0xffff) AM_ROM |
191 | 194 | ADDRESS_MAP_END |
192 | 195 | |
r32748 | r32749 | |
357 | 360 | INPUT_PORTS_END |
358 | 361 | |
359 | 362 | |
| 363 | |
| 364 | static INPUT_PORTS_START( dkong3abl ) |
| 365 | |
| 366 | PORT_START("SYSTEM") |
| 367 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON2 ) |
| 368 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 ) |
| 369 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_COCKTAIL |
| 370 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_COCKTAIL |
| 371 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START2 ) |
| 372 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START1 ) |
| 373 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN2 ) |
| 374 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) |
| 375 | |
| 376 | PORT_START("INPUTS") |
| 377 | PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY |
| 378 | PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY |
| 379 | PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY |
| 380 | PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY |
| 381 | PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_8WAY PORT_COCKTAIL |
| 382 | PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_8WAY PORT_COCKTAIL |
| 383 | PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_8WAY PORT_COCKTAIL |
| 384 | PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_COCKTAIL |
| 385 | |
| 386 | PORT_START("DSW") |
| 387 | PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) |
| 388 | PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) |
| 389 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 390 | PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) |
| 391 | PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) |
| 392 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 393 | PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) |
| 394 | PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) |
| 395 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 396 | PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) |
| 397 | PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) |
| 398 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 399 | PORT_DIPNAME( 0x10, 0x10, DEF_STR( Unknown ) ) |
| 400 | PORT_DIPSETTING( 0x10, DEF_STR( Off ) ) |
| 401 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 402 | PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) |
| 403 | PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) |
| 404 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 405 | PORT_DIPNAME( 0x40, 0x40, DEF_STR( Unknown ) ) |
| 406 | PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) |
| 407 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 408 | PORT_DIPNAME( 0x80, 0x80, DEF_STR( Unknown ) ) |
| 409 | PORT_DIPSETTING( 0x80, DEF_STR( Off ) ) |
| 410 | PORT_DIPSETTING( 0x00, DEF_STR( On ) ) |
| 411 | |
| 412 | PORT_START("MONITOR") |
| 413 | PORT_CONFNAME( 0x01, 0x00, "Monitor" ) |
| 414 | PORT_CONFSETTING( 0x00, "Nintendo" ) |
| 415 | PORT_CONFSETTING( 0x01, "Std 15.72Khz" ) |
| 416 | |
| 417 | INPUT_PORTS_END |
| 418 | |
360 | 419 | /************************************* |
361 | 420 | * |
362 | 421 | * Graphics definitions |
r32748 | r32749 | |
411 | 470 | GFXDECODE_ENTRY( "gfx2", 0, spritelayout_bl, 0, 32 ) |
412 | 471 | GFXDECODE_END |
413 | 472 | |
| 473 | static const gfx_layout spritelayout_bl2 = |
| 474 | { |
| 475 | 16,16, /* 16*16 sprites */ |
| 476 | RGN_FRAC(1,2), /* 256 sprites */ |
| 477 | 2, /* 3 bits per pixel */ |
| 478 | { RGN_FRAC(1,2),RGN_FRAC(0,2) }, |
| 479 | { 0, 1, 2, 3, 4, 5, 6, 7, |
| 480 | 64,65,66,67,68,69,70,71 }, |
| 481 | { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8, |
| 482 | 16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8 }, |
| 483 | 16*16 |
| 484 | }; |
| 485 | |
| 486 | static GFXDECODE_START( dkong3abl ) |
| 487 | GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 16 ) |
| 488 | GFXDECODE_ENTRY( "gfx2", 0, spritelayout_bl2, 0, 32 ) |
| 489 | GFXDECODE_END |
| 490 | |
| 491 | |
414 | 492 | /************************************* |
415 | 493 | * |
416 | 494 | * Machine driver |
r32748 | r32749 | |
519 | 597 | |
520 | 598 | MACHINE_CONFIG_END |
521 | 599 | |
| 600 | /* |
| 601 | Donkey Kong 3 bootleg on Ambush hardware |
| 602 | |
| 603 | This romset comes from a faulty bootleg pcb.Game differences are none. |
| 604 | Note:it runs on a modified (extended) Tecfri's Ambush hardware. |
| 605 | Main cpu Z80 |
| 606 | Sound ic AY-3-8910 x2 -instead of AY-3-8912 x2 of Ambush |
| 607 | Work ram 4Kb (6116 x2) -double of Ambush |
| 608 | OSC: 18,432 Mhz |
| 609 | Rom definition: |
| 610 | dk3ba-5,dk3ba-6,dk3ba-7 main program |
| 611 | dk3ba-1 to dk3ba-4 gfx (chars,sprites) |
| 612 | Eproms are 2732,2764,27128 |
| 613 | |
| 614 | Dumped by tirino73 >isolani1973@libero.it< |
| 615 | */ |
| 616 | static MACHINE_CONFIG_DERIVED( dkong3abl, mariobl ) |
| 617 | MCFG_GFXDECODE_MODIFY("gfxdecode", dkong3abl) |
| 618 | MACHINE_CONFIG_END |
| 619 | |
522 | 620 | /************************************* |
523 | 621 | * |
524 | 622 | * ROM definitions |
r32748 | r32749 | |
706 | 804 | ROM_LOAD( "tma1-c-4p.4p", 0x0000, 0x0200, CRC(afc9bd41) SHA1(90b739c4c7f24a88b6ac5ca29b06c032906a2801) ) |
707 | 805 | ROM_END |
708 | 806 | |
| 807 | ROM_START( dkong3abl ) |
| 808 | ROM_REGION( 0x10000, "maincpu", 0 ) |
| 809 | ROM_LOAD( "dk3ba-7.7i", 0x0000, 0x4000, CRC(a9263275) SHA1(c3867f6b0d379b70669b3b954e582533406db203) ) |
| 810 | ROM_LOAD( "dk3ba-6.7g", 0x4000, 0x2000, CRC(31b8401d) SHA1(0e3dfea0c7fe99d48c5d984c47fa746caf0879f3) ) |
| 811 | ROM_CONTINUE(0x8000,0x2000) |
| 812 | ROM_LOAD( "dk3ba-5.7f", 0xb000, 0x1000, CRC(07d3fd88) SHA1(721f401d077e3e051672513f9df5614eeb0f6466) ) |
| 813 | |
| 814 | ROM_REGION( 0x2000, "gfx1", ROMREGION_INVERT ) |
| 815 | ROM_LOAD( "dk3ba-3.4l", 0x1000, 0x1000, CRC(67ac65d4) SHA1(d28bdb99310370513597ca80185ac6c56a11f63c) ) |
| 816 | ROM_LOAD( "dk3ba-4.4n", 0x0000, 0x1000, CRC(84b319d6) SHA1(eaf160948f8cd4fecfdd909876de7cd16340885c) ) |
| 817 | |
| 818 | ROM_REGION( 0x4000, "gfx2", 0 ) |
| 819 | ROM_LOAD( "dk3ba-1.3l", 0x0000, 0x2000, CRC(d4a88e04) SHA1(4f797c25d26c1022dcf026021979ef0fbab48baf) ) |
| 820 | ROM_LOAD( "dk3ba-2.3m", 0x2000, 0x2000, CRC(f71185ee) SHA1(6652cf958d7afa8bb8dcfded997bb418a75223d8) ) |
| 821 | |
| 822 | ROM_REGION( 0x0200, "proms", 0 ) // no prom was present in the dump, probably need to use the original ones again |
| 823 | ROM_LOAD( "tma1-c-4p.4p", 0x0000, 0x0200, CRC(afc9bd41) SHA1(90b739c4c7f24a88b6ac5ca29b06c032906a2801) ) // this is from mario.. remove |
| 824 | ROM_END |
| 825 | |
709 | 826 | /************************************* |
710 | 827 | * |
711 | 828 | * Game drivers |
r32748 | r32749 | |
717 | 834 | GAME( 1983, marioo, mario, mario, marioo, driver_device, 0, ROT0, "Nintendo of America", "Mario Bros. (US, Unknown Rev)", GAME_SUPPORTS_SAVE ) |
718 | 835 | GAME( 1983, marioj, mario, mario, marioj, driver_device, 0, ROT0, "Nintendo", "Mario Bros. (Japan)", GAME_SUPPORTS_SAVE ) |
719 | 836 | GAME( 1983, masao, mario, masao, masao, driver_device, 0, ROT0, "bootleg", "Masao", GAME_SUPPORTS_SAVE ) |
| 837 | |
| 838 | // todo, these might have a better home than in here |
720 | 839 | GAME( 1983, mariobl, mario, mariobl, mariobl,driver_device, 0, ROT180, "bootleg", "Mario Bros. (Japan, bootleg)", GAME_SUPPORTS_SAVE ) // was listed as 'on extended Ambush hardware' but doesn't seem similar apart from the sound system? |
| 840 | GAME( 1983, dkong3abl,dkong3, dkong3abl,dkong3abl,driver_device,0, ROT90, "bootleg", "Donkey Kong 3 (bootleg with 2xAY8910)", GAME_NOT_WORKING ) // likewise, put here because it's similar to mariobl |