Jump to content

Recommended Posts

Posted

Cool I gotting the "MAGIC PLUS" word to work now.

 

I also fixs the "MAGIC PLUS 2" word as well. Because the kof2000_neogeo_gfx_decrypt(0xec); change into the cmc50_neogeo_gfx_decrypt(0xec);.

 

Thanks. ;)

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

Posted
I am completely mystified as to what this is all about. I only added one line into neocrypt.c

If you look at the bottom of that file you will see ( For Mame Plus )

Rather silly to change it since code in drivers\neogeo.c uses it. So I just make use of it as well.

Since ita already there I need not add anything.

The normal mame32 I use somthing else that just add a line for the game that needs it.

Posted

Ok I gotting an error on the src\machine\neogeo.c

 

In function 'mslug5p_bankswitch_w'

 

warning: implicit declaration of function 'cpu_setbank'

 

static WRITE16_HANDLER ( mslug5p_bankswitch_w )
{
       /* thanks to fataku for the info */
       unsigned char *RAM = memory_region(REGION_CPU1);
       int bankaddress;
       logerror("offset: %06x PC %06x: set banking %04x\n",offset,activecpu_get_pc(),data);
       if ((offset == 0)&&(data == 0xa0))
       {
               bankaddress=0xa0;
               cpu_setbank(4,&RAM[bankaddress]);
               //neogeo_set_cpu1_second_bank(bankaddress);
               logerror("offset: %06x PC %06x: set banking %04x\n\n",offset,activecpu_get_pc(),bankaddress);
       }
       else if(offset == 2)
       {  data=data>>4;
          //data=data&7;
          bankaddress=data*0x100000;
          cpu_setbank(4,&RAM[bankaddress]);
          //neogeo_set_cpu1_second_bank(bankaddress);
          logerror("offset: %06x PC %06x: set banking %04x\n\n",offset,activecpu_get_pc(),bankaddress);
       }
}

=========================================

if (!strcmp(Machine->gamedrv->name,"ms5plus") )
       {
       /* special ROM banking handler */
       memory_install_write16_handler( 0, ADDRESS_SPACE_PROGRAM, 0x2ffff0, 0x2fffff, 0, 0, mslug5p_bankswitch_w );

       /* additional protection */
       memory_install_read16_handler( 0, ADDRESS_SPACE_PROGRAM, 0x2ffff0, 0x2fffff, 0, 0, mslug5_prot_r );       
   }

 

ROM_START( ms5plus )
ROM_REGION( 0x500000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "268-p1p.bin", 0x000000, 0x100000, CRC(106b276f) )
ROM_LOAD16_WORD_SWAP( "268-p2p.bin", 0x100000, 0x200000, CRC(d6a458e8) )
ROM_LOAD16_WORD_SWAP( "268-p3p.bin", 0x300000, 0x200000, CRC(439ec031) )

ROM_REGION( 0x20000, REGION_GFX1, 0 )
ROM_LOAD("268-s1p.bin", 0x000000, 0x20000, CRC(21e04432) )
ROM_REGION( 0x20000, REGION_GFX2, 0 )
ROM_LOAD( "sfix.sfx", 0x000000, 0x20000, CRC(354029fc) SHA1(4ae4bf23b4c2acff875775d4cbff5583893ce2a1) )

ROM_REGION( 0x40000, REGION_USER4, 0 )
ROM_LOAD( "268-m1.bin", 0x00000, 0x40000, CRC(88c11f51) SHA1(5592819be64b69ab361d3b6b139fc68d8cabd29d) )
NEO_BIOS_SOUND_256K( "268-m1d.bin", CRC(6866d696) SHA1(3638b072e44277a6bffea5a78a915a14c6afcba0) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0)
ROM_LOAD( "268-v1.bin", 0x000000, 0x800000, CRC(33c6305c) SHA1(67fce35a62941d2dcec75f0e6319677d6df7a4dc) )
ROM_LOAD( "268-v2.bin", 0x800000, 0x800000, CRC(1afb848e) SHA1(368e950043deebc91f7b38be770fa1045a0153af) )
	 
ROM_REGION( 0x4000000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "ms5n_c1.rom", 0x0000000, 0x800000, CRC(969c0d62) )
ROM_LOAD16_BYTE( "ms5n_c2.rom", 0x0000001, 0x800000, CRC(c69ae867) )
ROM_LOAD16_BYTE( "ms5n_c3.rom", 0x1000000, 0x800000, CRC(d7beaeaf) )
ROM_LOAD16_BYTE( "ms5n_c4.rom", 0x1000001, 0x800000, CRC(899fb2af) )
ROM_LOAD16_BYTE( "ms5n_c5.rom", 0x2000000, 0x800000, CRC(2fa1a5ad) )
ROM_LOAD16_BYTE( "ms5n_c6.rom", 0x2000001, 0x800000, CRC(6de89589) )
ROM_LOAD16_BYTE( "ms5n_c7.rom", 0x3000000, 0x800000, CRC(97bd0c0a) )
ROM_LOAD16_BYTE( "ms5n_c8.rom", 0x3000001, 0x800000, CRC(c0d5bc20) )
ROM_END

