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.

Coding > run a rom whithin a rom?

#75 - satanicfreak2 - Thu Jan 02, 2003 8:04 am

is it possible to have a rom that calls another one?? Im trying to make a multiboot menu but i cant find any examples.

#77 - Costis - Thu Jan 02, 2003 8:16 am

Hi,

You can copy multi-boot GBA programs (compiled for RO section 0x2000000) from normal GBA programs to EWRAM and execute them from there if that's what you mean. That's how some GBA programs support both multi-boot and normal execution modes: They check if they are located in ROM when started and if so, they copy themselves into EWRAM (like they would normally be if they were multi-booted) and run from there.

Costis

#853 - dummer Anf?nger - Sat Jan 11, 2003 9:38 am

Hm ... some time ago into gabos is have just use void pointers. But this is still just possible if the code that u want to start programmed in a way that it works from every pointer. Typical games dont do that.
_________________
... but im just a dummy Newbie

(sorry for my terrible english)

#1060 - tepples - Tue Jan 14, 2003 7:11 am

satanicfreak2 wrote:
is it possible to have a rom that calls another one?? Im trying to make a multiboot menu but i cant find any examples.


If you have several .mb ROMs (which run from 0x02000000), you can toss them into my multiboot menu program, available at http://www.pineight.com/gba/
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#1075 - zeuhl - Tue Jan 14, 2003 11:57 am

satanicfreak2 wrote:
is it possible to have a rom that calls another one?? Im trying to make a multiboot menu but i cant find any examples.


look into PogoShell's sourcecode. you'll find a "visoly.s" file that contains the code to select the page of ROM that must be remapped into 0x08000000, and run it (it's a soft reset, basically).