trunk/src/emu/bus/neogeo/bootleg_prot.c
| r31146 | r31147 | |
| 190 | 190 | |
| 191 | 191 | READ16_MEMBER(ngbootleg_prot_device::kof10th_RAM2_r) |
| 192 | 192 | { |
| 193 | // printf("kof10th_RAM2_r\n"); |
| 193 | 194 | return m_cartridge_ram2[offset]; |
| 194 | 195 | } |
| 195 | 196 | |
| r31146 | r31147 | |
| 228 | 229 | maincpu->space(AS_PROGRAM).install_read_handler(0x2fe000, 0x2fffff, read16_delegate(FUNC(ngbootleg_prot_device::kof10th_RAMB_r),this)); |
| 229 | 230 | maincpu->space(AS_PROGRAM).install_write_handler(0x200000, 0x23ffff, write16_delegate(FUNC(ngbootleg_prot_device::kof10th_custom_w),this)); |
| 230 | 231 | maincpu->space(AS_PROGRAM).install_write_handler(0x240000, 0x2fffff, write16_delegate(FUNC(ngbootleg_prot_device::kof10th_bankswitch_w),this)); |
| 232 | memcpy(m_cartridge_ram2, cpurom + 0xe0000, 0x20000); |
| 233 | |
| 231 | 234 | } |
| 232 | 235 | |
| 233 | 236 | void ngbootleg_prot_device::decrypt_kof10th(UINT8* cpurom, UINT32 cpurom_size) |
| r31146 | r31147 | |
| 251 | 254 | ((UINT16*)src)[0x8bf4/2] = 0x4ef9; // Run code to change "S" data |
| 252 | 255 | ((UINT16*)src)[0x8bf6/2] = 0x000d; |
| 253 | 256 | ((UINT16*)src)[0x8bf8/2] = 0xf980; |
| 257 | |
| 254 | 258 | } |
| 255 | 259 | |
| 256 | 260 | |