GBA ROM Trimmer

Discussion in 'GBA - Game Development, ROM Hacks and Translations' started by DarkRookie, Jan 2, 2010.

Jan 2, 2010

GBA ROM Trimmer by DarkRookie at 11:23 PM (4,007 Views / 1 Likes) 7 replies

  1. DarkRookie
    OP

    Newcomer DarkRookie Newbie

    Joined:
    Feb 23, 2008
    Messages:
    5
    Country:
    United States
    Sorry if this question has been ask before, but I couldn't find an answer on either google or the forum search tool.
    I was wondering, is there a point in the GBA ROM that list the cut off point in the ROM like in the nDS ROM. I have made a nDS ROM trimmer but want to add a GBA function to it since I got a EZFlashV.
    If there isn't a mention of it, is there a method I could do to trim the ROMS?
    Thanks for the help.
     
    1 person likes this.
  2. Hatsu

    Banned Hatsu Someone's been killing, eh?

    Joined:
    Oct 19, 2009
    Messages:
    2,143
    Location:
    __________________ Warn: 50%
    Country:
    Australia
    You don't need to.
     
  3. Inunah

    Banned Inunah The Female Mistaken for a Male.

    Joined:
    Sep 14, 2009
    Messages:
    2,679
    Location:
    USA
    Country:
    United States
    If you don't have much space on your Micro SD, then yes. You need to. [​IMG]
     
  4. DarkRookie
    OP

    Newcomer DarkRookie Newbie

    Joined:
    Feb 23, 2008
    Messages:
    5
    Country:
    United States
    Is there a way of doing it?
     
  5. Magmorph

    Member Magmorph GBAtemp Advanced Fan

    Joined:
    Feb 22, 2009
    Messages:
    806
    Country:
    United States
    Use Tokyo trim.
     
  6. Satangel

    Member Satangel BEAST

    Joined:
    Nov 27, 2006
    Messages:
    10,255
    Location:
    Bruges, Belgium
    Country:
    Belgium
  7. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,707
    Country:
    United Kingdom
    To answer your question there is no rom size internal to the rom (it is why we had problems with overdumps* and underdumps).
    For most roms you will have to search back through the rom until you hit something other than 00 or FF (maybe alternating 00 - FF). Here some trimmers will just drop everything afterwards but some will add a byte or three as a safety (end of lines and the like have often been signalled with 00 or FF) and some other roms most notably Riviera: The Promised Land and Bleach (256Mbit roms) have something that is either junk, very crude anti piracy (having manually trimmed the rom several users have reported problems) or possibly actual game code (see previous bracketed text) following a large section of repeating 00 or FF.

    *overdumps will not be 00 or FF but will align to the boundaries (powers of two), some older trainers/intros, hacks and hacking tools will also place their code at the very end of the rom frustrating your efforts. If you are considering something "hacksafe" know that many hacks have and continue to use the upper 16 megabytes afforded by the GBA memory bus so a list may not be entirely effective. Speaking of lists underdumps and overdumps did fly below the radar fairly often (as an example an English language pokemon game took some time for the overdump news it to hit the scene proper and on the flip side if you are concerned with ROM sizes as in actual chips some of the new classics were technically underdumps but that will not cause play issues as everything fit into a fraction of the chip size).
     
  8. Destructobot

    Member Destructobot Crave the Hammer

    Joined:
    Oct 15, 2006
    Messages:
    5,005
    Location:
    Portland, OR
    Country:
    United States
    You should not use this info for deciding where to trim a DS rom. Other trimmers have used this method in the past, and they broke download play on nearly every rom they trimmed (this is why all the rom trimmers had to be updated once flashcarts started supporting DL play). There are also some games that do not have their size listed, and these roms either cause an error or output a zero byte file.
     

Share This Page