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.

DS development > porting tutorials

#106633 - chrissieboy - Sat Oct 21, 2006 7:30 pm

Hi guys im learned c++ within a month now.
I read a lot of tutorials and books.

After that i read some tutorials and documents about how cpu's work.

So i would like to start with porting games, maybe after that some emulators for very simple cpu's.

The problem is that i can't find any information or tutorials how i start to porting a game from pc to a console or something?

Does anyone has tutorials or documents for me how i can port a game or something?

If there's no information about it than anyone has doc/tuts about starting with writing emulators for ds?

hope you guys can help me, because i realy want to learn this.

thanx!

Chris

#106638 - Sausage Boy - Sat Oct 21, 2006 8:43 pm

Porting is pretty easy, if the project is well written. The general process is:

1. Get source code
2. Remove and stub out platform specific stuff
3. Fix broken code
4. Repeat 2 and 3 until it compiles
5. Replace what you removed with DS stuff
6. ???
7. PROFIT!

For an emulator, I recommend that you begin with a Chip8 emulator for PC. That's pretty much as simple as it gets, and you'll learn a lot about cpus and emulating.
_________________
"no offense, but this is the gayest game ever"

#106660 - chrissieboy - Sun Oct 22, 2006 9:03 am

thanx sausage boy!

the chip8 sounds very great, a time ago i saw some tutorials about it.
But i forgot the chip8 name, but im going to search for tutorials thanx for your help!!