An updated version of GBDK, C compiler, assembler, linker and set of libraries for the Nintendo Gameboy, Nintendo Entertainment System, Sega Master System, Sega Game Gear.
GBDK is a cross-platform development kit for sm83, z80 and 6502 based gaming consoles. It includes libraries, toolchain utilities and the SDCC C compiler suite.
Supported Consoles: (see docs)
Experimental consoles (not yet fully functional)
Upgrading to a new version? Check the Migration notes. You can find older versions here.
For a full list of changes see the ChangeLog file or online Docs.
See our gallery showcasing Games and Programs made with GBDK
GBDK includes extensive documentation. A good place to begin is the Getting Started Section.
Check the Links and Third-Party Tools Section for a list of recommended emulators, graphics tools, music drivers and more.
For SDCC you can check its website and the manual
Most users will only need to download and unzip the latest release
Then go to the examples folder and build them (with compile.bat
on Windows or running make
). They are a good starting point.
The sources in this repo are only needed if you want to re-compile GBDK-2020 yourself instead of using the release binaries linked above.
gbdk/zgb Discord - For help with using GBDK (and ZGB), discussion and development of gbdk-2020
SDCC 4.2
. This is supported starting with GBDK-2020 4.1.0
. Older versions of GBDK should use SDCC builds #12539 or older (see per-version GBDK notes).Over the years people have been complaining about all the GBDK issues caused by a very old version of SDCC (the compiler). This is a proper attempt of updating it while also keeping all the old functionality working, like support for banked code and data and so on.
The last version in the OLD repo is 2.96 although releases are available until 2.95-3. Version 2.96 is the starting point of this repo.
Unless you are interested on recompiling the sources for some reason (like fixing some bugs) you don’t need to build GBDK