trunk/src/mame/drivers/battlnts.c
| r29607 | r29608 | |
| 330 | 330 | ROM_LOAD( "765_j01.10a", 0x00000, 0x08000, CRC(77ae753e) SHA1(9e463a825d31bb79644b083d24b25670d96441c5) ) |
| 331 | 331 | |
| 332 | 332 | ROM_REGION( 0x40000, "gfx1", 0 ) |
| 333 | | ROM_LOAD( "765_l04.13a", 0x00000, 0x40000, CRC(acfbeee2) SHA1(c2bf750892ba33d4610fa4497170f49c101ed4c1) ) /* tiles */ |
| 333 | ROM_LOAD( "765_l04.13a", 0x00000, 0x40000, CRC(d8fb9c64) SHA1(37dac643aa492ef1ecc29c5030bc7fe5226027a2) ) /* tiles */ |
| 334 | 334 | |
| 335 | 335 | ROM_REGION( 0x40000, "gfx2", 0 ) |
| 336 | 336 | ROM_LOAD( "765_l05.13e", 0x00000, 0x40000, CRC(1bb6855f) SHA1(251081564dfede8fa9a422081d58465fe5ca4ed1) ) /* sprites */ |
| r29607 | r29608 | |
| 367 | 367 | ROM_END |
| 368 | 368 | |
| 369 | 369 | |
| 370 | | /************************************* |
| 371 | | * |
| 372 | | * Driver initialization |
| 373 | | * |
| 374 | | *************************************/ |
| 375 | 370 | |
| 376 | | /* |
| 377 | | This recursive function doesn't use additional memory |
| 378 | | (it could be easily converted into an iterative one). |
| 379 | | It's called shuffle because it mimics the shuffling of a deck of cards. |
| 380 | | */ |
| 381 | | static void shuffle( UINT8 *buf, int len ) |
| 382 | | { |
| 383 | | int i; |
| 384 | | UINT8 t; |
| 385 | | |
| 386 | | if (len == 2) |
| 387 | | return; |
| 388 | | |
| 389 | | if (len % 4) |
| 390 | | fatalerror("shuffle() - not modulo 4\n"); /* must not happen */ |
| 391 | | |
| 392 | | len /= 2; |
| 393 | | |
| 394 | | for (i = 0; i < len / 2; i++) |
| 395 | | { |
| 396 | | t = buf[len / 2 + i]; |
| 397 | | buf[len / 2 + i] = buf[len + i]; |
| 398 | | buf[len + i] = t; |
| 399 | | } |
| 400 | | |
| 401 | | shuffle(buf, len); |
| 402 | | shuffle(buf + len, len); |
| 403 | | } |
| 404 | | |
| 405 | | |
| 406 | | DRIVER_INIT_MEMBER(battlnts_state,rackemup) |
| 407 | | { |
| 408 | | /* rearrange char ROM */ |
| 409 | | shuffle(memregion("gfx1")->base(), memregion("gfx1")->bytes()); |
| 410 | | } |
| 411 | | |
| 412 | | |
| 413 | | |
| 414 | 371 | /************************************* |
| 415 | 372 | * |
| 416 | 373 | * Game driver(s) |
| 417 | 374 | * |
| 418 | 375 | *************************************/ |
| 419 | 376 | |
| 420 | | GAME( 1987, battlnts, 0, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (program code G)", GAME_SUPPORTS_SAVE ) |
| 421 | | GAME( 1987, battlntsa, battlnts, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (program code F)", GAME_SUPPORTS_SAVE ) |
| 422 | | GAME( 1987, battlntsj, battlnts, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (Japan, program code E)", GAME_SUPPORTS_SAVE ) |
| 423 | | GAME( 1987, rackemup, 0, battlnts, rackemup, battlnts_state, rackemup, ROT90, "Konami", "Rack 'em Up (program code L)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 424 | | GAME( 1987, thehustl, rackemup, battlnts, thehustl, driver_device, 0, ROT90, "Konami", "The Hustler (Japan, program code M)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 425 | | GAME( 1987, thehustlj, rackemup, battlnts, thehustl, driver_device, 0, ROT90, "Konami", "The Hustler (Japan, program code J)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 377 | GAME( 1987, battlnts, 0, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (program code G)", GAME_SUPPORTS_SAVE ) |
| 378 | GAME( 1987, battlntsa, battlnts, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (program code F)", GAME_SUPPORTS_SAVE ) |
| 379 | GAME( 1987, battlntsj, battlnts, battlnts, battlnts, driver_device, 0, ROT90, "Konami", "Battlantis (Japan, program code E)", GAME_SUPPORTS_SAVE ) |
| 380 | GAME( 1987, rackemup, 0, battlnts, rackemup, driver_device, 0, ROT90, "Konami", "Rack 'em Up (program code L)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 381 | GAME( 1987, thehustl, rackemup, battlnts, thehustl, driver_device, 0, ROT90, "Konami", "The Hustler (Japan, program code M)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |
| 382 | GAME( 1987, thehustlj, rackemup, battlnts, thehustl, driver_device, 0, ROT90, "Konami", "The Hustler (Japan, program code J)", GAME_NO_COCKTAIL | GAME_SUPPORTS_SAVE ) |