==========================================

DRIVER_INIT( ms5plus )
{
   UINT8 *dst = osd_malloc(0x20000);
   UINT8 *roms1 = (memory_region(REGION_GFX1));
   int j;
   if ( dst )
   {
           memcpy(dst,roms1,0x20000);
           // descrambling the S1 by dorriGa
           for (j=0;j<0x20000; j+=0x000010)
           {
                   memcpy( roms1+j, dst+j+0x000008,8);
                   memcpy( roms1+j+0x000008, dst+j,8);
                      
           }
   }
   free( dst );
   neogeo_fix_bank_type = 1;
   mslug5_vx_decrypt();
 init_neogeo();	
}

 

Let me know what to fixs. ;)

Posted (edited)

I don't know why people still insist on using that crappy ms5plus code:

 

Here's the same code, but with everything that isn't used removed/merged

static WRITE16_HANDLER ( mslug5p_bankswitch_w )
{
/* thanks to fataku for the info */
if(offset == 2)
{
 neogeo_set_cpu1_second_bank(data<<16);
}
}

 

if (!strcmp(Machine->gamedrv->name,"ms5plus") )
{
memory_install_write16_handler( 0, ADDRESS_SPACE_PROGRAM, 0x2ffff0, 0x2fffff, 0, 0, mslug5p_bankswitch_w );       
}

Edited by iq_132
Posted (edited)
why does the first part say WRITE16_handler and the 2nd part say READ16_handler ??

 

It kind of like turn on the machine. It write, read next and then load the game. :)

 

Hmmm...It doesn't like it.

 

Errror report.

 

scr/machine/neogeo.c

 

In function 'neogeo_custom_memory' :

 

warning: passing arg 7 of '_memory_install_read16_handler' from incompatible pointer type

 

It talking about this bellow. It missing something there.

 

if (!strcmp(Machine->gamedrv->name,"ms5plus") )
       {
       memory_install_read16_handler( 0, ADDRESS_SPACE_PROGRAM, 0x2ffff0, 0x2fffff, 0, 0, mslug5p_bankswitch_w );      
}

 

Oh ok. It missing this one.

 

       memory_install_read16_handler( 0, ADDRESS_SPACE_PROGRAM, 0x2ffff0, 0x2fffff, 0, 0, mslug5_prot_r );      
  }

 

Because of this.

 

static READ16_HANDLER( mslug5_prot_r )
{
       logerror("PC %06x: access protected\n",activecpu_get_pc());
       return 0xa0;
}

 

I just now figger it out nnow.

Edited by KillerBee
Posted
why does the first part say WRITE16_handler and the 2nd part say READ16_handler ??

Lol, you're exactly right. It should be just a write16 handler.

 

 

@ hanco, check my post above. It only needs the bankswitch code I posted and not any more of it.

And before you dumb out on me, yes, you still need the code in the init.

Posted

Now that the little error has been fixed, I've decided to use your code and get rid of the convoluted stuff.

 

It worked first go. :)

Posted
Now that the little error has been fixed, I've decided to use your code and get rid of the convoluted stuff.

 

It worked first go.  ;)

 

 

Yes I could of told you that :)

Posted
Now that the little error has been fixed, I've decided to use your code and get rid of the convoluted stuff.

 

It worked first go.  ;)

lol, yeah. I should pay more attention to code that I'm modifying when I post it. :)

Posted (edited)

http://www.savefile.com/projects.php?pid=601581

 

I need help with these. kof2003, kof2003b, kof2003a, kof2003p and kof2k3up.

 

I gotting 4 errors. Here is the source on those. Please help me solve the probelms that I'm getting. Another thing is the kof2003 might not boot. I try this by it self before and it just return back onto the Mame32 screen.

 

I left everything alone except for fixing some things. Like rename the data16_t into UINT16 because those will not work on the lates source. I left the roms settings alone as well.

 

The errors that I'm getting is from these.

 

ROM_START( kof2003a ) /* Uni-Bios Fix - Bootleg Set 2 */
ROM_REGION( 0x800000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "271-p1d.bin", 0x000000, 0x400000, CRC(3b58d2e5) SHA1(9524cd6f90e8d3037eeeb895b4da1d13f18c1e4a) )
ROM_LOAD16_WORD_SWAP( "271-p2d.bin", 0x400000, 0x400000, CRC(5934d72b) SHA1(6814b368f40f342d68db4d676bb54fb459b7c7eb) )

