Previous 199869 Revisions Next

r31147 Monday 30th June, 2014 at 22:48:13 UTC by David Haywood
fix kof10th bootleg (nw)
[src/emu/bus/neogeo]bootleg_prot.c

trunk/src/emu/bus/neogeo/bootleg_prot.c
r31146r31147
190190
191191READ16_MEMBER(ngbootleg_prot_device::kof10th_RAM2_r)
192192{
193//   printf("kof10th_RAM2_r\n");
193194   return m_cartridge_ram2[offset];
194195}
195196
r31146r31147
228229   maincpu->space(AS_PROGRAM).install_read_handler(0x2fe000, 0x2fffff, read16_delegate(FUNC(ngbootleg_prot_device::kof10th_RAMB_r),this));
229230   maincpu->space(AS_PROGRAM).install_write_handler(0x200000, 0x23ffff, write16_delegate(FUNC(ngbootleg_prot_device::kof10th_custom_w),this));
230231   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
231234}
232235
233236void ngbootleg_prot_device::decrypt_kof10th(UINT8* cpurom, UINT32 cpurom_size)
r31146r31147
251254   ((UINT16*)src)[0x8bf4/2] = 0x4ef9; // Run code to change "S" data
252255   ((UINT16*)src)[0x8bf6/2] = 0x000d;
253256   ((UINT16*)src)[0x8bf8/2] = 0xf980;
257
254258}
255259
256260

Previous 199869 Revisions Next


© 1997-2024 The MAME Team