metroid-maniac / SCFW

SCFW Supercard Custom Firmware & Kernel
GNU General Public License v3.0
105 stars 4 forks source link

Minor enhancement - GOOMBA implementation #9

Closed OmDRetro closed 4 months ago

OmDRetro commented 4 months ago

Based on this tutorial, concatenating the emulator(Goomba/Goomba Color in this case) and the ROM file allows the emulator to see the game file, but the resulting stream of concatenating the two will have to be flashed.

//DOS shell command for concatenation of binaries
copy /b goomba.gba+game1.gb+game2.gb goombamenu.gba
//BASH command for concatenation of binaries
cat goomba.gba game1.gb game2.gb > goombamenu.gba

The resulting file goombamenu.gba is what needs to be on the flashchip / rewritable rom chip. Not sure how other flashcarts implement this, but I'm adding it here as a helpful source.

metroid-maniac commented 4 months ago

Concatenating the emulator ROM with the game ROM is enough to make the emulator boot up the game.

I'm not quite sure how "return to menu" functionality works yet. Pogoshell seems to have defined a standard for this, which goomba and Sterophonick's Simple kernel have implemented, but it uses a lot of magic addresses so I haven't figured it out yet. I guess that can be figured out later.

OmDRetro commented 4 months ago

Done pushing changes to new branch. Goomba successfully implemented.

Please check the bleeding-edge kernel here