mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-23 08:29:35 +00:00
23 lines
467 B
Markdown
23 lines
467 B
Markdown
[< back to index](../doc_index.md)
|
|
|
|
# Game Boy programming guide
|
|
|
|
**This guide is incomplete.
|
|
Support for Game Boy targets is experimental and all information in this document may become obsolete.**
|
|
|
|
## Program lifecycle
|
|
|
|
The default Game Boy vectors are defined as following:
|
|
|
|
The minimal Game Boy program thus looks like this:
|
|
|
|
void main() {
|
|
// initialize things
|
|
while(true) { }
|
|
}
|
|
|
|
void on_vblank() {
|
|
// do things
|
|
}
|
|
|