REABOY ENGINEERING & SILICON ARCHITECTURE

Built from 256 bytes
of original 1989 silicon.

ReaBoy was engineered through byte-level reverse engineering starting at byte $0000 of the canonical 1989 Nintendo DMG-01 boot ROM. We disassembled and proved all 121 Sharp SM83 instructions across 38 basic blocks with zero byte mismatches, creating a cycle-accurate SM83 CPU, dot-accurate Pixel FIFO PPU, 4-channel APU, and full Game Boy Color dual-subsystem architecture.

2,561+ Verified Games
63 / 63 Hardware Suites Pass
0 Alloc Zero Heap per Frame
LIVE EMULATION TELEMETRY 60 FPS · PIXEL FIFO
Super Mario Land running in ReaBoy
DMG-01 (1989) Super Mario Land
The Legend of Zelda: Link's Awakening DX running in ReaBoy Color
CGB-001 (1998) Zelda DX
DirectSound / WinMM APU Sync 15-Bit RGB555 + 4-Shade Olive
PHASE 01 · STATIC REVERSE ENGINEERING

Byte-Identical Boot Reconstruction

A custom Sharp SM83 disassembler and control-flow graph builder accounted for every single byte of the 256-byte DMG-01 boot ROM — then reassembled it with RGBDS v1.0.4 and proved 0 byte mismatches. Bundled directly inside the ReaBoy package as open-source Bootix DMG v1.2.

256 / 256 bytes 121 SM83 opcodes 38 basic blocks 57 CFG edges 12 MMIO regs
PHASE 02 · DYNAMIC CPU VERIFICATION

Bit-Exact Handover at $0100

The C# Sharp SM83 core and memory bus execute the full boot sequence from $0000 to $FF50 unmapping — matching every single canonical DMG register and trapping corrupted logos/checksums in their hardware lockouts.

2,206,435 instr 23,454,204 T-cycles PC=$0100 F=$B0 (Z=1 H=1 C=1)
PHASE 03 · PPU, APU & WINDOWS HOST

Rock-Solid Desktop Architecture

Paired with a scanline-timed 160×144 PPU (including the v1.0.1 LCD-off STAT Mode 0 fix for Dr. Mario), a 4-channel APU with pinned WinMM audio buffers, and 59 automated Windows UI integration checks.

4-Ch APU STAT Mode 0 fix Pinned WinMM 59 UI Checks
PHASE 04 · GAME BOY COLOR ARCHITECTURE UPGRADE

Dual Pixel FIFO & Full CGB Subsystems

Direct in-place architectural evolution to Game Boy Color (CGB). Upgraded to machine-cycle bus interleaving, a dot-accurate dual Pixel FIFO PPU, 2× CPU double-speed, banked VRAM/WRAM, HDMA, and 63 passing hardware test ROMs.

Pixel FIFO PPU 2× Speed (8.388MHz) Acid2 0/23,040 Diff 63 Test ROMs MBC1–MBC7 & HuC

SYSTEM SPECIFICATIONS

Complete Game Boy & Color Hardware Architecture

Powered by machine-cycle SM83 CPU interleaving and a dot-accurate dual Pixel FIFO PPU, ReaBoy runs both original Game Boy (DMG) and Game Boy Color (CGB) titles with verified accuracy and zero heap allocations.

Hardware Capability Original Game Boy (DMG) Game Boy Color (CGB)
Hardware Model DMG-01 Monochrome (1989) CGB-001 · Dual-Mode & CGB-Only
CPU Frequency Sharp SM83 @ 4.194 MHz (1×) 8.388 MHz · 2× KEY1 Speed Switch
Video & Palettes 4-shade monochrome DMG palette 15-Bit RGB555 · 64 Custom Palettes
Pixel Pipeline Dot-accurate scanline PPU Pixel FIFO · Acid2 0/23,040 Diff
VRAM & WRAM Banking 8 KiB VRAM / 8 KiB WRAM 16 KiB VRAM · 32 KiB Banked WRAM
DMA Controllers 160-M-cycle OAM DMA HDMA / GDMA · H-Blank & General DMA
Commercial Game Library 1,592 Titles (100% Playable) Dual & CGB-Exclusive Library
Cartridge Mappers ROM-Only, MBC1, MBC2, MBC3 (+RTC) MBC1, MBC2, MBC3, MBC5, MBC7 (tilt), HuC1/3
Battery Save Persistence Standard .sav in %APPDATA% Atomic Saves · Automatic .sav.bak
Automated Hardware Tests Blargg & Mooneye-GB suites 63 / 63 Passing Test ROMs
INTERACTIVE HARDWARE TRACE

