没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > gba-print |
gba-print
|
1 | 0 | 4 |
贡献者 | 讨论 | 代码提交 |
Example#include 'gba.h'
#include 'printf.h'
int main(){
initTextBG(8,0,0);
print_f('This prints 5: %d',5);
}
OverviewThis 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/