Coranac

Tonc - GBA Programming in rot13. Created: 2007-10-11 – 22:41.

Tonc is my reasonably successful tutorial on GBA programming, covering most aspects of the hardware in all its technical glory. Tonc explains the GBA hardware in detail, and how you should and should not work with it. Prior programming knowledge is required, an affinity for mathematics is also recommended.

1.4 is the final version, but I will try to fix errors when they are found. Look in the errata for details.

Tonc Downloads

Current (and final) version: v1.4

Older versions:

NOTE. I've had a report a while back that the CHM version didn't work. The reason seems to be the silly security settings in Windows that block downloaded CHM files to open properly. If you get this too, open the file's properties and click `Unblock' (Thanks for pointing this out, Kevin.)


6 Comments »

  1. In the latest tonc-code.zip, there appears to be no 'source' or 'gfx' subdirectories in code/adv/m7_demo/

    Comment by toney — 2009-12-23 @ 22:38
  2. There is a problem building the tonclib v1.4. It seems that make isn't pointing out where the headers are. I looked through the makefile and found some discrepancies between the variables INCLUDE and INCLUDES. But after changing them all to INCLUDES, the same thing happened.

    Comment by gooner — 2010-01-21 @ 21:21
  3. Odd. I've rebuilt tonclib here and it seems to compile okay. It did seem I missed a few points in the main codebase, though, so I've re-uploaded everything. Maybe it'll work better this time.

    About INCLUDE vs INCLUDES: INCLUDES is supposed to be the list for include directories, and INCLUDE is the variable that the compiler needs to search for the directories. You shouldn't replace one for the other, that won't work. Because of the obvious potential for confusion here, I always used INCDIRS in the examples, but somehow missed it in the tonclib makefile.

    Comment by cearn — 2010-01-22 @ 19:37
  4. Re-uploaded tonc-code.zip because some links to grit were incorrect.

    Comment by cearn — 2011-11-17 @ 20:43
  5. Thanks for the update. Incidentally, I recently noticed a rogue line of code in chapter 11.5. (http://www.coranac.com/tonc/text/affobj.htm) : int sina= lut_sin(alpha), cosa= lut_cos(alpha);

    Comment by dasi — 2011-11-19 @ 14:09
  6. Damnation >_< ! Found and fixed them. Good call.

    Comment by cearn — 2011-11-19 @ 18:41
RSS feed for comments on this post. TrackBack URL

Leave a comment




XHTML: You can use these tags:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Others: [code lang='*'], [wiki]




Powered by WordPress