Author Topic: Interesting addition to MAME 108u3  (Read 7615 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Interesting addition to MAME 108u3
« 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.


Offline KaNyErO

  • Member
  • ***
  • Posts: 142
  • Karma: +4/-0
Re: Interesting addition to MAME 108u3
« Reply #1 on: September 08, 2006, 07:55:01 AM »
It could help to save some kb of ram from m1 roms too  :biggrin:

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: Interesting addition to MAME 108u3
« Reply #2 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 )

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Interesting addition to MAME 108u3
« Reply #3 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 ?
IQ Forum Member

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Interesting addition to MAME 108u3
« Reply #4 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.


Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: Interesting addition to MAME 108u3
« Reply #5 on: September 09, 2006, 12:10:57 PM »
if i do that, mame will bitch bout incorrect size (iirc) :(

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Interesting addition to MAME 108u3
« Reply #6 on: September 10, 2006, 02:34:04 AM »
if i do that, mame will bitch bout incorrect size (iirc) :(

What version is your source ?
IQ Forum Member

Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
Re: Interesting addition to MAME 108u3
« Reply #7 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