DMG-01 Boot Execution Pipeline ($0000 → $0100)

Sharp SM83 Register State

A$01
F (ZNHC)$B0
B$00
C$13
D$00
E$D8
H$01
L$4D
SP$FFFE
PC$0100
T-Cycles: 23,454,204 $FF50 UNMAPPED

Boot ROM writes $01 to $FF50, unmaps itself, and hands execution cleanly to cartridge entry point $0100.

FOUR-CHANNEL SYNTHESIS · LIVE OSCILLOSCOPE

Hear the Game Boy APU
in real time.

ReaBoy implements all four channels of the DMG-01 Audio Processing Unit (Channel1.cs–Channel4.cs) with pinned native WinMM audio buffers. Trigger each hardware channel below to see and hear how 1989 chiptune synthesis works.

REAL-TIME APU OSCILLOSCOPE · WEB AUDIO SYNTH
STANDBY

HARDWARE SPECIFICATIONS & MEMORY BUS

Dual Game Boy & Color Memory Map Architecture

Bit-exact memory map, banking controllers, and hardware register allocations implemented inside ReaBoy's MemoryBus.cs, CgbRegisters.cs, and Sm83Cpu.cs. Select between DMG-01 monochrome, CGB-001 dual-bank, and low-level color I/O registers.

Memory Range Size Bus Destination Hardware Role & Emulation Handling
$0000–$00FF 256 B Boot ROM / Cart ROM Overlayed during boot execution. Unmapped permanently when $01 is written to register $FF50.
$0000–$3FFF 16 KiB Cartridge ROM Bank 00 Fixed ROM bank from cartridge. Contains interrupt vectors ($0040–$0060) and game entry point ($0100).
$4000–$7FFF 16 KiB Switchable ROM Bank Bank-switched via cartridge mapper (MBC1, MBC2, MBC3). Controls up to 2 MiB of commercial Game Boy ROM data.
$8000–$9FFF 8 KiB Video RAM (VRAM) Single 8 KiB bank. Character tile patterns ($8000–$97FF) and Background Tile Maps ($9800–$9BFF and $9C00–$9FFF).
$A000–$BFFF 8 KiB External Cartridge RAM Battery-backed game save state and scratch RAM. Gated by RAM Enable register ($0A).
$C000–$DFFF 8 KiB Work RAM (WRAM) Internal 8 KiB static RAM for game variables, stack pointers, and dynamic buffers ($C000–$CFFF Bank 0, $D000–$DFFF Bank 1).
$E000–$FDFF 7.5 KiB Echo RAM Mirror of internal RAM $C000–$DDFF. Accesses in ReaBoy forward transparently to WRAM.
$FE00–$FE9F 160 B Sprite Attribute Table (OAM) 40 hardware sprite definitions (Y, X, Tile Index, Flags). Evaluated during PPU Mode 2 OAM search.
$FF00–$FF7F 128 B I/O Registers (MMIO) Hardware controls for Joypad ($FF00), Serial ($FF01–$02), Timers ($FF04–$07), 4-Channel APU ($FF10–$FF3F), and PPU LCDC/STAT ($FF40–$FF4B).
$FF80–$FFFE 127 B High RAM (HRAM) Zero-page ultra-fast internal CPU RAM used for OAM DMA transfer routines and high-frequency state.
$FFFF 1 B Interrupt Enable (IE) Bitmask enabling VBlank (bit 0), LCD STAT (bit 1), Timer (bit 2), Serial (bit 3), and Joypad (bit 4).

