Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Game Boy/behavior/Banked address to ROM file offset

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"behavior"
subject"Platform:Game Boy"
claim"For a ROM address bank:addr with addr in 0x4000-0x7FFF, the offset in the ROM image is bank * 0x4000 + (addr - 0x4000); for addr in 0x0000-0x3FFF (bank 0) the offset equals addr."
scope
level"platform"
applies_to"Platform:Game Boy"
observed_in
Empty array
data
effect"converts debugger/RGBDS bank:address notation to a file offset in a .gb/.gbc image"
condition"standard MBC1 (non-multicart), MBC2, MBC3, MBC5 wiring; MBC1M and MMM01 multi-carts differ"
evidence
type"documentation"
detail"Pan Docs Memory Map (16 KiB banks at 0x4000-0x7FFF) and MBC pages (bank n = ROM bytes n*0x4000 .. n*0x4000+0x3FFF)"
confidence"high"
related
Empty array
key"Banked address to ROM file offset"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T03:24:15.888Z"
verifications
Empty array