Introduction
An .a26 file is the contents of the ROM chip of an Atari 2600 (VCS) game cartridge, byte for byte. There is
no header, no signature and no checksum. The console has a 6507 processor, a 6502 with 13 address lines, so it can address
only 8 KiB: the cartridge is seen at $1000-$1FFF (programs are usually written for $F000-$FFFF,
the same 4 KiB seen through the unused address lines). A ROM bigger than 4 KiB has to be bank switched: the
cartridge swaps which part of the ROM is in that window when the program touches certain addresses, the
hotspots.
The file does not say how its ROM is switched, and the size is not always enough to tell. The explorer guesses from the size and from byte signatures (the instruction sequences that touch each scheme’s hotspots), by the rules the Stella emulator uses; the options bar has a Bank switching choice with the guess as default (see Bank-switching schemes), and the guess is only a guess.
The explorer lists every bank, reads the vectors from the bank the machine starts in, and disassembles every bank with the instruction decoder for the 6502. By default it follows the code from the reset and IRQ vectors of each bank (through every jump, call and branch, and across a bank switch) and shows what it reaches as instructions and the rest as data bytes, with a code map; the option Code / data switches to an instruction decoded at every byte, laid out in columns. Accesses to the TIA, the RIOT (and their mirrors), the scheme’s hotspots and the chip registers of the DPC, DPC+, CDF and BUS cartridges appear with their names, and a store of an immediate value into a TIA register says what its bits mean (the bit layouts). A Supercharger file is decoded load by load, and MovieCart, ELF and PlusROM files are recognised and decoded.
Files named .bin, and any other name
The extension .bin is also used for 2600 ROMs, but it means hundreds of other things on this site, and a 2600 ROM has no header, so
a .bin file is not recognised as a 2600 ROM, by name or by content. A 2600 ROM is opened with Read as →
Atari 2600 ROM (headerless) (under “Raw / headerless”), which takes any file whatever its name, or by the extension .a26.
The options bar then offers the bank-switching scheme as a dropdown with the guess selected.
Why content is not used: the only thing that can be tested is that the code at the reset vector looks like a 2600 program (a reset vector with address line 12 set,
twenty documented 6502 opcodes in a row, branches inside the bank, jumps into the cartridge window, at least one store), and 6502 code of any machine looks like that.
That heuristic was tried and measured, and the explorer does not use it. On random buffers (10,000 per size, run on 19 November 2026) it claimed 2 of 10,000 at 2 KiB,
4 at 4 KiB, 0 at 8 KiB, 3 at 12 KiB, 4 at 16 KiB, 4 at 24 KiB, 9 at 32 KiB and 18 at 64 KiB (44 in 80,000). Other runs gave other numbers: the measured
totals range between runs, from 44 to 57 per 80,000 in the runs of that day, and 0.1% to 0.3% at 64 KiB, so the rate is about 0.06% overall and never zero. Of the real files of other
machines in the project’s emulator folders, two named .bin pass it: kernal.bin (16 KiB) and gg2.bin (32 KiB), as do several ROMs
with other names. A test that claims other machines’ ROMs as 2600 cartridges would be wrong for the user who opens them, so there is none.
Measured on real files on 26 November 2026 (script scripts/a26/measure-real.mjs). Real 2600 ROMs: 597 cartridge dumps (one game each, from the archive.org collection retrocollection-1g1r-atari-2600: 59 of 2 KiB, 329 of 4 KiB, 145 of 8 KiB, 42 of 16 KiB, 9 Supercharger tapes of 8,448 bytes and some rarer sizes). The heuristic accepts 531 of them (88.9%); it cannot accept the 15 whose size is not one of its sizes (the 8,448-byte Supercharger loads, a 8,195-byte WD dump, and 16,896, 25,344 and 33,792 bytes), and it misses 51 more whose reset code it does not find plausible (24 of the 4 KiB ROMs, 13 of the 8 KiB, 12 of the 16 KiB, one 2 KiB and the DPC ROM of 10,495 bytes; why each is missed was not examined). Other files of 2600 sizes: of 1,056 files of those sizes in the project and the site that are not 2600 ROMs, it claims 16: four of them are the two real 2600 programs starfield.bin and flapping.bin (two copies each), the other 12 are ROMs of other 6502 machines (the Atom kernel and the Atom E kernel in two copies each, an Altirra 5200 OS, the C128 kernal, an Acorn Electron OS, two Bubble Bobble ROMs, gg2.bin, an OutRun ROM and an Altirra 400/800 OS). That is 12 of 1,052 files that are not 2600 ROMs (1.1%). Of the 751 files in the 10,240 to 10,496 byte band, none is a 2600 ROM and one (the Altirra OS) is claimed. These are rates on this machine’s files, not on files in general: most of the 1,052 are not 6502 code at all, so the rate among 6502 ROMs is much higher.
The 66 real ROMs the test does not accept (scripts/a26/classify-missed.mjs), classified: 15 have a size it never accepts (14 Supercharger tapes, which Stella’s own size rule also names AR, and the 8,195-byte WDSW image); 3 have no reset vector with address bit 12 set at any bank end (Star Gunner (Brazil) and the prototypes Bouncin’ Baby Bunnies and Racer); and 48 have a good vector but the next twenty instructions fail the test (for example Berzerk, Seaquest, Missile Command, Q-bert, Pitfall II and Robot Tank). The type Stella’s rules name for them is the ordinary one for their size (4K, F8, F6, F6SC, 3F, FE, UA, DPC), so the cause is the test’s code check, not the detection. The rule that fails for each of the 48 (scripts/a26/classify-fail.mjs; a ROM with several banks can fail a different rule at each bank end): no store among the first twenty instructions in 28 (25 of them with no other fault; why their first twenty instructions have no store was not examined), an undocumented opcode in 18 (the opcodes found are $44, $FF, $9F, $BF, $DF, $EF, $E2, $F4, $7F and $4F; whether they are data, a fill or deliberate was not examined), a JMP or JSR to an address with bit 12 clear in 3, a run past the end of the bank in 3, and a branch out of the bank in 1. The checks are those of plausibleStart in sniff.js, replayed with a reason; the first rule that fails is the one named.
Structure
0x0000ROM: the program and data, 2, 4, 8, 12, 16, 32 or 64 KiB (more for some schemes)whole fileend − 6Vectors of the last bank: NMI, RESET and IRQ/BRK, three 16-bit little-endian addresses at$1FFA-$1FFF6 bytes
The sizes a 2600 ROM has: 2, 4, 8, 12, 16, 24, 28, 29, 32, 64, 128, 256 and 512 KiB, a Supercharger tape in multiples of 8,448 bytes, and the Pitfall II chip cartridge, whose size ranges from 10,240 to 10,496 bytes (8 KiB of program and 2 KiB of display data, plus up to 256 bytes that Stella accepts).
Banks of 4 KiB follow one another in the file; schemes with smaller banks (1 KiB, 2 KiB) are described on Bank-switching schemes. The memory map page lists the TIA and RIOT register names used in the disassembly.
Real files used while the viewer was written: starfield.bin and flapping.bin (4 KiB each, plain
ROMs whose vectors are FF FF 00 F0 00 F0: no NMI use, reset and IRQ at $F000) and hellway.bin (4 KiB, a
homebrew 2600 ROM named .bin, opened with Read as; used for local testing only, its author allows free use but not selling).
The processor
The 6507 decodes exactly like the NMOS 6502; it lacks the interrupt pins and has 13 address lines, so an address wraps at 8 KiB. The explorer decodes with the NMOS 6502 (undocumented opcodes marked) and the options bar can switch to the 65C02 for homebrew on unusual hardware. See the 6502 instruction set.
Not described
Known, not yet covered
- Viewer: the ARM code of the Harmony schemes is shown as ARM and Thumb code with the data separated by following the code (not run; only DPC+ has a real dump here; a jump through a register or table is not followed) and the executable sections of an ELF cartridge as Thumb code (a Supercharger load is assembled into RAM and its two windows are disassembled from the start address, as the state right after the load; later changes to RAM are not simulated). See Bank-switching schemes: Not described.
- Viewer: the guess is only a guess: a ROM that avoids Stella’s signatures is taken for the scheme its size suggests (a 128 KiB ROM without the text DFDF is SB, for instance); Stella itself does not detect the multicarts or CM, so they are chosen in the options bar.
- Viewer: the code / data separation is a walk from the vectors (the option Code / data): it does not follow a computed jump (push an address, RTS), a jump into another 1 KiB slice or 2 KiB window of a sliced scheme, or any undocumented opcode, so such code is shown
as data; Disassemble every byte shows everything. Two heuristics were added on 27 November 2026 after the real banked ROMs showed that the plain walk reached only 0.5% to 40% of many of them: a jump, call or branch to an address outside the bank is followed in every other bank that has the address in its window (the bank that is mapped is not known), and
JMP ($00zz)is followed to every address that can be built from the constants the reached code stores into$zzand$zz+1withLDA/LDX/LDY #nandSTA/STX/STY(the usual bank-switch trampoline). They are guesses: a constant stored for another purpose can make data look like code. Average share of the ROM reached as code on the real ROMs: F8 46.7% (119 ROMs), F6 31.6% (28), F6SC 41.2%, E0 27.5% (14, was 2.1%), 3F 64.8% (6, was 5.5%), E7 51.2%, UA 52.8%, FA 44.9%, AR 46.8%; the ARM schemes’ 6502 side only 0.7% to 4.5% (CDF, CDFJ+, BUS: probably because the program is ARM code and the 6502 side only a small kernel; this was not checked further); WD, FA2 and 4A50 are 0% to 1%, and some single ROMs are 0.5% (Sinistar prototype, Smurf): their code is reached through tables or computed values. The walk’s limit stays: such code is shown as data. Measured on the 388 real 2 KiB and 4 KiB ROMs (26 November 2026): the walk reaches 512,597 instructions, and 203 of their jump, call, branch or fall-through targets (0.04%) are not themselves reached: 96 are an undocumented opcode, where the walk stops on purpose, and 107 overlap an instruction found by another path (the program jumps into the middle of an instruction, a known 2600 trick). There is no other kind. - Viewer: a headerless 2600 ROM cannot be recognised by content, so a
.binis never opened as one on its own: the user has to choose Read as or name it.a26(see the section above for the measured heuristic and why it is not used).
Unknown
- Reference and viewer: the schemes were first checked against the text of Stella’s
Cart*.cxx/.hxxfiles (commit 8dd5600) and against ROMs built with the DASM assembler, one per scheme. On 26 November 2026 597 real cartridge dumps were added (samples/a26/real, from archive.orgretrocollection-1g1r-atari-2600) and every one opens in the viewer with a tree that covers the file; the type the detection names agrees with the sources read for every game they name (Espial, Springer, Polaris, Miner 2049er and River Patrol as 3F; Mountain King, Omega Race and Tunnel Runner as FA; the three FE games; the Parker Brothers games as E0; BurgerTime and He-Man as E7; Pitfall II as DPC; MegaBoy as F0; the Commavid games as CV; Stargate, Defender II and Elevator Action as F8SC; Fatal Run as F4SC; Pleiades and Funky Fish as UA). On 27 November 2026 real ROMs of the homebrew schemes were added (samples/a26/real/homebrewandreal/arm, from two archive.org packs): DPC+, CDF0, CDF1, CDFJ, CDFJ+, BUS1 to BUS3, CTY, ELF, EF, EFSC, SB, X07, 3E, 3E+, FA2, 4A50, BF, BFSC, DF, DFSC, 0840, MDM, GL, 0FA0, JANE, WD and the CompuMate, and each opens in the viewer with the scheme the detection names, vectors that point into the window and, for the ARM schemes, the ARM entry points of the sources. No real ROM was found for BUS0, 3EX, WF8, UASW, EFF, 03E0, TV Boy, DevCard, MovieCart and the multicarts: those stay checked against source text and built ROMs only. Whether a particular ROM really uses the scheme the viewer shows cannot be settled from the file: the guess agrees with the games above, it is not proof for every ROM. - Follow code, with guesses (the option Code / data). Three more guesses on top of the default walk, all of them marked as guesses because they show data as code when they are wrong: the entries of the two tables of the RTS trick (
LDA hi,X / PHA / LDA lo,X / PHA / RTS, target plus 1) and of aJMP (zz)pointer filled from tables (at most 128 entries, stopping after four bad ones in a row); two constants pushed one after the other as a return address; and the block after aJMP,RTSorRTIwhen it decodes as at least eight documented instructions in a row. Measured on 27 November 2026 on the 597 + 47 real ROMs, average code fraction without and with the guesses: F6 32 to 51 per cent, E0 28 to 57, F8 47 to 60, F8SC 39 to 59, AR 47 to 56, EF 1 to 71, DPC+ 1 to 28, JANE 6 to 69, X07 1 to 26, F0 1 to 26; no ROM shows less code with the guesses. The ARM schemes (CDF, CDFJ+, BUS, DPC+) stay low because only one bank holds 6502 code and the rest is ARM program and data: the Galagon CDF demo has 865 code bytes in its last bank; CDFJ+ ROMs keep the 6502 kernel in bank 0. Not reached: code that is reached through a table or pointer the heuristics do not model, and the Pink Panther WD prototype (reset vector $D400, outside the window), like Pegged and Shinobi beta, which stay unexplained dumps.
Other Atari cartridge formats
These are separate formats, not variants of one: the hardware, the file and the pages differ, and one extension cannot
cover them (.bin is shared by the 2600 and the 5200).
- Atari 2600 ROM image (A26) – raw ROM of the 2600, bank switching chosen by hand
- Atari 7800 ROM image (A78) – a 128-byte header, then the ROM
- Atari 5200 ROM image (A52) – raw ROM with a header at its top
- Atari cartridge file (CAR) – a 16-byte header and a type number, for the 8-bit computers and the 5200
Links
Software
- Stella – Atari 2600 emulator with a debugger (Windows, macOS, Linux)
- Gopher2600 – Atari 2600 emulator and debugger (Windows, macOS, Linux)
- Javatari – Atari 2600 emulator for the browser (JavaScript)
- DASM – 6502 macro assembler used for most 2600 homebrew (Windows, macOS, Linux)
Developers
- 6502.ts – 6502 and Atari 2600 emulator whose cartridge code was read for these pages (TypeScript)
Reference
- Atari 2600 Specifications – Martin Korth’s hardware notes, with the TIA and RIOT registers
- Atari Compendium – articles and documents about Atari machines