# Cartridges and their bank registers ## The connector (SR: traced on a Trap & Turn board) 36 contacts at 0.1" pitch on both faces (the Game Boy's: 32 at 0.05", one face); 29 unique signals; numbered alternately front and back; the data bus, +5 V, /RESET match the Game Boy pinout by function. MEASURED by SR on one cartridge (tier 3). SR also traced the **unpopulated bank latch** on that 32 KB board: a 7432 (OR) combining /WR and A14, clocking a 74174 (hex D flip-flop) whose input is D0 and whose /CLR is /RESET: "a write with A14=0 would latch D0 for the blob to use as the bank #. Reset would clear the bank to 0." So the board design behind at least one family of carts decodes **any write with A14 = 0** (which includes `$0001` and `$B000`), latches **one** bit, and resets it to 0. MEASURED wiring of pads; whether populated boards match is not known (C1). ## The mapper types (MDI "MBCs / Bank Switching"; SR; census) | Type (MDI) | Bank register | Banks | NI images (census, static) | | --- | --- | --- | --- | | flat | none | 32 KB | 9 (all the 32 KB images) | | MD1 | write `0`/`1` to `$B000`: swaps the whole `$0000-$7FFF` | 2 x 32 KB | 2: Puppet Knight, Suleiman's Treasure (`LD ($B000),A` found, no `$0001` store) | | MD2 | write `1`-`7` to `$0001`: `$4000-$7FFF`; `$0000-$3FFF` fixed at bank 0 | up to 8 x 16 KB (128 KB) | 14 (`LD ($0001),A` found) | | MD0 | `$1000`: bits 3-0 the 32 KB ROM bank, bits 5-4 the 8 KB RAM bank at `$A000` (no RAM enable) | 512 KB ROM, 32 KB RAM | 0 in NI; the laptops' system ROM and two laptop carts (Bilder Lexikon, DataBank: MAME lists Bilder Lexikon, `supported="no"`) | | MD20S, MD25S | MD2 plus RAM registers (MDI) | homebrew / ROM hacks | 0 in NI | SR on MD2: "Writing 0 or 1 to $0001 selects banks 0 and 1" (bank 0 maps as 1, as on an MBC1); he took the bank behaviour from MESS's source, so that line is tier 5 (C2). MDI's MD0 note: the laptop's ROM waits about 41 M-cycles (code run from WRAM) after a bank write before returning to ROM, "unclear if required" (U8). ## No header No logo, no header, no checksum (MDI; census: no image has the Game Boy logo at `$0104`). The board cannot read the mapper from the image. MDI lists the ways emulators choose: by file extension (`.md1`, `.md2`: the Analogue Pocket core), by hash (MAME, partly), or by **emulating both MD1 and MD2 at once**, since their registers differ (MAME partly, MiSTer). For a specification, decision 3: a SHA-1 table for the 25 NI images (from this census, with the store forms found) plus an explicit `mapper=` argument; "both at once" is a frontend convenience, not hardware, because no single cartridge holds both latches. MAME's software list marks every banked entry `fixedbank="yes"` (MD1 ones included) and Duck Adventures `supported="partial"` (OBSERVED in the CC0 list; what MAME does with the feature is in its unopened source).