Gambatte
Gambatte emulates Nintendo Game Boy and Nintendo Game Boy Color. It reads 3 files, none of them required: it starts games without them.
About this profile
Install this emulator's files
The installer finds your setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.
Open the Start menu. Type PowerShell and open it. Paste the line. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator gambatteOpen Terminal, in Applications, then Utilities. Paste the line. Press Return.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator gambatteOpen a terminal. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator gambatteSwitch to Desktop Mode. Open Konsole. Paste with Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator gambatteInstall Termux, a terminal app. Run pkg install python and termux-setup-storage once. Then paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator gambatteOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator gambatteTechnical notes
Accuracy-focused GB/GBC emulator. No BIOS required for normal operation: the built-in HLE boot sequence skips the Nintendo logo animation.
Core option gambatte_gb_bootloader (default: enabled) enables loading official boot ROMs from the system directory for the real startup animation. If missing, emulation works without them.
Boot ROM selection by hardware mode:
- DMG: gb_bios.bin (256 bytes)
- CGB or GBA: gbc_bios.bin (2304 bytes)
In GBA mode the core patches the CGB boot ROM at 0xF2 to fake GBA detection (ld b,0x01), enabling GBA-enhanced features in compatible GBC games.
The upstream standalone supports SGB boot ROM loading, but the libretro port does not implement this.
With GB Colorization set to "custom", a DMG game reads the first of
palettes/<rom name>.pal, palettes/<header title>.pal and
palettes/default.pal under the system directory. Each line sets one of
the twelve background and sprite colours as Background0= to Sprite%2023=
with a 24-bit RGB value. Colours the file leaves out keep their previous
value (libgambatte/,
libgambatte/,
libgambatte/).
3 files: 0 required, 3 optional. 2 have an HLE fallback.
In this collection: 2 in repo, 0 missing and 1 unsourceable.
Optional
Section titled “Optional”gb_bios.bin optional in repo HLE fallback
Original Game Boy (DMG-01) boot ROM
- System: Nintendo Game Boy
- Mapped at 0x0000-0x00FF, swapped out when register 0xFF50 is written.
- Size: min 256 B
- Collection copy:
bios/Nintendo/ Game Boy/ GB_dmg.bin - Platforms:
gb_bios.bin: Batocera, KNULLI, RetroBat, ROCKNIX.bios/gb_bios.bin: AmberELEC, EmuELEC, RetroDECK.dmg_boot.binanddmg_rom.binandgb_bios.bin: Lakka, RetroArch, RetroPie.GB_dmg.bin: BizHawk.gb/dmg_boot.binandgb/gb_bios.bin: RomM.gb/gb_bios.bin: Recalbox
Validation and source
- Validation: size
- Asked for by: libretro glue and emulator code, libretro port
- Source:
libgambatte/(libretro glue),libretro/ libretro.cpp:1426-1486 libgambatte/(libretro glue),libretro/ libretro.cpp:1734-1742 libgambatte/(emulator code, libretro port)src/ bootloader.cpp:30-65
gbc_bios.bin optional in repo HLE fallback
Game Boy Color (CGB-001) boot ROM
- System: Nintendo Game Boy Color
- Mapped at 0x0000-0x08FF with cartridge data preserved at 0x0100-0x01FF. Also used for GBA mode with a patch at 0xF2. Presence required for FORCE_CGB flag when hw mode is GBC or GBA.
- Size: min 2.2 KB
- Collection copy:
bios/Nintendo/ Game Boy Color/ GBC_cgb.bin - Platforms:
gbc_bios.bin: Batocera, KNULLI, RetroBat, ROCKNIX.bios/gbc_bios.bin: AmberELEC, EmuELEC, RetroDECK.cgb_bios.binandcgb_boot.binandgbc_bios.bin: Lakka, RetroArch, RetroPie.GAMEBOY/boot1.rom: MiSTer FPGA.GBC_cgb.bin: BizHawk.gbc/cgb_boot.binandgbc/gbc_bios.bin: RomM.gbc/gbc_bios.bin: Recalbox
Validation and source
- Validation: size
- Asked for by: libretro glue and emulator code, libretro port
- Source:
libgambatte/(libretro glue),libretro/ libretro.cpp:1426-1486 libgambatte/(libretro glue),libretro/ libretro.cpp:1734-1742 libgambatte/(emulator code, libretro port)src/ bootloader.cpp:30-65
default.pal optional unsourceable
Custom DMG colour palette
- Path:
palettes/default.pal - System: Nintendo Game Boy
- Read only when GB Colorization is custom and no palette named after the ROM file or the header title exists.
- Not collectable: user-created palette, the core and its repository distribute none (acknowledged gaps)
Source
- Asked for by: libretro glue
- Source:
libgambatte/(libretro glue),libretro/ libretro.cpp:2012-2091 libgambatte/(libretro glue),libretro/ libretro.cpp:2521-2522 libgambatte/(libretro glue)libretro/ libretro.cpp:2582-2583
Next steps
Section titled “Next steps”- Get your files, for the setup you play on
- Every system, and the files each one needs
- When a game does not start