trunk/src/mame/drivers/seicross.c
r32675 | r32676 | |
591 | 591 | UINT8 *ROM = memregion("mcu")->base(); |
592 | 592 | address_space &space = m_mcu->space(AS_PROGRAM); |
593 | 593 | // this code is in ROM 6.3h, maps to MCU at dxxx |
594 | | // if you cheat and use the code from another set it works |
595 | 594 | for (int i = 0; i < 0x8000; i++) |
596 | 595 | { |
597 | | ROM[i] = BITSWAP8(ROM[i + 0x8000], 6, 7, 5, 4, 3, 2, 1, 0); |
598 | | |
599 | | int data = ROM[i]; |
600 | | if (data == 0x4e) data = 0x4d; |
601 | | //else if (data == 0x41) data = 0x45; |
602 | | else if (data == 0x46) data = 0x45; |
603 | | else if (data == 0x57) data = 0x57; |
604 | | //else if (data == 0x76) data = 0x7e; |
605 | | else if (data == 0xce) data = 0xcd; |
606 | | else if (data == 0xdf) data = 0xdf; |
607 | | |
608 | | ROM[i] = data; |
| 596 | ROM[i] = BITSWAP8(ROM[i + 0x8000], 6, 7, 5, 4, 3, 2, 0, 1); |
609 | 597 | } |
610 | 598 | |
611 | 599 | space.set_decrypted_region(0x8000, 0xffff, ROM); |
r32675 | r32676 | |
614 | 602 | |
615 | 603 | GAME( 1981, friskyt, 0, nvram, friskyt, driver_device, 0, ROT0, "Nichibutsu", "Frisky Tom (set 1)", GAME_NO_COCKTAIL ) |
616 | 604 | GAME( 1981, friskyta, friskyt, nvram, friskyt, driver_device, 0, ROT0, "Nichibutsu", "Frisky Tom (set 2)", GAME_NO_COCKTAIL ) |
617 | | GAME( 1981, friskytb, friskyt, nvram, friskyt, seicross_state, friskytb, ROT0, "Nichibutsu", "Frisky Tom (set 3, encrypted?)", GAME_NOT_WORKING ) // protection code seems to be encrypted? |
| 605 | GAME( 1981, friskytb, friskyt, nvram, friskyt, seicross_state, friskytb, ROT0, "Nichibutsu", "Frisky Tom (set 3, encrypted)", GAME_NOT_WORKING ) // protection mcu runs encrypted opcodes |
618 | 606 | GAME( 1982, radrad, 0, no_nvram, radrad, driver_device, 0, ROT0, "Nichibutsu USA", "Radical Radial", GAME_NO_COCKTAIL ) |
619 | 607 | GAME( 1984, seicross, 0, no_nvram, seicross, driver_device, 0, ROT90, "Nichibutsu / Alice", "Seicross", GAME_NO_COCKTAIL ) |
620 | 608 | GAME( 1984, sectrzon, seicross, no_nvram, seicross, driver_device, 0, ROT90, "Nichibutsu / Alice", "Sector Zone", GAME_NO_COCKTAIL ) |