GBA ROM Trimmer

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

  1. DarkRookie
    OP

    DarkRookie Newbie

    Newcomer
    5
    1
    Feb 23, 2008
    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

    Hatsu Someone's been killing, eh?

    Banned
    2,143
    0
    Oct 19, 2009
    __________________ Warn: 50%
    You don't need to.
     
  3. Inunah

    Inunah The Female Mistaken for a Male.

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

    DarkRookie Newbie

    Newcomer
    5
    1
    Feb 23, 2008
    United States
    Is there a way of doing it?
     
  5. Magmorph

    Magmorph GBAtemp Advanced Fan

    Member
    806
    21
    Feb 22, 2009
    United States
    Use Tokyo trim.
     
  6. Satangel

    Satangel BEAST

    Member
    10,255
    556
    Nov 27, 2006
    Belgium
    Bruges, Belgium
  7. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,348
    9,145
    Nov 21, 2005
    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

    Destructobot Crave the Hammer

    Member
    5,005
    5
    Oct 15, 2006
    United States
    Portland, OR
    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.