Introduction
A .gb file is a copy of the ROM in a cartridge for Nintendo’s Game Boy,
for playing in an emulator or writing to a flash cartridge. Games made for the Game Boy
Color are usually named .gbc. Unlike most ROM image formats, there is no
header added by the dumping tool: the file is the ROM exactly, and the information an
emulator needs is in the cartridge header that every game already contains.
Structure
The first 256 bytes hold the restart and interrupt vectors of the console’s processor,
and any code the game puts in the space after them.
The cartridge header follows at 0x100. It starts with the entry point,
usually a jump past the header, and the Nintendo logo, which the console’s boot ROM
checks before it runs the game. Then come the title, a flag for Game Boy Color
support (0x80 for games that also run on the original, 0xC0
for Color-only games), a flag for Super Game Boy features, the cartridge type, which
names the memory bank controller and any battery or real-time clock, and the ROM and RAM
sizes. The header checksum at 0x14D covers bytes 0x134 to
0x14C, and the boot ROM refuses to start a game whose checksum is wrong. Every
field, the logo bytes and both checksums are on the
cartridge header page, and every cartridge type,
size code and licensee code on header codes.
0x000restart and interrupt vectors256 bytes0x100entry point4 bytes0x104Nintendo logo bitmap48 bytes0x134title, ending in the manufacturer code and Color flag on later games16 bytes0x144new licensee code, Super Game Boy flag3 bytes0x147cartridge type, ROM size, RAM size3 bytes0x14Adestination, old licensee code, version3 bytes0x14Dheader checksum, then global checksum3 bytes0x150the game’s code and data, in 16 KB banksvaries
Not described
The header, its codes, the memory map, the register bit layouts, the video, sound and I/O summary and the bank controllers are written. What remains:
Known, not yet covered
- Reference and viewer: the fix11 round (progress-gb-fix11, 2026-11-25 and 26) closed the five points of the G-C retest above: the wiki quotes, SameBoy’s speed-switch countdown (T-cycles: 0x20008 is 32,770 M-cycles, which agrees with the Pan Docs chart and not with the 2050 of its register text), the halt wake-up step, the wording that the pages were not run, and the wiki special-modes article (clock warm-up, test register $FF60). It also re-read the transfers, palettes, Super Game Boy and printer pages against the raw files and wrote what they lacked: Mooneye and SameBoy results for OAM DMA, VRAM DMA and the serial clock; the colour correction of SameBoy and mGBA; the TCRF tables of the real Color boot ROM (12 manual and 45 assigned palette configurations, compared with SameBoy: two groups differ); the boot ROM’s header packets and SameBoy’s command decoding for the SGB; furrtek’s printer notes. The viewer’s header rows were tested on all 115 Mooneye ROMs of mts.zip and its code tables against Pan Docs. A second pass read Gambatte, Mesen 2, mGBA and Gekkio’s “Game Boy: Complete Technical Reference” (raw files in samples/gb/sources) for the PPU, APU, palette and mapper Unknowns and recorded what each codes or says without settling any of them; it found one disagreement with Pan Docs (the MBC5 RAM gate accepts only
$0Ain four other sources) and added the Bung search record. A third pass (fix12) added results measured on real consoles from Gambatte’s hardware tests: an object at X = 1, 7 or 9 with SCX 0 or 4 follows Pan Docs’ penalty algorithm and not a flat sum, the window at WX = 0 ends mode 3 with the same M-cycle as WX = 3 and 7 at SCX = 0, the sound read-back masks equal the dumps of a monochrome and a Color unit, and the monochrome wave RAM read after a trigger returns$FFat some delays where the Color unit returns the current byte. Still partial: every other item under “Unknown” on the pages above remains, and Bung has no description in any source found. - Reference: the items of the second audit (Wisdom Tree, EMS, MBC30, MBC1/MBC1M, MBC2, MBC3, MBC5, MBC7, MMM01, the Game Boy Camera text, the memory map) were re-checked line by line against the raw Pan Docs files on 2026-11-19 (recheck3-gb-2026-11-19) and agree. They rest on Pan Docs alone (and mGBA’s source for the TAMA5).
- Reference: the fourth independent re-check (2026-11-19, recheck4-gb-2026-11-19; fixes in progress-fixes-gb4) closed the third audit’s items R1 to R5 against the raw files: the Game Boy Camera part table, linear gains, M64283FP/M64285FP remark and CAM_CLOCKS_LEFT formula; the HuC3 and HuC1 bank ranges, succession and “differs significantly from MBC1”; the publisher footnotes, the E2 remark and the logo pixel order on codes and header; the memory map’s Hardware Registers list, STAT text and CPU-register tables; and the TAMA5 mask table, ignored writes, start values and save layout from mGBA. Everything rests on one source each (Pan Docs; mGBA for the TAMA5).
- Reference: the fifth round (progress-fixes-gb5) answered the items the fourth re-check left open, from the raw Pan Docs files: the Power-Up chapter’s per-model hardware register table with its footnotes, the Stadium 2 boot ROM, the CGB0 extra WRAM writes, the scrapped palette switching menu, PGB mode, the SRAM known-sequence advice and the logo check legal and bypass sections are on the memory map; the four TAMA5 gaps (reads of other registers return
$F1, page reads with register 7 even give nybble 0, the forward year loop testsyear % 4, classes 3, 5, 6 and 7 are unknown) are on the bank controllers page; the bit layouts of every register are on register bit layouts; and the PPU, sound, timer, joypad, serial and interrupt chapters are summarised on video, sound and I/O. The whole Specifications table is on the memory map. A fifth independent re-check has not yet looked at any of it. - Reference: the sixth round (progress-fixes-gb6) re-checked the power-on tables cell by cell against the Mooneye
boot_hwio-dmg0,-dmgABCmgb,-Sand-Csources and the CPU register tables againstboot_regs-dmg0,-dmgABC,-mgb,-sgb,-sgb2,-cgband-A(raw files kept in samples/gb/sources/mooneye), and rewrote footnote 5 of the power-on register table to say what each source says per register: the CPU registers agree everywhere Mooneye checks; the hardware registers differ at P1 (SGB and Color), SC, KEY1, RP and SVBK on the Color, and in DIV, STAT and LY by timing, and Mooneye never checks DMA, OBP0 or OBP1 (its$00there is a table entry its mask skips). What remains open is which Color-mode values Pan Docs’ column describes, since the Mooneye Color test reads$FFwhere Pan Docs gives$7E,$3Eand$F8: both readings are on the page and not reconciled, and no hardware was available to decide. - Viewer: the viewer was checked in a browser by the independent re-check of 2026-11-19 (recheck5-gb-2026-11-19, in the site’s audit notes): a header-only ROM built in the page showed the tabs, header fields, checksums and register tables, and damaged variants gave problems without exceptions. The sixth round’s changes (the bank models and the RAM report below) were then opened in a browser by recheck6-gb-2026-11-19 (MBC1M, 2 MiB MBC1 and MBC30 headers built in the page): the Bank mapping and Real-time clock tables, the bank placement at
$0000and the Controller row render and agree with Pan Docs. - Viewer: Found by recheck6 and fixed in round 7: the explanatory
noteof a table section (the MBC1M text about Pan Docs’ prose and diagram disagreeing, the clock latch and 4 µs delay text, the MBC30 “our inference” remark, the Wisdom Tree detection proposal remark) was not drawn by the explorer window, so a user did not see it. Fixed in the explorer by the session that owns it (viewer/sections.jsnow draws a section’snoteunder its heading for every kind of section); the viewer’s tests check that each caveat is in the section note of the model, and the independent re-check of round 7 opened header-only test files in a browser after a hard reload and saw each caveat drawn as a paragraph under the section heading (MBC1M, MBC3 with clock, MBC30, Wisdom Tree shaped file, Hardware registers). The note of a selected tree node (every header field carries one) is drawn in the strip under the panel; anoteon a single row of a fields or table section is not drawn, which the gb viewer does not use (the Format section has its own “RAM note” row). - Viewer: Found by recheck6 and fixed in round 7: a bank that can be reached both at
$0000(mode 1) and at$4000(for example bank$10of an MBC1M, register$10with secondary register 1) was placed at$0000only. Fixed: the ROM banks list names it once as “at $0000 and $4000”, and the disassembly shows the bank twice, once in each window, each labelled. Checked in a browser by the round 7 re-check on a built 1 MiB MBC1M header (banks 16, 32 and 48 show two labelled regions; a 2 MiB plain MBC1 bank 32 stays at $0000 only). - Reference: the hardware round (progress-gb-hardware, 2026-11-19; the owner’s ruling is that the Game Boy reference is full only when the console hardware chapters are written) wrote seven new pages from the raw Pan Docs files, each section naming its file: picture unit in depth (PPU modes and timing, mode 3 penalties, the OAM scan, VRAM and OAM access, the pixel FIFO and fetcher, the OAM corruption bug, STAT, LY, LYC and the STAT line), sound in depth (channels, frame sequencer, length, envelope, sweep, DACs, wave RAM, PCM12/PCM34, Advance audio, obscure behaviour), timer, HALT and power (timer obscure behaviour, the halt bug, interrupt dispatch, STOP, power saving), DMA, joypad and serial (OAM DMA, HDMA and general-purpose DMA, joypad, serial, infrared, the 4-player adapter, connectors), palettes and colourisation (the Color boot ROM’s palette choice with the tables from the SameBoy source), Super Game Boy (every command and its bytes) and Game Boy Printer. What was still open after that round was closed by the leftovers round (progress-gb-leftovers, 2026-11-19): the Game Boy Printer’s compression format (found in two sources, written on the printer page), the Game Genie, GameShark and GBC approval chapters (on the video, sound and I/O page), the STOP flow chart and the timer drawings (as text on the timer page), the Camera and rumble drawings (as text and numbers on the bank controllers page). What is still not covered: the points Pan Docs itself marks unverified or “???”, which each page lists under Unknown. The compatibility-palette tables come from the SameBoy reimplementation of the boot ROM, not from Nintendo’s boot ROM, so they rest on one source that was not compared with a real boot ROM; Pan Docs’ “$43 or $58” logo-tile-map rule and SameBoy’s single flag are not reconciled. Nothing in these chapters was checked on hardware, and they have not yet been independently re-checked.
- Viewer: the hardware round also changed the viewer: the SGB flag and Super Game Boy rows now say why Super Game Boy functions are or are not unlocked (flag
$03and old licensee code$33) and point at the Super Game Boy page; the CGB flag note says what the Color boot ROM does with the byte; a new “Colour on a Game Boy Color” row gives the compatibility palette the boot ROM would pick for a monochrome game (Pan Docs’ algorithm over the SameBoy tables, tested against the SameBoy source); and a new “Register bits” table names the bits of the registers that have named bits (tested against Pan Docs’ bit diagrams). These changes have been tested in node on built headers but not yet opened in a browser, and they have not yet been independently re-checked. - Reference: what Pan Docs itself does not give, found by the leftovers round (progress-gb-leftovers) in raw emulator sources (mGBA, SameBoy, Gambatte, MAME, Gearboy), the EMS FAQ and a printer protocol text, each stated with what the source is: the MBC30 bank register widths (three emulators agree: 8-bit ROM, 3-bit RAM), the CGB revision-specific masks of
$FEA0–$FEFF(SameBoy), the Game Boy Camera edge-processing figures and the MBC5 rumble waveforms (as text and numbers), the MBC7 bank 0 and$B000behaviour (two emulators), the MMM01 header location and the three emulators’ unmapped-mode readings, the M161 (a Pan Docs chapter that earlier rounds had missed), the EMS mapper (EMS FAQ and Gearboy beside Pan Docs), the HuC1 and HuC3 details in three emulators, the TAMA5 (MAME as a second source for the ports and RAM commands), and the MBC6 flash. What is still not found anywhere: a description of the Bung mapper (Gearboy treats it as the EMS mapper; no document does), and checks on real hardware for all of these. The TAMA5 clock model still rests on mGBA alone (MAME has no clock); some of its clock-advance code looks inconsistent and is reported as coded. - Reference: the picture unit page (PPU in depth) now also rests on the Mooneye test sources and SameBoy’s source. The re-check of 2026-11-19 (part 8a, recheck8a-gb-2026-11-19) found the seven points below that were missing; the fix8 round (progress-gb-fix8) wrote all seven on that page (measured-behaviour, OAM bug models and window sections) and redrew its figures. What stays unknown is listed in the page’s own Not described section: the SCX-and-object order, the WX = 0 sign, the OAM bug formulas of rows mod 4 = 0. The seven points: (1) with the STAT mode 2 source enabled, the Mooneye test
vblank_stat_intr-GSexpects a STAT interrupt at line 144 at the same time as the VBlank interrupt, passing on the DMG, MGB and SGB models and failing on the Color and Advance; (2)stat_lyc_onoffexpects the LYC = LY flag to be kept while the LCD is off (LYC changes do not touch it) and to be recompared when the LCD is switched on; (3)lcdon_timing-GSandlcdon_write_timing-GSdescribe the first line after the LCD is switched on (line 0 starts in mode 0, goes straight to mode 3 and is 2 T-cycles late, with their own VRAM and OAM access pattern); the Color fails both tests; (4)stat_irq_blockingfails on the early DMG 0 revision, so STAT blocking is not the same on every model; (5)hblank_ly_scx_timing-GS: LY increments 51, 50 or 49 M-cycles after the mode 0 interrupt when SCX mod 8 is 0, 1 to 4 or 5 to 7 (DMG, MGB and SGB only); (6) SameBoy’s source gives the read-during-increase OAM corruption different patterns by row (row number mod 4) and by model, some non-deterministic, where Pan Docs gives one pattern; (7) for WX = 0 with SCX mod 8 above 0 on the DMG, SameBoy adds one dot to mode 3 where Pan Docs says mode 3 is 1 dot shorter. Not run on hardware or in an emulator. - Reference: the sound page (sound in depth) now also rests on the gbdev wiki page “Gameboy sound hardware”, blargg’s
dmg_soundtest source01-registers.sand SameBoy’sCore/apu.c. The re-check of 2026-11-19 (part 8b, recheck8b-gb-2026-11-19) found the ten points below that were missing; the fix8 round (progress-gb-fix8) wrote all ten on that page (duty patterns, read-back masks, frame sequencer steps, power section, VIN levels, models, wave rates, wiki open points, charge factor) and drew the figures. What stays unknown is in the page’s own Not described section: the wiki’s six open points, DMG zombie-mode results beyond what two sources say, the real DAC fade, the right MGB and Color charge factor. The ten points: (1) the four duty waveforms as step patterns (00000001,10000001,10000111,01111110for 12.5, 25, 50 and 75 %; Pan Docs only shows pictures, the site only the percentages); (2) the read-back masks: a sound register reads its last written value ORed with$80 $3F $00 $FF $BF(NR10 to NR14),$FF $3F $00 $FF $BF(NR20 to NR24),$7F $FF $9F $FF $BF(NR30 to NR34),$FF $FF $00 $00 $BF(NR40 to NR44),$00 $00 $70(NR50 to NR52), and$FF27–$FF2Falways read$FF(wiki, blargg and SameBoy agree; Pan Docs gives no mask table; only the per-bit access letters are on the register page); (3) which frame sequencer step clocks what (length on steps 0, 2, 4 and 6, sweep on 2 and 6, envelope on 7; Pan Docs gives only the rates, though its obscure-behaviour items speak of the “next step”); (4) what happens when the APU is switched on (the frame sequencer restarts so the next step is 0, the pulse duty positions return to the first step, the wave sample buffer is cleared) and the wave RAM contents at power-up (DMG: unit-specific, R-Type relies on them; Color:00 FFrepeated; wiki); (5) the envelope stops for good when the volume would leave 0 to 15, until the channel is triggered again (wiki), and an envelope or sweep period of 0 followed by another period sometimes gives an extra clock (wiki To Do); (6) the VIN input level (wiki: DMG and MGB 0.847 V is DAC 0 and 3.710 V is DAC 15; Color 1.920 V to 2.740 V); (7) the models the wiki tested and the model differences it lists (DMG-03, -05, -06, MGB-01, CGB-02, -04, -05: the NRx2 write volume effects on the DMG are “very screwey”, the CGB-05 only changes volume on$x8writes when the mode is not changed, the length counters survive power-off on monochrome models and are zero at power-on on the Color; the page names only some of this); (8) the wave channel sample rates Pan Docs prints for the same period values (2730.7 Hz and 10923 Hz); (9) the wiki’s own open points, which the wiki marks unknown (the exact noise frequency timer and which of its dividers a trigger resets, the exact LFSR behaviour on mode changes, the intricate sweep behaviour when NR10 is rewritten, trigger and register writes within a few clocks of a frame sequencer event, the exact timing of the DMG wave RAM access); (10) SameBoy uses the one charge factor 0.999958 for every model where Pan Docs and the wiki give 0.998943 for the MGB and Color: unreconciled. The wiki and Pan Docs agree on every other number the page gives. Not run on hardware or in an emulator. - Reference: the timer, HALT and power page (timer, HALT and power) now also rests on the Mooneye test sources, SameBoy’s source and the gbdev wiki. The re-check of 2026-11-19 (part 8c, recheck8c-gb-2026-11-19) found the ten points below that were missing; the fix9 round (progress-gb-fix9) wrote all ten on that page (the TMA disagreement, the bit-number table and the TAC glitch rule, the overflow table and the wiki’s non-overflow example, the EI, DI, RETI, HALT, IF/IE and ie_push sections, the Game Boy Player rate), added a speed-switch section with what every source says, and drew the divider and timer wiring itself. What stays unknown is in the page’s own Not described section: DIV during the speed-switch pause (Pan Docs and SameBoy differ), which interrupts can occur then, whether
diis delayed on the Color and Advance (Mooneye and SameBoy differ), whathaltdoes instead there, the IF flag after a TIMA write in the overflow cycle, the Color TAC write result and the upper bits of IE. The ten points were found in the Mooneye test sources (acceptance/timer,halt_*,ei_*,di_timing-GS,if_ie_registers,intr_timing,rapid_di_ei,reti_intr_timing,ie_push), SameBoy’sCore/timing.candCore/sm83_cpu.cand the gbdev wiki “Timer Obscure Behaviour”, and were not on that page before: (1) a statement the page repeats from Pan Docs that is wrong by Pan Docs’ own other text: the timer register section says a TMA write in the reload cycle gives TIMA the old value, but the overflow section, the wiki and the Mooneye testtma_write_reloadinggive the new value (the page points at the overflow section without saying the two disagree); (2) the conditions of the TAC write glitch: it only happens when the timer was enabled before the write (wiki formula and SameBoy), so enabling a stopped timer never ticks on the monochrome models, and on the Color neither disabling nor keeping the same rate ticks (wiki; the AGB and AGS are said to be odd); Pan Docs and the page leave out “was enabled”; (3) the system counter bit numbers in T-cycles (16-bit counter, bits 9, 3, 5 and 7 for TAC 00, 01, 10 and 11, as the Mooneyetim*_div_triggertests, SameBoy and the wiki all number them; the page gives the M-cycle numbers 7, 1, 3 and 5, which agree, but only as “our inference”); (4)eirepeated does not postpone the interrupt (ei_sequence),eidirectly beforehaltwith nothing pending behaves like IME = 1 (halt_ime0_ei),retienables interrupts at once (reti_intr_timing), andditakes effect at once on the DMG, MGB and SGB models; Mooneye’sdi_timing-GSsays it is delayed on the Color and Advance (the test fails there) where SameBoy’s source saysdiis never delayed: unreconciled; (5) HALT timing: with IME = 0 and nothing pending it adds no delay (halt_ime0_nointr_timing); with IME = 1 it adds none on the DMG, MGB, SGB and SGB2 but does on the Color and Advance (halt_ime1_timing2-GSfails there); SameBoy says the halt bug also happens on a Color, in both modes; (6) IF bits 7 to 5 read as 1 (if_ie_registers: IF reads$E8with the serial bit set and$E0after it is served) and a pending IF bit is dispatched as soon as IE allows it; the page only says the bits are not named; (7) the dispatch cancel quirk (ie_push, SameBoy): when the high byte of PC is pushed onto IE (SP =$0000) and the new IE no longer enables the interrupt, the dispatch is cancelled, PC becomes$0000, IF is not cleared and IME is 0; a write on the low byte push is too late to cancel; with two interrupts pending only the one that is still enabled is dispatched; (8) the overflow example without a column for the cycle after B and without the TMA row, and the wiki’s example of a tick without overflow; (9) the VBlank rate Pan Docs gives for the Game Boy Player; (10) the gbdev wiki “Halt” article was not found (404) and was not read; the fix9 round tried the titles Halt, HALT, Gameboy_Halt and STOP, found none, and read the wiki’s CPU Instruction Set, Quirks by difficulty and CGB Registers articles instead. Not run on hardware or in an emulator. - Reference: the retest G-AB of 2026-11-19 (recheck G-AB, recheckG-AB-gb-2026-11-19) re-read the picture unit page and the sound page against the raw sources and found five points missing or wrong. The fix10 round (progress-gb-fix10) wrote all five: the opening sentences of both pages now list the real sources (Pan Docs, Mooneye, SameBoy, the gbdev wiki, blargg) and say that we ran no ROM or emulator and had no hardware; the sound page attributes SameBoy’s “only measured on one DMG” comment to the six places in
Core/apu.cthat carry it and not to the DAC fade; the picture page has a section on the OAM bug copies into the first row (rows$80, and$40on the MGB); the sound page has a section on the delayed envelope tick on the CGB-D and CGB-E in double speed and the NR10 rewrite corruption tables; and the monochrome zombie-mode rule of SameBoy (two writes through$FF) is written out exactly, with only the hardware results left unknown. What stays unknown is in the pages’ own Not described sections. All of it is SameBoy’s model of the author’s units, not a measurement; nothing was run on hardware or in an emulator. - Reference: the retest G-C of 2026-11-19 (recheck G-C, recheckG-C-gb-2026-11-19) re-read the timer, HALT and power page (fix 9) against re-fetched raw sources: the Mooneye tests, SameBoy and the wiki are byte-identical to the saved copies (the wiki differs only in a page-script timing number), and the TMA attributions, the overflow table, the counter-bit table, the TAC rule (the page’s rule, written again in an own script, agrees with every expected value of the Mooneye
rapid_toggle,tim00totim11_div_trigger,div_write,tima_reload,tima_write_reloadingandtma_write_reloadingtests), the EI, DI, RETI, HALT, IF/IE and ie_push statements and the two figures are correct. Five points are still missing or wrong: (1) the wiki “Quirks by difficulty” quote on the timing page and in the sample README is not verbatim: the wiki line is “Higher bits of IE/IF should be fixed value” with no “(GBC)”, and the two STOP lines start with “(GBC)” instead of ending with it; (2) the speed-switch Unknown item about 2050 M-cycles against0x20000T-cycles is partly settled by a source already read: in SameBoy the countdown0x20008is in CPU T-cycles (four per M-cycle,cycle_no_accessandGB_advance_cycles), that is 32770 M-cycles, so SameBoy agrees with the chart and not with the 2050 M-cycle (8200 T-cycle) text, and the page says its unit is not converted; (3) the Unknown item “what the upper bits of IE read as” can say that Mooneyeboot_hwio-dmg0,-dmgABCmgband-Scompare the whole IE byte with$00at power-on (only the value after a write is unknown); (4) sentences that say nothing was checked on hardware or run in an emulator (timing page opening paragraph and last Unknown item, and the hardware page opening paragraph “Pan Docs is the only source; nothing here was checked on hardware”, which is also false now) and the history sentence “an earlier version of this page called our inference” should go; (5) the wiki article “Gameboy and Gameboy Color special modes and features” is listed as a source of the timing page but nothing from it is used: it says the system clock warm-up after recovering from STOP exists (bypassed in test modes) and the test register$FF60bit 1 clocks DIV at 1 MiHz, which makes everything driven by DIV (timer, serial, envelopes) 64 times faster (marked unverified there): neither is on the timing page. - Viewer: the explorer opens
.gband.gbcfiles: every header field decoded and checked (logo, header and global checksums), the banks, the vectors, the controller’s registers, and the code of bank 0 and one chosen bank disassembled for the SM83 with the hardware registers named. Since the sixth round it also models, from the raw Pan Docs files: the MBC1 banking modes (a Bank mapping table per mode and secondary register, and a bank that only mode 1 can show is placed at$0000in the disassembly, for example bank$20of a 2 MiB cartridge), the MBC1M multi-game wiring (recognised by a Nintendo logo in bank$10of a 1 MiB MBC1 cartridge, Pan Docs’ own hint), the Wisdom Tree mapper (32 KiB switched by the written address; recognised by Pan Docs’ title or$C0/$D1values), the EMS mapper (OR mask rule and start-up steps, recognised by Pan Docs’ title or$1B/$E1values; Pan Docs marks it unverified), the Bung mapper (detection value$BEonly) and the MBC3 clock registers. MBC3 types0x10,0x12,0x13with 64 KiB RAM or over 2 MiB ROM are shown as MBC30. The RAM size code of an MBC7, camera, HuC3 or MBC6 cartridge is shown with a note and not judged against the type name (see RAM size); a HuC1 cartridge with size code0x00is still reported. What keeps the viewer partial:- It does not follow code from the entry point (all bytes are decoded as instructions) and does not separate code from data: a different, larger feature (control-flow tracing), not attempted.
- It shows bank 0 and one chosen bank: the register state of a running game (the MBC1 mode, the EMS OR mask, the secondary register) is not known from the file, so the viewer places each bank where it can appear and does not choose a state for the game.
- MMM01 (leftovers round): the viewer now reads the menu header at
(size − 32 KiB) + $100when the last 32 KiB hold an MMM01 header with a Nintendo logo, shows it in the tree and the model, lists the last two banks as the unmapped start-up mapping and disassembles them at$0000–$7FFF, with a table of Pan Docs, Gambatte, SameBoy and mGBA. What it does not do: choose a game (the menu’s registers are not in the file) or model RAM in unmapped mode (Pan Docs: unknown; the emulators differ). - MBC6 (leftovers round): the two independent 8 KiB windows are modelled (a Bank mapping section, a Flash commands table, 8 KiB banks in the bank list, a disassembly of the chosen bank’s two halves at
$4000and$6000, and a tested register-to-window functionmbc6Window). Not modelled: which two banks a game picks (not in the file), the flash contents and the execution of flash commands (the commands are described from Pan Docs; mGBA implements none). - TAMA5: no bank model beyond the bank controllers page’s description (mGBA for the clock, MAME as a second source for the ports and RAM commands).
- Bung: no source describes it, so there is no bank model; the viewer says why and notes that Gearboy treats it as EMS. M161 is detected by Gambatte’s file rule (no header value exists).
- MBC30: the viewer shows the sizes and says the 8-bit ROM and 3-bit RAM bank widths are the emulators’, not a hardware document’s.
- Colour on a Game Boy Color (leftovers round): the compatibility palette combination is now also drawn as three swatch palettes (OBJ 0, OBJ 1, background) of four colours each, from SameBoy’s tables by plain 5-bit scaling (a real screen tints them differently).
- Detection of the MBC1M, Wisdom Tree, EMS and Bung mappers rests on Pan Docs’ hints and proposals, not on a standard: a 1 MiB MBC1 game that has a logo in bank
$10by chance, or a multicart with other header values, would be judged wrongly or missed. The MBC1M rule is now tested on a real multicart ROM (Mooneye’smulticart_rom_8Mb, MIT, with plain 512 KiB, 1 MiB and 2 MiB MBC1 ROMs as negatives) and its size bound follows the SameBoy and Gambatte rules (512 KiB or more); the Wisdom Tree, EMS, Bung, MMM01, M161 and MBC6 paths are tested on built files only, because no multicart dump with a stated permissive licence was found (Homebrew Hub entries carry no licence field). - No code is run: no emulation of the controllers, the RAM contents or the clock.
- The browser pass of recheck6 used built headers only (no real multicart, MBC30 or Wisdom Tree dumps exist here).
Links
Software
- mGBA – emulator for the Game Boy, Game Boy Color and Game Boy Advance (Windows, macOS, Linux)
- SameBoy – accurate Game Boy and Game Boy Color emulator (Windows, macOS, Linux)
- BGB – Game Boy emulator with a debugger (Windows)
- RetroArch – front end that plays them with a Game Boy core (Windows, macOS, Linux, mobile)
- RGBDS – assembler and linker many homebrew games are built with, whose
rgbfixwrites the header and checksums (Windows, macOS, Linux)
Reference
- The Cartridge Header – Pan Docs, the community reference for Game Boy hardware