millfork

Millfork: a middle-level programming language targeting 6502- and Z80-based microcomputers and home consoles

This project is maintained by KarolS

< back to index

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
}