# Cartridges and mappers A cartridge is a slot device: it sees every address of its slot while SLTSL is low, plus CS1 (4000-7FFF), CS2 (8000-BFFF) and CS12 [TDB p. 32-33]. Nothing in the image file says which board it was on: the census ([census.md](census.md)) names each image's type by SHA-1 through MAME's CC0 software lists, and the board's cartridge loader will do the same (a database keyed by SHA-1, the list's `slot` feature as a detector's opinion, overridable per image), with a heuristic only as a fallback. Every behaviour below cites Sean Young's "Megabit ROM Cartridges" [MEGAROMS] unless noted; he marks what he verified on real cartridges, and his notes are kept with each row. ## How common each is (No-Intro MSX + MSX2, 1,151 images; census.md) | Type | Images | Notes | | --- | ---: | --- | | plain ROM (no mapper) | 740 by MAME's lists + 90 guessed | 8, 16, 32, 48, 64 KB | | ASCII 8K | 129 + 3 guessed | | | ASCII 16K | 74 + 3 guessed | | | ASCII 8K with SRAM | 33 | Xanadu, Royal Blood and others | | Konami SCC | 29 + 3 guessed | the SCC sound chip on the cartridge ([scc.md](scc.md)) | | Konami (without SCC) | 22 + 4 guessed | | | ASCII 16K with SRAM | 7 | Hydlide 2 and others | | one or two each | 13 | Game Master 2 (2), FS-SR022 dictionary (2), Cross Blaim, Harry Fox, R-Type, Super Lode Runner, Majutsushi, Konami's Synthesizer, FM-PAC's program ROM, MSX-Write, the HX-MU900 MSX-Audio program ROM | | not told | 1 | the FS-CA1 MSX-Audio program ROM (in no list; the heuristic finds no mapper writes) | So **plain + ASCII 8K/16K + Konami + Konami SCC cover 1,097 of 1,151 images (95 %)**; the two SRAM variants take it to 1,137 (99 %). ## Plain ROMs Placement comes from the header: "AB" at 4000h (INIT/ STATEMENT addresses in 4000-7FFF) or 8000h; a 32 KB image covers 4000-BFFF; 48 KB images cover 0000-BFFF; 64 KB images cover the whole slot (U12: the mirroring of 8 and 16 KB images across the other pages is what the cartridge's address decoding does, which varies; MAME's `nomapper` device places by header, as a detector). ## Mappers (bank size, switch addresses, power-on state) All four main types divide 4000-BFFF into 8 KB or 16 KB banks; at power-on "bank 1 has the value 0 and bank 2 the value 1, etc." so the first 32 KB appear at 4000-BFFF [MEGAROMS, introduction] (U13: that is an assumption about power-on register contents in his text, not a measurement; Konami's mapper chips may come up in another state). | Type | Banks | Switch writes | Verified per Young | | --- | --- | --- | --- | | Konami (no SCC) | 8 KB at 4000, 6000, 8000, A000 | bank 1 fixed; 6000h, 8000h, A000h | "on several Konami cartridges"; Game Master 2 needs bank 1 fixed | | Konami SCC | 8 KB x 4 | 5000-57FF, 7000-77FF, 9000-97FF, B000-B7FF; writing xx111111b to 9000-97FF maps the SCC at 9800-9FFF | "on several Konami cartridges" | | ASCII 8K | 8 KB x 4 | 6000-67FF, 6800-6FFF, 7000-77FF, 7800-7FFF | "on Valis (Fantasm Soldier)" | | ASCII 16K | 16 KB at 4000, 8000 | 6000-67FF, 7000-77FF | "on Xevious"; Gallforce wants bank 2 to start at block 0 after reset | | ASCII 8K + 8 KB SRAM | as ASCII 8K | as ASCII 8K; bit 5 (Xanadu) or bit 7 (Royal Blood) of the value selects SRAM; writable only in banks 3-4 | | | ASCII 16K + 2 KB SRAM (Hydlide 2) | as ASCII 16K | value 10h selects the SRAM, repeated over the 16 KB; writable in page 2 only | | | Game Master 2 | 8 KB, bank 1 fixed | 6000-6FFF, 8000-8FFF, A000-AFFF; bit 4 selects SRAM, bit 5 its 4 KB half; SRAM writes at B000-BFFF | "verified on the real cartridge" (with Klaas de Wind) | | R-Type | 16 KB; page 1 fixed at block 0Fh/17h | 7000-7FFF; bit 4 picks the ROM chip | | | Majutsushi | 8 KB, bank 1 fixed | 6000-7FFF, 8000-9FFF, A000-BFFF (whole ranges); an 8-bit DAC at 5000-5FFF | | | Cross Blaim, Super Lode Runner | 16 KB | 4045h (8000-BFFF); writes to 0000h without slot select | "never seen the real cartridge" | | FM-PAC | 16 KB ROM at 4000-7FFF, 8 KB SRAM | 7FF7h ROM page; 7FF4/7FF5 OPLL; 7FF6 bit 0 enables; 4Dh/69h at 5FFE/5FFF maps the SRAM ([msx-music.md](msx-music.md)) | | | MSX-DOS 2 | 16 KB, page 1 only | 6000h | "only on an unofficial DOS2 cartridge" | Mirror and decode width are where emulators differ: Young's ranges say which address lines each mapper decodes (5000-57FF is A11-A15 decoded with A0-A10 ignored, for instance), and reads of the switch addresses return ROM, not the register. What a read returns at a switch address, and whether writes outside the listed ranges are ignored, are U14. ## Korean and pirate boards MAME's lists carry Korean multi-carts (80-in-1, 90-in-1, 126-in-1, 25-in-1), Zemina, "Super Swangi", "Dooly" and others (census.md lists its device names). None is in the No-Intro set except through the guessed rows; they are later rows, by need. ## Chip rule Mappers are discrete logic or Konami custom chips used only on MSX cartridges: board.