Author Topic: Problem to update clones for NEOGEO  (Read 249 times)

Offline ironMike

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
Problem to update clones for NEOGEO
« on: November 13, 2019, 02:13:38 PM »
Hi,

In my case i want to add a clone for NEOGEO with a file P3, but there some thing i dont understand, im trying to do the same as the other existing clones.

Example of KOF95SP:

      UINT16 *rom = (UINT16*)kof95spExtraROM;

      for (INT32 i = 0; i < 0x20000/2; i++) {
         if (rom == 0x4e7d) rom = 0x4e71;
         if (rom == 0x4e7c) rom = 0x4e75;//Replace all 0x4e7c with 0x4e75
      }

      rom = (UINT16*)Neo68KROMActive;

      for (INT32 i = 0; i < 0x100000/2; i++) {
         if (rom == 0x4e7d) rom = 0x4e71;
         if (rom == 0x4e7c) rom = 0x4e75;
      }

      rom[0x1f3a8] = 0x2b7c; // 4ef9 //<-------------I Dont understand how to fin this value and it adress
      rom[0x1f3a9] = 0x0003; // 0090//<-------------I Dont understand how to fin this value and it adress
      rom[0x1f3aa] = 0xe7fa; // 16be//<-------------I Dont understand how to fin this value and it adress

           SekOpen(0);
           SekMapMemory(kof95spExtraROM, 0x900000, 0x91ffff, MAP_ROM);
           SekClose();
   }


I think it a kind of header to declare the new side of the ROM, but i dont have an idee what is 4ef9 0090 16be, Without does values i have a black screen in the Select screen

Please help me

Offline iq_132

  • Administrator
  • *****
  • Posts: 3625
  • Karma: +385/-0
  • Bare Knuckle!
    • NeoSource
Re: Problem to update clones for NEOGEO
« Reply #1 on: November 13, 2019, 07:23:01 PM »
Hi,

In my case i want to add a clone for NEOGEO with a file P3, but there some thing i dont understand, im trying to do the same as the other existing clones.

Example of KOF95SP:

      UINT16 *rom = (UINT16*)kof95spExtraROM;

      for (INT32 i = 0; i < 0x20000/2; i++) {
         if (rom == 0x4e7d) rom = 0x4e71;
         if (rom == 0x4e7c) rom = 0x4e75;//Replace all 0x4e7c with 0x4e75
      }

      rom = (UINT16*)Neo68KROMActive;

      for (INT32 i = 0; i < 0x100000/2; i++) {
         if (rom == 0x4e7d) rom = 0x4e71;
         if (rom == 0x4e7c) rom = 0x4e75;
      }

      rom[0x1f3a8] = 0x2b7c; // 4ef9 //<-------------I Dont understand how to fin this value and it adress
      rom[0x1f3a9] = 0x0003; // 0090//<-------------I Dont understand how to fin this value and it adress
      rom[0x1f3aa] = 0xe7fa; // 16be//<-------------I Dont understand how to fin this value and it adress

           SekOpen(0);
           SekMapMemory(kof95spExtraROM, 0x900000, 0x91ffff, MAP_ROM);
           SekClose();
   }


I think it a kind of header to declare the new side of the ROM, but i dont have an idee what is 4ef9 0090 16be, Without does values i have a black screen in the Select screen

Please help me
Can you post the names, sizes, and crcs of the program roms you are using? It may help.


Offline ironMike

  • Newbies
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Problem to update clones for NEOGEO
« Reply #2 on: November 13, 2019, 07:29:47 PM »
Here:

static struct BurnRomInfo kof98pfeRomDesc[] = {

   //[Program]
   { "242-p1pfe.p1" , 0x100000, 0x23876d95, 1 | BRF_ESS | BRF_PRG },
   { "242-p2pfe.p2" , 0x400000, 0xadbaa852, 1 | BRF_ESS | BRF_PRG },
   { "242-p3pfe.p3" , 0x020000, 0x930ea34e, 1 | BRF_ESS | BRF_PRG },

   //[Text]
   { "242-s1pfe.s1" , 0x020000, 0x7f4dbf23, 2 | BRF_GRA },

   //[Graphics]
   { "242-c1pfe.c1",  0x800000, 0x379654a5, 3 | BRF_GRA },
   { "242-c2pfe.c2",  0x800000, 0x9c71fa3d, 3 | BRF_GRA },
   { "242-c3.c3",     0x800000, 0x22127b4f, 3 | BRF_GRA },           //  5
   { "242-c4.c4",     0x800000, 0x0b4fa044, 3 | BRF_GRA },           //  6
   { "242-c5.c5",     0x800000, 0x9d10bed3, 3 | BRF_GRA },           //  7
   { "242-c6.c6",     0x800000, 0xda07b6a2, 3 | BRF_GRA },           //  8
   { "242-c7pfe.c7" , 0x800000, 0x02f09b2e, 3 | BRF_GRA },
   { "242-c8pfe.c8" , 0x800000, 0xd43ab3e6, 3 | BRF_GRA },

   //[Z80]
   { "242-mg1.m1",    0x040000, 0x4e7a6b1b, 4 | BRF_ESS | BRF_PRG }, // 11 Z80 code

   //[Samples]
   { "242-v1.v1",     0x400000, 0xb9ea8051, 5 | BRF_SND },           // 12 Sound data
   { "242-v2.v2",     0x400000, 0xcc11106e, 5 | BRF_SND },           // 13
   { "242-v3.v3",     0x400000, 0x044ea4e1, 5 | BRF_SND },           // 14
   { "242-v4.v4",     0x400000, 0x7985ea30, 5 | BRF_SND },           // 15

};

the 242-p3pfe.p3 giving me had time