GBDKライブラリドキュメント
GBDK libraries documentation

Michael HopeとPascal Felberによって
by Michael Hope and Pascal Felber

GBDK-2.0b13
GBDK-2.0b13

このドキュメントは、Pascal FelberによるCコンパイラ、アセンブラ、リンカ、ライブラリから成るGameboy開発キット(GBDK)をドキュメント化する最初の試みです。 Cでefficentな8ビットコードを書く方法、GBハードウェアにアクセスする方法、アセンブラとCの接続、ライブラリが提供する関数のリストを含んでいます。
This document is a first try at documenting the Gameboy Developers Kit (GBDK) by Pascal Felber which consists of a C compiler, assembler, linker and libraries.Included are methods of writing efficent eight bit code in C, ways of accessing the GBs hardware, interfacing assembler and C and a list of the functions provided by the libraries.

目次
Table of Contents
序文
Preface
1. GBDKとmaccerの使用
1. Using GBDK and maccer
プログラムのコンパイル
Compiling programs
Makefilesの使用
Using Makefiles
2. ターゲットとしてのGameboy
2. The Gameboy as a Target
8ビット + 6つのレジスタ + C = 巧妙
8 bits + 6 registers + C = tricky
変数のサイズ
Size of variables
促進の回避
Avoiding Promotion
グローバル変数の使用
Using global variables
その他
Other
3. ハードウェアへのアクセス
3. Accessing hardware
メモリ
Memory
割り込み
Interrupts
複数バンク
Multiple banks
RAMの中の関数
Functions in RAM
4. アセンブリ言語
4. Assembly language
Cが十分に速くない場合
When C isn't fast enough
呼び出し協定
Calling convention
変数とレジスタ
Variables and registers
セグメント
Segments
5. ライブラリ
5. Libraries
テキスト入出力 - console.hとoutput.s
Text IO - console.h and output.s
浮動小数点サポート - fp_long.s
Floating point support - fp_long.s
数値形式
Number format

Notes
関数
Functions
フルスクリーングラフィックス - drawing.h
Full screen graphics - drawing.h
グラフィックス/タイル関数
Graphics/Tile functions
関数
Functions
Joypad-gb.h
Joypad - gb.h
関数
Functions
ハードウェアレジスタ - hardware.h
Hardware registers - hardware.h
型 - types.h
Types - types.h
malloc、freeと関連する関数 - stdlib.h
malloc, free and related functions - stdlib.h
関数
Functions
データ型
Data types
実装
Implementation
複数のフォントのサポート - font.h
Support for multiple fonts - font.h
関数
Functions
データ型
Data types


Next
序文
Preface
 1