trunk/src/mame/machine/pgmprot_igs027a_type3.c
| r26278 | r26279 | |
| 544 | 544 | PORT_INCLUDE ( pgm ) |
| 545 | 545 | |
| 546 | 546 | PORT_START("RegionHack") /* Region - actually supplied by protection device */ |
| 547 | | PORT_CONFNAME( 0x00ff, 0x0006, DEF_STR( Region ) ) |
| 547 | PORT_CONFNAME( 0x00ff, 0x00ff, DEF_STR( Region ) ) |
| 548 | 548 | PORT_CONFSETTING( 0x0000, DEF_STR( China ) ) |
| 549 | 549 | PORT_CONFSETTING( 0x0001, DEF_STR( Taiwan ) ) |
| 550 | 550 | //PORT_CONFSETTING( 0x0002, DEF_STR( Japan ) ) // it doesn't appear that carts of the Japanese version were released, the PCB has an extra sample ROM used in Japanese mode for the music |
| r26278 | r26279 | |
| 644 | 644 | share16[0x158/2] = 0x0005; |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | // |
| 648 | // int j = BITSWAP24(i, 23, 20, 17, 16, 19, 18, 15, 14, 13, 12, 11, 10, 9, 22, 21, 6, 7, 6, 5, 4, 3, 2, 1, 0); |
| 649 | // buffer[i] = src[j] |
| 650 | |
| 647 | 651 | // todo, collapse these to an address swap |
| 648 | 652 | void pgm_arm_type3_state::pgm_descramble_happy6(UINT8* src) |
| 649 | 653 | { |
trunk/src/mame/drivers/pgm.c
| r26278 | r26279 | |
| 3188 | 3188 | ROM_LOAD( "w04501.u5", 0x400000, 0x800000, CRC(3ab58137) SHA1(b221f7e551ff0bfa3fd97b6ebedbac69442a66e9) ) |
| 3189 | 3189 | ROM_END |
| 3190 | 3190 | |
| 3191 | // the (readable part of) internal roms have been verified on |
| 3192 | // Japan PCB |
| 3193 | // Overseas Cart |
| 3194 | // the two dumps differed by the region byte and internal checksum byte |
| 3195 | |
| 3191 | 3196 | ROM_START( theglad ) |
| 3192 | 3197 | ROM_REGION( 0x600000, "maincpu", 0 ) /* 68000 Code */ |
| 3193 | 3198 | PGM_68K_BIOS |
| r26278 | r26279 | |
| 3195 | 3200 | |
| 3196 | 3201 | ROM_REGION( 0x4000, "prot", 0 ) /* ARM protection ASIC - internal rom */ |
| 3197 | 3202 | ROM_LOAD( "thegladpcb_igs027a_execute_only_area", 0x0000, 0x00188, NO_DUMP ) |
| 3198 | | ROM_LOAD( "thegladpcb_igs027a_v100_japan.bin", 0x0188, 0x3e78, CRC(d7f06e2d) SHA1(9c3aca7a487f5329d84731e2c63d5ed591bf9d24) ) // from 'thegladpcb set' |
| 3203 | ROM_LOAD( "thegladpcb_igs027a_v100_overseas.bin", 0x0188, 0x3e78, CRC(02fe6f52) SHA1(0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024) ) |
| 3199 | 3204 | |
| 3200 | 3205 | ROM_REGION( 0x800000, "user1", 0 ) /* Protection Data (encrypted external ARM data, internal missing) */ |
| 3201 | 3206 | ROM_LOAD( "v107.u26", 0x000000, 0x200000, CRC(f7c61357) SHA1(52d31c464dfc83c5371b078cb6b73c0d0e0d57e3) ) |
| r26278 | r26279 | |
| 3225 | 3230 | |
| 3226 | 3231 | ROM_REGION( 0x4000, "prot", 0 ) /* ARM protection ASIC - internal rom */ |
| 3227 | 3232 | ROM_LOAD( "thegladpcb_igs027a_execute_only_area", 0x0000, 0x00188, NO_DUMP ) |
| 3228 | | ROM_LOAD( "thegladpcb_igs027a_older.bin", 0x0188, 0x3e78, BAD_DUMP CRC(d7f06e2d) SHA1(9c3aca7a487f5329d84731e2c63d5ed591bf9d24) ) // this is wrong for this set, we patch it to work |
| 3233 | ROM_LOAD( "thegladpcb_igs027a_older.bin", 0x0188, 0x3e78, BAD_DUMP CRC(02fe6f52) SHA1(0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024) ) // this is wrong for this set, we patch it to work |
| 3229 | 3234 | |
| 3230 | 3235 | ROM_REGION( 0x800000, "user1", 0 ) /* Protection Data (encrypted external ARM data, internal missing) */ |
| 3231 | 3236 | ROM_LOAD( "u2.rom", 0x000000, 0x200000, CRC(c7bcf2ae) SHA1(10bc012c83987f594d5375a51bc4be2e17568a81) ) |
| r26278 | r26279 | |
| 3256 | 3261 | |
| 3257 | 3262 | ROM_REGION( 0x4000, "prot", 0 ) /* ARM protection ASIC - internal rom */ |
| 3258 | 3263 | ROM_LOAD( "thegladpcb_igs027a_execute_only_area", 0x0000, 0x00188, NO_DUMP ) |
| 3259 | | ROM_LOAD( "thegladpcb_igs027a_v100_japan.bin", 0x0188, 0x3e78, CRC(d7f06e2d) SHA1(9c3aca7a487f5329d84731e2c63d5ed591bf9d24) ) // from 'thegladpcb set' |
| 3264 | ROM_LOAD( "thegladpcb_igs027a_v100_overseas.bin", 0x0188, 0x3e78, CRC(02fe6f52) SHA1(0b0ddf4507856cfc5b7d4ef7e4c5375254c2a024) ) |
| 3260 | 3265 | |
| 3261 | 3266 | ROM_REGION( 0x800000, "user1", 0 ) /* Protection Data (encrypted external ARM data, internal missing) */ |
| 3262 | 3267 | ROM_LOAD( "v101.u26", 0x000000, 0x200000, CRC(23faec02) SHA1(9065d55c2a14e6889e735a452bbc32530056645a) ) |