NEO_SFIX_512K( "271t-s1d.bin", CRC(071a8b1e) SHA1(92c73931f22ba5cae8b15a1fc2c773bb7f8ed702) )

NEO_BIOS_SOUND_512K( "271-m1d.bin", CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0 )
/* decrypted */
ROM_LOAD( "271-v1d.bin", 0x000000, 0x1000000, CRC(2058ec5e) SHA1(567fdf328f87551a949dc601f4e71c55368debf0) )

NO_DELTAT_REGION

ROM_REGION( 0x6000000, REGION_GFX3, 0 )
/* decrypted */
ROM_LOAD16_BYTE( "271-c1d.bin", 0x0000000, 0x1000000, CRC(c29acd28) SHA1(8a10409c5a9ad95fa9b56e94c14f1b96101fb179) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c2d.bin", 0x0000001, 0x1000000, CRC(328e80b1) SHA1(c7f8069488be1a88a2ea03718b6a131f5c96bd3f) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c3d.bin", 0x2000000, 0x1000000, CRC(020a11f1) SHA1(85cfae76234f72b0039ebc02f931bb2a9c10b1af) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c4d.bin", 0x2000001, 0x1000000, CRC(991b5ed2) SHA1(99c4c470bc9cb388773e27de6df4a16803fc7b45) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c5d.bin", 0x4000000, 0x1000000, CRC(c2de8b66) SHA1(40c2ea48fc20d470163a9dbb40c0276fc4cfceb9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c6d.bin", 0x4000001, 0x1000000, CRC(3ff750db) SHA1(714f14a2eb2df6f25d10a6b6aff4b3adfbc7a5dc) ) /* Plane 2,3 */
ROM_END

ROM_START( kof2003p ) /* Uni-Bios Fix - Bootleg Hack */
     ROM_REGION( 0x700000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "271-p1ex.bin", 0x000000, 0x100000, CRC(dacf5b2d) SHA1(b776f3cf2a720325fed8f8908f18eacdc3cb05aa) )
ROM_LOAD16_WORD_SWAP( "271-p1bl.bin", 0x100000, 0x400000, CRC(92ed6ee3) SHA1(5e7e21eb40dfcc453ba73808760d5ddedd49c58a) )
ROM_LOAD16_WORD_SWAP( "271-p3ex.bin", 0x500000, 0x200000, CRC(0d0a5861) SHA1(823dd3d11574a42f98588a6d1f9bb5d721f34be2) )

NEO_SFIX_512K( "271p-s1d.bin", CRC(09e3f2bd) SHA1(733488b3c06262e67cb771ed76e8bbbe16cf7dda) )

NEO_BIOS_SOUND_512K( "271-m1d.bin", CRC(0e86af8f) SHA1(769102b67bb1a699cfa5674d66cdb46ae633cb65) )

ROM_REGION( 0x1000000, REGION_SOUND1, 0 )
/* decrypted */
ROM_LOAD( "271-v1d.bin", 0x000000, 0x1000000, CRC(2058ec5e) SHA1(567fdf328f87551a949dc601f4e71c55368debf0) )

NO_DELTAT_REGION

ROM_REGION( 0x6000000, REGION_GFX3, 0 )
/* decrypted */
ROM_LOAD16_BYTE( "271-c1d.bin", 0x0000000, 0x1000000, CRC(c29acd28) SHA1(8a10409c5a9ad95fa9b56e94c14f1b96101fb179) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c2d.bin", 0x0000001, 0x1000000, CRC(328e80b1) SHA1(c7f8069488be1a88a2ea03718b6a131f5c96bd3f) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c3d.bin", 0x2000000, 0x1000000, CRC(020a11f1) SHA1(85cfae76234f72b0039ebc02f931bb2a9c10b1af) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c4d.bin", 0x2000001, 0x1000000, CRC(991b5ed2) SHA1(99c4c470bc9cb388773e27de6df4a16803fc7b45) ) /* Plane 2,3 */
ROM_LOAD16_BYTE( "271-c5d.bin", 0x4000000, 0x1000000, CRC(c2de8b66) SHA1(40c2ea48fc20d470163a9dbb40c0276fc4cfceb9) ) /* Plane 0,1 */
ROM_LOAD16_BYTE( "271-c6d.bin", 0x4000001, 0x1000000, CRC(3ff750db) SHA1(714f14a2eb2df6f25d10a6b6aff4b3adfbc7a5dc) ) /* Plane 2,3 */
ROM_END

 

I send James33 these and haven't gotting a respond yet from him.

Edited by KillerBee
Guest
This topic is now closed to further replies.

×
×
  • Create New...