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 > How to insert an "Intro" ?

#6442 - basic - Sun May 25, 2003 8:26 pm

Hello,

I'm looking for a way to insert an Intro in an GBA rom wich allows the intro to be displayed an then the game to come after properly ...
If anyone can help, thx =)

-basic

#6443 - Lord Graga - Sun May 25, 2003 8:32 pm

OHHH!
Well well well! What do we have here?
Do I smell piracy,
or is it just me?

We would kinda like an explenation.....


Anyways, you better start of by learning how to program QBASIC, then learn C for GBA, and when you know how the GBA works, learn ASM.
Then write the intro in a hex editor.
Viola.

Lord Graga

#6445 - basic - Sun May 25, 2003 9:55 pm

Actually the problem is not to code the intro ... but to insert it in a way that the game still works, just after the intro :\\

And of course i own all the originals games (that's even kinda true h?h?) ;-P ... But u're right when u think that the intro i'm willing to do won't be used by innocent guys if that's what u want to know ^^

Oh, and i'm not the coder, just graphician ^^

Well, if u can't help because it's linked in a way with piracy, i can understand =)

-basic

#6446 - tepples - Sun May 25, 2003 10:16 pm

Have you ever written a computer virus? A non-resident virus inserts itself into a program by modifying the program's first jump to jump to the virus, which then jumps to the program proper after it has infected a few other files on the system.

All GBA programs begin with a branch to _start(). Put this branch at the end of your intro and then replace the original branch with a branch to the intro. Then stick the intro after the first several KB of the ROM. But make sure to call RegisterRamReset() in the BIOS before you branch back to the main program.

If I were writing an intro, I would start a multiboot minigame (see the 4K competition for inspiration) and then require the user to press start to start the actual game.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.