
gba-print
Example
```
include 'gba.h'
include 'printf.h'
int main(){ initTextBG(8,0,0); print_f('This prints 5: %d',5); } ```
Overview
This is a formatted string printer for the GameBoy Advance. It takes up one scrolling background, some background memory space, and a tiny amount of background palette space. If you're mindful of its small memory footprint and background requirements it should be compatible with just about any project, especially during development phases.
This is intended to be a developer's tool for high-level debugging.
To use it, first you call an initialization function to specify the screen base block, the background number, and the character block you want to use for scrolling text output. Then you can print formatted strings just like with printf()
, except we use print_f()
in a weak attempt to prevent conflicts. It can print all standard (not extended) ASCII characters. The screen automatically scrolls down. There is no scrolling up.
The functions are thoroughly documented in the header, and the source is very small, and easy to understand, modify and extend.
For feedback email the project's owner @gmail.com
For more projects go to www.fabiancanas.com
To comment, go to www.fabiancanas.com/Projects/gba/
Project Information
- License: GNU GPL v2
- 2 stars
- svn-based source control
Labels:
GBA
GameBoyAdvance
print
printf
nintendo
GameBoy
DevTool
Developer
DeveloperTool
ScrollingText
GameBoyProgramming
stringprinter
textoutput
debuggingtool