EMULATOR ARCHITECTURE & BENCHMARKS

Architectural Comparison: ReaBoy vs SameBoy & BGB

An objective, engineering-focused comparison of Game Boy (DMG-01) and Game Boy Color (CGB) emulation architectures, design trade-offs, and verification methodology.

Feature / Capability ReaBoy (Game Boy & Color) SameBoy v0.16.x BGB v1.6.0
Primary Focus DMG & CGB Dual Architecture
M-cycle execution, Pixel FIFO PPU, zero-install portable Windows
Reference Accuracy & Debugging
DMG & CGB reference emulation, macOS Cocoa & SDL
Hardware Research & Debugging
Exhaustive debugger for ROM developers
Windows Packaging PORTABLE ZIP
Native Windows x64, zero admin, no external runtime required
CROSS-PLATFORM
Windows, macOS, libretro, WebAssembly
WIN32 NATIVE
Standalone 32-bit Windows binary (Wine compatible)
Boot Firmware Bundled Bootix DMG & CGB
Clean CC0 open-source boot ROM preinstalled. Zero BIOS errors.
Bundled Open-Source Boot ROM
Custom open-source boot ROM or optional user BIOS
Internal HLE Boot Bypass
Simulated register state or optional user DMG ROM
Supported Mappers MBC1, MBC2, MBC3, MBC5, MBC7, HuC1, HuC3
Full RTC timekeeping, 93LC56 EEPROM, accelerometer tilt, rumble
Comprehensive Library
MBC1, MBC2, MBC3 (RTC), MBC5, HuC1, MBC7, MMM01
Comprehensive Library
Full commercial & flash cart mapper support
Pixel Rendering Pipeline Dot-Accurate Dual Pixel FIFO
Zero-heap BgFifo & ObjFifo, Acid2 0/23,040 diff, 1,020–1,354 FPS
Dot-Accurate Pixel FIFO
Cycle-accurate LCD controller emulation
Cycle-Accurate Scanline Renderer
Highly refined timing validation
Audio Engine WinMM Pinned Buffers
4-channel APU with DIV-driven frame sequencer & 60 FPS sync
SDL2 Audio Subsystem
High-precision audio resampler with fractional rates
DirectSound & WaveOut
Cycle-exact APU synthesis with pitch bending
Battery Save Storage Atomic SaveGameManager
Safe .sav.bak backups in %APPDATA%\BJStudios\ReaBoy\saves
Standard .sav
Stored alongside ROM or in app directory
Standard .sav
Stored alongside ROM
Hardware Test Verification 63 / 63 Hardware Test ROMs
184 automated tests (Blargg, Mooneye, Acid2 DMG+CGB, Magen)
Mooneye GB & Blargg Suites
Extensive test runner against accuracy benchmarks
Decades of Hardware Validation
Extensive test ROM suite passes
License & Source MIT License (C#)
Clean, modern object-oriented .NET 8 codebase
Expat / MIT License (C)
Open-source GitHub repository
Freeware (Closed Source)
Proprietary Pascal/Delphi codebase

Why Choose ReaBoy?

  • Zero Setup Overhead: Download the ZIP, extract anywhere, and drag-and-drop your ROM. No installation wizards, no administrator privileges required.
  • No BIOS Search: Bundled with CC0-licensed Bootix DMG v1.2 firmware out of the box.
  • Pure 1989 Hardware Purism: Focused purely on authentic original DMG-01 monochrome gameplay without convoluted multi-system menus.
  • Clean Educational C# Architecture: Engineered with modern C# and published transparently for researchers and emulation enthusiasts.

When to Use SameBoy

  • macOS Native Experience: First-class native Cocoa frontend with Metal acceleration on macOS.
  • Instruction Breakpoint Debugging: Powerful integrated assembly debugger, memory inspector, and VRAM viewer for reverse engineers.
  • Extensive Peripheral Emulation: Excellent Game Boy Camera, Barcode Boy, and WorkBoy support.
  • Official Site: sameboy.github.io ↗

When to Use BGB

  • Homebrew Production: BGB is universally revered as the benchmark tool for developing new Game Boy software.
  • Exhaustive Hardware Profiler: Trace execution cycles, inspect register state, and benchmark instruction timings.
  • Link Cable Emulation: Excellent TCP/IP and local link cable multiplayer emulation support.
  • Official Site: bgb.bircd.org ↗

Verification Methodology & Transparency

ReaBoy v2.0 is validated through an extensive automated testing harness with 184 unit tests and 63 hardware acceptance suites:

1. 63 / 63 Passing Hardware Test ROMs

Every release passes 16 Blargg CPU/timing/halt_bug suites, 37 Mooneye-GB acceptance & MBC2 tests, 2 Matt Currie Acid2 tests (dmg-acid2 and cgb-acid2 with 0/23,040 pixel diff), and 8 MagenTests CGB suites.

2. 1,592 Headless ROM Regression Runs

Automated 240-frame headless execution across the entire 1,592 commercial Original Game Boy library, verifying memory bus reads, opcode traps, timer ticks, and boot stability.

3. Controlled Commercial Cartridge Matrix

600–900 frame telemetry verification across 19 commercial cartridges spanning Category A (DMG), Category B (Dual $80), and Category C (CGB $C0), running at 1,020–1,354 FPS with zero heap allocations per frame.

LOW-LEVEL CYCLE BENCHMARKS

Demoscene Stress Tests & Hardware Test Suites.
788 Low-Level Demoscene Benchmarks Isolated for R&D.

To keep our public Compatibility Lab dedicated purely to pristine commercial retail releases (969 CGB + 1,592 DMG titles, 2,561 total), all 788 Public Domain (PD) demoscene benchmarks, raster-timing stress tests, 3D wireframe renderers, and micro-timing suites are documented here for low-level architecture verification.

DEMOSCENE STRESS SUITES 788 Public Domain (PD) Test ROMs
OFFICIAL HARDWARE SUITES 63 / 63 Blargg, Mooneye, Acid2 & MagenTests
COLOR PALETTE STRESS 2,560 Colors Mid-Scanline Palette Switching PASS
SPRITE MULTIPLEXING 175 Sprites Parallax Starfield Timing PASS
Benchmark / Test Suite Category & Mapper Hardware Stress Vector Status Timing Telemetry
Matt Currie Acid2 (DMG & CGB) Acid2 Acceptance Pixel FIFO dot timing, sprite priority, LCDSTAT interrupt edge behavior 0 / 23,040 DIFF Bit-Exact Match
2560 Colors Demo CGB PD (MBC5) Palette RAM (BCPD/OCPD) rapid mid-scanline switching stress test VERIFIED PASS 524 FPS · Stable
175 Sprite Parallax Starfield CGB PD (ROM Only) OAM DMA dynamic sprite multiplexing & 10-sprite scanline limit VERIFIED PASS 340 FPS · Stable
DarkFader 3D Red Rotating Cube CGB PD (ROM Only) 8.388 MHz double-speed software matrix 3D projection & double-buffering VERIFIED PASS 510 FPS · Stable
40x18 / 40x24 High-Density Text CGB PD (ROM Only) Tile VRAM banking ($VBK=0/1) high-frequency mid-frame switching VERIFIED PASS 456 FPS · Stable
Blargg SM83 Instruction & Timing 16 Hardware Suites Full instruction set, halt bug, instruction timing, and memory access timings 16 / 16 PASSED All M-Cycles Exact
Mooneye-GB Acceptance & MBC2/3 37 Hardware Suites PPU timing, timer frequencies, interrupt latency, and MBC bank switching 37 / 37 PASSED Zero Discrepancies

2,561 Game Boy & Color Games Tested.
Explore the Unified Database.

Every commercial original Game Boy and Game Boy Color release dynamically executed and verified in ReaBoy's bit-exact CPU and dot-accurate Pixel FIFO PPU core. Search 2,561+ titles, filter by platform and cartridge mapper, and inspect runtime cycle telemetry.