tonc - Tonc : GBA Programming in rot13 1 of 359 i. Tonc...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Tonc : GBA Programming in rot13 1 of 359 i. Tonc v1.3- : Table of Contents i.1. Preface i Contents 1 ii Introduction to Tonc 3 i.2. GBA Basics 1 GBA Hardware 8 2 Setting up a development environment 12 3 My First GBA Demo 21 4 Video Introduction 33 5 The bitmap modes 38 6 The GBA keypad 60 7 Sprite and tiled background overview 66 8 Regular sprites 72 9 Regular tiled backgrounds 85 i.3. GBA Extended 10 The affine transformation matrix 102 11 Affine sprites 109 12 Affine tiled backgrounds 123 13 Graphic effects 130 14 Direct Memory Access 143 15 Timers 151 16 Hardware interrupts 155 17 BIOS calls 170 18 Beep! GBA sound introduction 178 i.4. Advanced / Applications 19 Text systems 190 20 Mode 7 214 21 More Mode7 tricks 222 22 Whirlwind tour of ARM assembly (draft) 248 23 The Lab 288 i.5. Appendixes A Numbers, bits and bit operations 297 B Fixed-point math & LUTs 312 Tonc : GBA Programming in rot13 2 of 359 C Vector and matrix math 325 D More on makefiles and compiler options 334 E Make via editors 340 F References 348 G Change log 352 i.6. On revisions Tonc 1.0 is considered final . Well, it was considered final until I found an enormous range of things to add and change. Most of what now is called GBA Basics has been rewritten and expanded. Most demo-code can now also be found in the html pages, and later demos also use tonclib's text functions and special memcpy/set versions. So basically, it's a whole new thing. Finality isn't what is used to be. I'm mostly done now, but there are still one or two I'd like to add/change in the future, though mainly in the code department. Modified Feb 8, 2007, J Vijn . Get all Tonc files here Tonc : GBA Programming in rot13 3 of 359 Fig ii.1 : directories. ii. Introduction to Tonc Organisation Terminology and Notation Prerequisites On errors, suggestions ii.1. Organisation TONC consists of three parts: a text section, the actual tutorial, a code section, which contains all the source code and makefiles of the various demos, and a bin section that contains binaries of the demo. Though they are separate zip files, they work best when used together. You can find the zip files further down this page. If you unzip them in one directory, say tonc , you'll get the structure depicted in fig ii.1. ii.1.1. Tonc text The text section covers the principles of GBA programming in detail. The focus here is not so much on how to get something done, but how things actually work , and it's done the way it's done. After that the how often comes naturally. Every chapter has one of more demonstrations of the covered theory, and a brief discussion of the demo itself. Please, do not make the mistake of only reading the demo discussion: to properly understand how things work you need to read the text in full. While there are optional parts, and whole pages of boring text that seem to have little to do with actual GBA coding, they are there for a reason, usually there's extra conceptual information or gotchas....
View Full Document

This note was uploaded on 05/23/2011 for the course COMPUTER S 1372 taught by Professor Smith,david during the Spring '11 term at Georgia Institute of Technology.

Page1 / 359

tonc - Tonc : GBA Programming in rot13 1 of 359 i. Tonc...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online