gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > Accessing the ROM data

#37409 - MasterRay - Fri Mar 11, 2005 2:43 pm

Hi,
Can I access ROM data on a cartridge, like sprites or sounds from multiboot programs? How can I find where the data is? Does it encrypted?
Thanks

#37414 - MumblyJoe - Fri Mar 11, 2005 4:00 pm

MasterRay wrote:
Does it encrypted?


Occasionally, but it usually snaps right out of it.
_________________
www.hungrydeveloper.com
Version 2.0 now up - guaranteed at least 100% more pleasing!

#37418 - tepples - Fri Mar 11, 2005 4:19 pm

A multiboot program loaded through MBV2, through a USB linker, or through pak-swapping can access the entire GBA ROM area. Applications include a hex viewer, a sprite viewer, a map viewer, a savegame editor, etc. In fact, if you want to dump a whole cart to the PC, there's nothing stopping you. Nintendo originally planned to hide all of ROM except the first 4 KB from GBA multiboot programs as a privacy measure, but the feature was dropped. There is no encryption on GBA carts.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#37532 - MasterRay - Sat Mar 12, 2005 6:24 pm

thanks for your help.
What I wanted to do is to upload a multiboot software that'll use the info on the cart instead of multibooting that also.
Does someone tried it once? Where can I find a sprite viewer to be used on e real GBA?

#37534 - tepples - Sat Mar 12, 2005 7:41 pm

GBA ROMs and Super NES ROMs don't necessarily have a clear separation of tiles from other data the way NES ROMs have. If you want to view sprites in the commercial games, you're going to have to hack an emulator to log the source addresses of all copies to sprite cel VRAM and to log all calls to the decompression functions LZ77UnCompVram and RLUnCompVram, and you're going to have to send processed logs along with the multiboot program. Even then, you may have trouble getting the palette right.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.