Welcome!

General Emulation => MAME => Topic started by: iq_132 on September 07, 2006, 04:05:32 PM

Title: Interesting addition to MAME 108u3
Post by: iq_132 on September 07, 2006, 04:05:32 PM

A new rom load type:

ROM_IGNORE( )

This is interesting mostly just for 1 rom in Neo-Geo:
Code: [Select]
ROM_REGION( 0x2000000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x2000000, CRC(432cfdfc) SHA1(19b40d32188a8bace6d2d570c6cf3d2f1e31e379) )
You can now load it this way (I think)
Code: [Select]
ROM_REGION( 0x800000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x800000, CRC(432cfdfc) SHA1(19b40d32188a8bace6d2d570c6cf3d2f1e31e379) )
ROM_IGNORE( 0x1800000 )
And it should save you 24mb of ram (hopefully), someone please test this.
Title: Re: Interesting addition to MAME 108u3
Post by: KaNyErO on September 08, 2006, 07:55:01 AM
It could help to save some kb of ram from m1 roms too  :biggrin:
Title: Re: Interesting addition to MAME 108u3
Post by: neo04 on September 08, 2006, 01:01:58 PM
i think it should be:

   ROM_REGION( 0x2000000, REGION_CPU1, 0 )
   ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x800000, CRC(432cfdfc) SHA1(19b40d32188a8bace6d2d570c6cf3d2f1e31e379) )
   ROM_IGNORE( 0x1800000 )
Title: Re: Interesting addition to MAME 108u3
Post by: James33 on September 09, 2006, 08:39:18 AM
i think it should be:

   ROM_REGION( 0x2000000, REGION_CPU1, 0 )
   ROM_LOAD16_WORD_SWAP( "269-p1.bin", 0x000000, 0x800000, CRC(432cfdfc) SHA1(19b40d32188a8bace6d2d570c6cf3d2f1e31e379) )
   ROM_IGNORE( 0x1800000 )


Why do you think that ?
Title: Re: Interesting addition to MAME 108u3
Post by: iq_132 on September 09, 2006, 12:05:18 PM
Exactly right james, doing that still allocates 32mb of ram for the game.  The ROM_IGNORE makes it so that you don't have to -- doing as you say, neo, completely defeats the purpose of that function.
Title: Re: Interesting addition to MAME 108u3
Post by: neo04 on September 09, 2006, 12:10:57 PM
if i do that, mame will bitch bout incorrect size (iirc) :(
Title: Re: Interesting addition to MAME 108u3
Post by: James33 on September 10, 2006, 02:34:04 AM
if i do that, mame will bitch bout incorrect size (iirc) :(

What version is your source ?
Title: Re: Interesting addition to MAME 108u3
Post by: neo04 on September 10, 2006, 05:19:54 AM
hmm.. maybe coz i only updated 'romload.c' & 'romload.h'
im using 108 src btw :p

sorry 4 the confusion