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

Prev

Next

2章 ターゲットとしてのGameboy
Chapter 2.The Gameboy as a Target

目次
Table of Contents
8ビット + 6つのレジスタ + C = 巧妙
8 bits + 6 registers + C = tricky
変数のサイズ
Size of variables
促進の回避
Avoiding Promotion
グローバル変数の使用
Using global variables
他のもの
Other

8ビット + 6つのレジスタ + C = 巧妙
8 bits + 6 registers + C = tricky

Gameboyは8ビットかや、小さなレジスタセット(哀れみ、ターゲットとして6502を持っている人々)、とインデックスが付けられたアドレシングモードとハードウェア増加がないがないを持っている組み合わせや区分によりCコードの理想的なターゲットではありません。 intが少なくとも16ビットであると最も現代のCが仮定するとともに、8ビットであるプロセッサは最も大きな制限です。以下を参照してください。
The Gameboy is not an ideal target for C code due to a combination of being eight bit, having a small register set (pity those who have the 6502 as a target...), no indexed addressing mode and no hardware multiplication or division.The processor being eight bit is the biggest limitation as most modern C assumes that an int is at least 16 bits - see later.

このセクションは、移動するかや8ビット以内にとどまる方法につまるところなるプロセッサの制限を回避するために使用される方法上にあります。
This section is on the methods used to get around or avoid the limitations of the processor which boils down to ways of staying within eight bits.



Prev
ホーム
Home

Next
Makefileの使用
Using Makefiles
変数のサイズ
Size of variables
1