|
发表于 2004-11-20 22:07:03
|
显示全部楼层
kof2003驱动
mame079版本的kof2003驱动
neogeo.c:
ROM_START( kof2003 )
ROM_REGION( 0x800000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "271-p1.bin" , 0x100000, 0x400000, CRC(92ed6ee3) SHA1(5e7e21eb40dfcc453ba73808760d5ddedd49c58a) )
ROM_LOAD16_WORD_SWAP( "271-p2.bin" , 0x500000, 0x200000, CRC(5d3d8bb3) SHA1(7f2341f14ca12ff5721eb038b3496228a1f34b60) )
ROM_CONTINUE( 0x000000, 0x100000 )
ROM_CONTINUE( 0x000000, 0x100000 )
NEO_SFIX_128K( "271-s1.rom", CRC(C47F8AC3) SHA1(502070fa57e59d36e5e544e1e2836fefa18a5743) )
NEO_BIOS_SOUND_512K( "271-m1d.bin", CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) )
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "271-v1d.rom", 0x000000, 0x400000, CRC(d2b8aa5e) SHA1(498f0556c1de56822141f8043f1ce20444f4ed0a) )
ROM_LOAD( "271-v2d.rom", 0x400000, 0x400000, CRC(71956ee2) SHA1(a890941e60db358cf45b58909f4719f4826f3bb1) )
ROM_LOAD( "271-v3d.rom", 0x800000, 0x400000, CRC(ddbbb199) SHA1(0eea4b064bdb8daa03c354fe0a0aa27c4c665bda) )
ROM_LOAD( "271-v4d.rom", 0xc00000, 0x400000, CRC(01b90c4f) SHA1(387164aa1995d8c11ed939b3afbc294d86d2e27f) )
NO_DELTAT_REGION
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "271-c1d.rom", 0x0000000, 0x800000, CRC(e42fc226) SHA1(1cd9364993e141facdcdd53ec2277df7b275d8a7) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c2d.rom", 0x0000001, 0x800000, CRC(1b5e3b58) SHA1(0eb254477a9479541291e43e415310852a0f0bed) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c3d.rom", 0x1000000, 0x800000, CRC(d334fdd9) SHA1(1efe30b4f56a55e25ab518cf6999de797b5e407c) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c4d.rom", 0x1000001, 0x800000, CRC(0d457699) SHA1(ec73d0c9fc7094d0ac6c0986a6e07cde25893e57) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c5d.rom", 0x2000000, 0x800000, CRC(8a91aae4) SHA1(802f4baacf801646be1ef686e105b2e867a6a5df) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c6d.rom", 0x2000001, 0x800000, CRC(9f8674b8) SHA1(65964f40b2227d020023fb436579927e65807dcd) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c7d.rom", 0x3000000, 0x800000, CRC(374ea523) SHA1(613827d72c6181f3e08353750c9af0c4dbad020b) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c8d.rom", 0x3000001, 0x800000, CRC(75211f4d) SHA1(d82f044e816ee539ff131d9c931200c818d34cd0) ) /* Plane 2,3 */
ROM_END
static unsigned short kof2003_tbl[0x1000];
static READ16_HANDLER( kof2003_16_r )
{
return kof2003_tbl[offset];
}
static WRITE16_HANDLER( kof2003_16_w )
{
UINT32 bankaddress;
kof2003_tbl[offset]=(kof2003_tbl[offset]&mem_mask)|((~mem_mask)&data);
if(offset>0xff9) return;
bankaddress=((kof2003_tbl[0xff8]>>8)|(kof2003_tbl[0xff9]<<8))+0x100000;
*(((UINT8 *)kof2003_tbl)+0x1ff0)=0xa0;
*(((UINT8 *)kof2003_tbl)+0x1ff1)&=0xfe;
*(((UINT8 *)kof2003_tbl)+0x1ff3)&=0x7f;
neogeo_set_cpu1_second_bank(bankaddress);
*(((unsigned char *)memory_region(REGION_CPU1))+0x58196)=kof2003_tbl[0xff9]&0xff;
}
DRIVER_INIT( kof2003 )
{
install_mem_read16_handler (0, 0x2fe000, 0x2fffff, kof2003_16_r);
install_mem_write16_handler (0, 0x2fe000, 0x2fffff, kof2003_16_w);
init_neogeo();
}
GAMEB( 2003, kof2003, neogeo, neogeo, raster, neogeo, kof2003, ROT0, "laymore Corporation / Eolith", "The King of Fighters 2003" )
driver.c:
DRIVER( kof2003 ) /* 0*** (c) 2003 Eoilth / Playmore Corporation */
***********************
kof2002驱动
ROM_START( kof2002 )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "2k2_p1.rom", 0x000000, 0x100000,
0x9ede7323 )
ROM_LOAD16_WORD_SWAP( "2k2_p2.rom", 0x100000, 0x400000,
0x432fdf53 )
NEO_SFIX_128K( "2k2_s1.rom", 0xe0eaaba3 )
NEO_BIOS_SOUND_256K( "2K2_M1.ROM", 0xab9d360e )
ROM_REGION( 0x1000000, REGION_SOUND1, ROMREGION_SOUNDONLY )
ROM_LOAD( "2K2_V1.ROM", 0x000000, 0x400000, 0x13d98607 )
ROM_LOAD( "2K2_V2.ROM", 0x400000, 0x400000, 0x9cf74677 )
ROM_LOAD( "2K2_V3.ROM", 0x800000, 0x400000, 0x8e9448b5 )
ROM_LOAD( "2K2_V4.ROM", 0xc00000, 0x400000, 0x067271b5 )
NO_DELTAT_REGION
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "2k2_c1.rom", 0x0000000, 0x800000,
0x7efa6ef7 ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k2_c2.rom", 0x0000001, 0x800000,
0xaa82948b ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k2_c3.rom", 0x1000000, 0x800000,
0x959fad0b ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k2_c4.rom", 0x1000001, 0x800000,
0xefe6a468 ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k2_c5.rom", 0x2000000, 0x800000,
0x74bba7c6 ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k2_c6.rom", 0x2000001, 0x800000,
0xe20d2216 ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "2k2_c7.rom", 0x3000000, 0x800000,
0x8a5b561c ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "2k2_c8.rom", 0x3000001, 0x800000,
0xbef667a3 ) /* Plane 2,3 */
ROM_END
driver.c:
DRIVER( kof2002 ) /* 0*** (c) 2002 Eoilth / Playmore Corporation */ |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|