Jump to content

a few more drivers


Recommended Posts

  • Replies 36
  • Created
  • Last Reply

Top Posters In This Topic

I hate to see a man suffer. Here ya go.

 

It all goes in source\cps1.c

static WRITE16_HANDLER( dinoh_sound_command_w )

{

/* Pass the Sound Code to the Q-Sound Shared Ram */

qsound_sharedram1[0x0001] = data;

}

 

INPUT_PORTS_START( dinoh )

PORT_START_TAG("IN0")

PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )

PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 )

PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SERVICE1 )

PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )

PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 )

PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 )

PORT_SERVICE_NO_TOGGLE( 0x40, IP_ACTIVE_LOW )

PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )

 

PORT_START_TAG("DSWA")      /* (not used, EEPROM) */

PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )

 

PORT_START_TAG("DSWB")      /* (not used, EEPROM) */

PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNKNOWN )

 

PORT_START_TAG("DSWC")

PORT_DIPNAME( 0x08, 0x08, "Freeze" )

PORT_DIPSETTING(    0x08, DEF_STR( Off ) )

PORT_DIPSETTING(    0x00, DEF_STR( On ) )

PORT_BIT( 0xf7, IP_ACTIVE_LOW, IPT_UNKNOWN )

 

PORT_START_TAG("IN1")

PORT_BIT( 0x0001, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(1)

PORT_BIT( 0x0002, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_8WAY PORT_PLAYER(1)

PORT_BIT( 0x0004, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY PORT_PLAYER(1)

PORT_BIT( 0x0008, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY PORT_PLAYER(1)

PORT_BIT( 0x0010, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1)

PORT_BIT( 0x0020, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(1)

PORT_BIT( 0x0040, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(1)

PORT_BIT( 0x0080, IP_ACTIVE_LOW, IPT_UNKNOWN )

PORT_BIT( 0x0100, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(2)

PORT_BIT( 0x0200, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_8WAY PORT_PLAYER(2)

PORT_BIT( 0x0400, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY PORT_PLAYER(2)

PORT_BIT( 0x0800, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY PORT_PLAYER(2)

PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)

PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)

PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)

PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )

 

PORT_START_TAG("IN2")      /* Player 3 */

PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_8WAY PORT_PLAYER(3)

PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  ) PORT_8WAY PORT_PLAYER(3)

PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  ) PORT_8WAY PORT_PLAYER(3)

PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    ) PORT_8WAY PORT_PLAYER(3)

PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(3)

PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(3)

PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN3 )

PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_START3 )

PORT_BIT( 0x100, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(3) //fixme

INPUT_PORTS_END

 

ROM_START( dinoh )

ROM_REGION( CODE_SIZE, REGION_CPU1, 0 )      /* 68000 code */

ROM_LOAD16_WORD_SWAP( "cda_23h.rom",  0x000000, 0x80000, CRC(8e2a9cf0) SHA1(01111582e579bd3b43b52d0e0c445c32fe5e053b) )

ROM_LOAD16_WORD_SWAP( "cda_22h.rom",  0x080000, 0x80000, CRC(f72cd219) SHA1(a3f580bd328b54d2546ae7e94262c1a706d27172) )

ROM_LOAD16_WORD_SWAP( "cda_21h.rom",  0x100000, 0x80000, CRC(bc275b76) SHA1(1f7f7533b4ccb511dc479f531d9d6740d3ca6712) )

ROM_LOAD16_WORD_SWAP( "cda_20h.rom",  0x180000, 0x80000, CRC(8987c975) SHA1(3fd856805d627f855f72acc7aacc2e8ecf0f12bd) )

 

ROM_REGION( 0x400000, REGION_GFX1, 0 )

ROMX_LOAD( "cd_gfx01.rom",  0x000000, 0x80000, CRC(8da4f917) SHA1(4f7b2304b7d9b545d6707d7ec921d3e28200699d), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx03.rom",  0x000002, 0x80000, CRC(6c40f603) SHA1(cdbd11dfcec08e87355d7e21e9fd39f7eacab016), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx02.rom",  0x000004, 0x80000, CRC(09c8fc2d) SHA1(d0c0a1258ec5dd484ab6ec1c5663425431f929ee), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx04.rom",  0x000006, 0x80000, CRC(637ff38f) SHA1(859926b33b9955b3ed67471c61faa442d42b9696), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx05.rom",  0x200000, 0x80000, CRC(470befee) SHA1(a42e38319e9b7424381352512f11bd8edf0bbb96), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx07.rom",  0x200002, 0x80000, CRC(22bfb7a3) SHA1(c44959bd3d42b9fc8ecb482dfaf63fbd469d2c3e), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx06.rom",  0x200004, 0x80000, CRC(e7599ac4) SHA1(0e788a38547a8701115d01190ddeaca64388db4d), ROM_GROUPWORD | ROM_SKIP(6) )

ROMX_LOAD( "cd_gfx08.rom",  0x200006, 0x80000, CRC(211b4b15) SHA1(374f6b185faa0f14f5c45b9b1d60d0772d93fb17), ROM_GROUPWORD | ROM_SKIP(6) )

 

ROM_REGION( 0x8000, REGION_GFX2, 0 )

ROM_COPY( REGION_GFX1, 0x000000, 0x000000, 0x8000 ) /* stars */

 

ROM_REGION( 2*0x28000, REGION_CPU2, 0 ) /* QSound Z80 code + space for decrypted opcodes */

ROM_LOAD( "cd_q.rom",      0x00000, 0x08000, CRC(605fdb0b) SHA1(9da90ddc6513aaaf2260f0c69719c6b0e585ba8c) )

ROM_CONTINUE(              0x10000, 0x18000 )

 

ROM_REGION( 0x200000, REGION_SOUND1, 0 ) /* QSound samples */

ROM_LOAD( "cd_q1.rom",      0x000000, 0x80000, CRC(60927775) SHA1(f8599bc84c38573ebbe8685822c58b6a38b50462) )

ROM_LOAD( "cd_q2.rom",      0x080000, 0x80000, CRC(770f4c47) SHA1(fec8ef00a6669d4d5e37787ecc7b58ee46709326) )

ROM_LOAD( "cd_q3.rom",      0x100000, 0x80000, CRC(2f273ffc) SHA1(f0de462f6c4d251911258e0ebd886152c14d1586) )

ROM_LOAD( "cd_q4.rom",      0x180000, 0x80000, CRC(2c67821d) SHA1(6e2528d0b22508300a6a142a796dd3bf53a66946) )

ROM_END

 

static DRIVER_INIT( dinoh )

{

memory_install_write16_handler(0, ADDRESS_SPACE_PROGRAM, 0x800180, 0x800181, 0, 0, dinoh_sound_command_w);

dino_decode();

init_cps1();

}

 

GAME( 1993, dinoh,    dino,    qsound,  dinoh,    dinoh,    ROT0,  "hack",  "Cadillacs and Dinosaurs (hack)", 0 )

 

Good luck.

Link to comment
Share on other sites

Dammit i thought i was done.. i did check around on the net first  as well as attemped on my own..just for reference.. however i was wondering if anyone had dinoh for cps1..

 

 

Yes the driver is in Mame Plus.

 

could you post it by chance?

 

 

LOL you can get the source from http://mameplus.emu-france.com/download/ma...20051114-src.7z

 

I am sure you will find other things of use as well :)

 

 

oh by the way this code needs to go in src\vidhrdw\cps1.c

{"dinoh",   NOBATTRY, 0,0,0, 0x0000,0xffff,0x0000,0xffff },	/* layer enable never used */

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...