GBDK libraries documentation

Chapter 4. Assembly language

Table of Contents
When C isn't fast enough
Calling convention
Variables and registers

When C isn't fast enough

For many applications C is fast enough but in intensive functions you are sometimes better to write them in assembler. This section deals with interfacing your core C program with fast assembly sub routines.

Functions in RAM Calling convention