Repository navigation
Game Boy
- Home
- Barcode Battler II
- Barcode Boy
- Barcode Taisen Bardigun
- GB Mobile Adapter
- GB TV Remote
- Game Boy (You are here)
- Game Boy Color
- Nintendo Super System
- Real Time Clock
- SNES
- Sunsoft Pachinko
- Super Famicom Box
- Nintendo SuperDisc
- Tests
- XBand
The Game Boy (DMG-01, 1989) is Nintendo's first handheld: a four-shade greenish screen, a cartridge slot, a link port and four sound channels, sold for more than a decade. Its cartridges (grey, and the black "dual" ones that add colour on a Game Boy Color) also run on the Game Boy Pocket, the Game Boy Light, the Game Boy Color and, through the Super Game Boy, on a SNES.
SuperSnes9x has its own Game Boy, Game Boy Color and Super Game Boy core built in, next to the SNES. Load a Game Boy game and it runs on that core in the same window, with the same save states, rewind, fast-forward and scripting as a SNES game. The core is timed down to the single clock cycle and passes the Game Boy test suites in full: see Tests.
-
The games:
.gbfiles, or the same inside a.zip,.gzor.jma. Not supplied. -
The boot ROM (optional): the short program a real Game Boy runs before the cartridge, which scrolls the Nintendo logo down and plays the "ding". File → BIOS Manager, group Handheld Systems, row Game Boy:
dmg_boot.bin(256 bytes).
Without a boot ROM the game starts straight away, without the logo, in exactly the state the boot ROM would have left it in.
File → Load Game and pick the game.
The Game Boy's buttons sit on your SNES pad (Input → Input Configuration):
| SNES pad | Game Boy |
|---|---|
| D-pad | D-pad |
| A | A |
| B, Y | B |
| Start | Start |
| Select | Select |
X, L and R aren't used.
Emulation → Game Boy Model picks the console Game Boy games run on, and a Game Boy game can run on any of them:
| Entry | What a Game Boy game looks like |
|---|---|
| Game Boy | The original: four shades (the palette is yours to pick, below) |
| Game Boy Color | In colour: the Game Boy Color gives older games a palette of its own, picked by the game's title, as the real console does |
| Super Game Boy, Super Game Boy 2 | On the SNES adapter: a border around the screen, and the colours a Super Game Boy game sets up for itself. Needs the Super Game Boy BIOS in the BIOS Manager |
| Automatic (default) | A Super Game Boy game on the Super Game Boy when its BIOS is in the BIOS Manager; a game that supports colour on the Game Boy Color; everything else on the Game Boy |
The choice is saved, and picking another one reloads the game on it. Each model also has a hotkey: Input → Customize Hotkeys, tab Game Boy. The Game Boy Color page has the full menu.
A Game Boy screen has four shades. SuperSnes9x lets you pick what they look like: Video → Color Correction..., group Game Boy (DMG) Palette (shown while a Game Boy game runs on the Game Boy model).
- Three rows, Background, Sprites #1 and Sprites #2: the Game Boy keeps one palette for the background and two for sprites, so each can have its own four shades. Click a shade to change it.
- Select Preset... has Grayscale, Grayscale (high contrast), Green (the original screen's tint) and Brown.
More display options, in the same places as for Game Boy Color games:
| Option | Where | What it does |
|---|---|---|
| Frame blending | Video → Display Configuration..., Game Boy Image | Blends each frame with the last one: Simple Blend (50/50) or LCD Blend (slow fade like the real LCD). Many Game Boy games flicker sprites on and off every other frame to show more of them, counting on the slow LCD to blur them into steady half-transparent sprites; blending shows them that way. Auto Layer Transparency turns it on, for the right layer, for games known to do it |
| No sprite limit | Emulation → Hacks..., No Sprite Limit (GameBoy) | Draws every sprite on a line instead of the hardware's 10, so crowded scenes don't flicker. Not accurate: some games hide sprites on purpose |
| Layer viewers | Emulation → GB-PPU | Tile, tile map and sprite viewers, and switches to hide the background, window or sprites |
The Game Boy's CPU chip and board went through several revisions too: the earliest units carry the CPU under a black blob of resin ("glob top"), later boards such as DMG-CPU-08 a packaged chip. Games play the same on all of them, but a few details differ, and test suites record one particular unit. Emulation → Game Boy Model → Chip Revision picks:
| Choice | Behaves like |
|---|---|
| Game Boy: Automatic (default) | An early Game Boy, the unit most test suites' references come from |
| Game Boy: DMG-CPU-08 | A DMG-CPU-08 board, the one Gambatte's hardware tests were recorded on: all 1,873 of its Game Boy tests pass on it |
What changes with DMG-CPU-08:
- Palette changes mid-line. On the early units, a game that changes a palette while the line is being drawn shows one in-between pixel, a mix of the old and new palette. On DMG-CPU-08 the switch is clean.
-
Work RAM at power-on. A real Game Boy's work RAM doesn't start empty: it holds a pattern that depends on the unit. DMG-CPU-08 powers up with alternating 256-byte stripes of
00andFF. A correctly written game clears it first and never notices. - The window coming back on. A game that switches the window off and on again in the middle of a line, right where the window would have started, gets it back a pixel or two differently.
The revision takes hold when the console powers on, so changing it reloads the game. Leave the default unless you want to match a DMG-CPU-08 unit you own. The Game Boy Color has a revision choice of its own: see Game Boy Color.
| Part | Game Boy | In SuperSnes9x |
|---|---|---|
| CPU | Sharp SM83 at 4.19 MHz, a cousin of the Z80 and the 8080 | Instruction by instruction, with every memory access on its exact clock cycle, including the HALT bug and the timer's quirks |
| Screen | 160×144, four shades, drawn one dot at a time; a background, a window over it, 40 sprites with 10 per line | Drawn dot by dot, so changes a game makes in the middle of a line (scrolling, palettes, the window) land on the right pixel |
| Memory | 8 KB work RAM, 8 KB video RAM, 127 bytes of fast RAM | As on hardware, including what reading video RAM or sprite RAM returns while the screen uses them, and the sprite-RAM corruption bug |
| DMA | Sprite-RAM DMA | Cycle-timed, including what the CPU can and can't read while it runs |
| Sound | Four channels: two squares, a wave, noise | Sample-exact, including the "zombie" volume glitch (Sound → Settings..., Suppress NRx Glitches hides its click) |
The timing comes from hardware test ROMs: the core passes all 165 acid tests on Game Boy, among them dmg-acid2, the mooneye and blargg suites and mealybug's mid-line tests, and all 1,873 Game Boy Gambatte tests.
Everything else works as for Game Boy Color games:
-
Battery saves (
<game>.savin the Saves folder), save states, rewind, run-ahead and the Game Boy fast-forward speed: see Game Boy Color. - Cartridge chips (MBC1 to MBC5, the Game Boy Camera, Tamagotchi, multicarts, unlicensed boards): see Game Boy Color.
- The cartridge clock: see Real Time Clock.