trunk/src/mame/drivers/model2.c
| r243091 | r243092 | |
| 1350 | 1350 | |
| 1351 | 1351 | if (offset == 0x0008/4) |
| 1352 | 1352 | { |
| 1353 | | // code is copied to RAM first, so base address is always 0 |
| 1354 | | m_cryptdevice->set_addr_low(0); |
| 1355 | | m_cryptdevice->set_addr_high(0); |
| 1356 | | |
| 1357 | | if (data != 0) |
| 1358 | | printf("model2_5881prot_w address isn't 0?\n"); |
| 1359 | | |
| 1353 | // Zero Gunner uses this, it's encrypted data in prot.RAM consists of several small chunks, selected using low address |
| 1354 | // so far this is only known game with 315-5881 which uses not 0 offset in prot.RAM |
| 1355 | if (mem_mask == 0x0000ffff) |
| 1356 | m_cryptdevice->set_addr_low(data&0xffff); |
| 1357 | else if (mem_mask == 0xffff0000) |
| 1358 | { |
| 1359 | m_cryptdevice->set_addr_high(0); |
| 1360 | if (data != 0) |
| 1361 | printf("model2_5881prot_w not zero high address %08x (%08x)\n", data, mem_mask); |
| 1362 | } |
| 1360 | 1363 | first_read = 1; |
| 1361 | 1364 | } |
| 1362 | 1365 | else if (offset == 0x000c/4) |
trunk/src/mame/machine/315-5881_helper.c
| r243091 | r243092 | |
| 31 | 31 | |
| 32 | 32 | static const struct game_keys keys_table[] = |
| 33 | 33 | { |
| 34 | | // name key gameid # year chip label platform |
| 34 | // name key gameid # year chip label platform |
| 35 | 35 | { "twcup98", 0x05200913 }, // 25209801 1998 317-5039-COM ST-V |
| 36 | 36 | { "astrass", 0x052e2901 }, // 25349801 1998 317-5040-COM ST-V (yes, the 317-5040-COM chip was reused for 3 different games and on both Naomi and ST-V!) |
| 37 | 37 | { "rsgun", 0x05272d01 }, // 1998 317-5041-COM ST-V |
| r243091 | r243092 | |
| 128 | 128 | { "dynamcopb", 0x0c2a4a93 }, // 1998 317-0236-COM Model 2 |
| 129 | 129 | { "dyndeka2b", 0x0c2a4a93 }, // 1998 317-0236-COM Model 2 |
| 130 | 130 | { "dynamcopc", 0x0c2a4a93 }, // 1998 317-0236-COM Model 2 |
| 131 | | { "zerogun", -1 }, // 1997 317-5038-COM Model 2 // lowest numbered chip? |
| 132 | | { "zerogunj", -1 }, // 1997 317-5038-COM Model 2 |
| 133 | | { "zeroguna", -1 }, // 1997 317-5038-COM Model 2 |
| 134 | | { "zerogunaj", -1 }, // 1997 317-5038-COM Model 2 |
| 135 | | { "pltkids", -1 }, // 1998 317-5044-COM Model 2 |
| 136 | | { "pltkidsa", -1 }, // 1998 317-5044-COM Model 2 |
| 131 | { "zerogun", 0x042c0d13 }, // 1997 317-5038-COM Model 2 |
| 132 | { "zerogunj", 0x042c0d13 }, // 1997 317-5038-COM Model 2 |
| 133 | { "zeroguna", 0x042c0d13 }, // 1997 317-5038-COM Model 2 |
| 134 | { "zerogunaj", 0x042c0d13 }, // 1997 317-5038-COM Model 2 |
| 135 | { "pltkids", 0x042e2dc1 }, // 1998 317-5044-COM Model 2 |
| 136 | { "pltkidsa", 0x042e2dc1 }, // 1998 317-5044-COM Model 2 |
| 137 | 137 | |
| 138 | 138 | { "von2", 0x092a0e97 }, // ???? 317-0234-COM Model 3 |
| 139 | 139 | { "von254g", 0x092a0e97 }, // ???? 317-0234-COM Model 3 |