Introduction
The 6507 can address 8 KiB, and the cartridge gets 4 KiB of that, $1000-$1FFF. A bigger ROM is cut into
banks and the cartridge shows one at a time. The program switches by touching a hotspot: reading or
writing an address that the cartridge decodes (most schemes use the top of the window, $1FF4-$1FFB and
near). Nothing in the file says which scheme a ROM uses, so the explorer guesses and offers the choice in the options bar.
The ROM may be a .a26 file, or any file (a .bin, for instance, which is not recognised as a 2600 ROM by its
content, see the overview) opened with Read as → Atari 2600 ROM (headerless).
How the default is guessed
The explorer guesses the scheme from the size and from byte signatures, by the rules the Stella emulator uses
(CartDetector.cxx, read as text: the order of the questions and the signatures are Stella’s, the code is ours). A
signature is a short run of bytes that only the code of that scheme contains, for example STA $1FF9
(8D F9 1F) twice. The questions per size, in Stella’s order (the first yes wins):
| Size | Questions, in order | Else |
|---|---|---|
| 52 bytes or more, before everything else | ELF: the bytes 7F 45 4C 46 anywhere in the first 8 bytes (Stella searches that window, so it need not start at byte 0; byte 5 must then be 1, little endian, so in practice the magic starts at byte 0 or 1), byte 0x10 = 1 (a relocatable file) and byte 0x12 = 0x28 (ARM). The header and the section table are decoded (see ELF) | |
| a multiple of 8448, or 6 KiB | 6 KiB with LDA $0CB8: GL; otherwise AR | |
| 2 KiB or less, or 4 KiB with equal halves | CV (STA $F3FF,X or STA $F400,Y) | 2K |
| 4 KiB | CV, 4KSC (first 256 bytes equal and the text “SC” at $FFFA), FC, GL | 4K |
| 8 KiB | F8SC (the first 128 bytes of each bank repeated), halves equal (4K), E0, 3EX, 3E, 3F, UA, 0FA0, FE (unless F8 code), 0840, E7 (E78K form), WD, FC, 03E0 | F8 |
| 8195 bytes | WDSW | |
| 10240 to 10496 bytes | DPC | |
| 12 KiB | E7 | FA |
| 16 KiB | F6SC, E7, FC, 3EX, 3E, JANE | F6 |
| 24 or 28 KiB | DEVC (LDA #$FD; STA COLUPF first) | FA2 |
| 29 KiB | ARM loader pattern: FA2 | DPC+ |
| 32 KiB | CTY, CDF, DPC+, F4SC, 3EX, 3E, 3F, BUS, FA2 (zeros from 29 KiB), FC | F4 |
| 60 KiB | CTY | F4 |
| 64 KiB | EFF, CDF, 3EX, 3E, 3F, 4A50, EF / EFSC, X07 | F0 |
| 128 KiB | CDF, 3EX, 3E, DF / DFSC (text in the last 8 bytes), 3F, 4A50 | SB |
| 256 KiB | CDF, 3EX, 3E, BF / BFSC (text in the last 8 bytes), 3F | SB |
| 512 KiB | TVBOY, CDF, 3EX, 3E, 3F | (none) |
| any size, last | 3E+ (the text “TJ3E”), MDM (“MDMC” in the first 8 KiB), MVC | 4K if nothing matched |
The result is a guess and can be wrong: a ROM may avoid every signature, or contain one by chance. A DF ROM without the text
DFDF comes out as SB, for instance, and a 0840 ROM that touches each hotspot only once comes out as F8. The explorer shows
Stella’s answer in the ROM image table, and the options bar changes the scheme. A ROM of a size no rule covers is shown as 4 KiB banks
one after the other, with no switching described. Every type Stella detects is now modelled; Stella itself never detects the multicarts, CM or PlusROM (it takes those from the type name, the file name suffix or, for PlusROM, a code pattern plus strings), so choose a multicart or CM in the options bar. A file whose size no rule covers still falls back to the size rule.
Schemes
Hotspot addresses are the 13-bit addresses the 6507 puts out ($1FF8); a program written for $F000
names the same place $FFF8. The checked mark means the numbers were read from source text: the cartridge
classes of the 6502.ts core in emulators.org/emulator/6502-ts (F8, F6, F4, FA, F0, EF, E0, E7, 3F, 3E, FE, UA, 0840) and
the cartridge classes of Stella (Cart*.cxx and .hxx, every scheme below; the files, their size and
SHA-256 are listed on the sources list), and compared in the page test. The start bank column
gives the bank this explorer reads the vectors from (6502.ts’s choice) and, where Stella differs, Stella’s in brackets: the bank of a
real cartridge at power-up is not defined (see the power-up bank), so a well-made ROM has the same reset vector in every bank.
| Scheme | Size | Banks | Hotspots | Start bank | Checked |
|---|---|---|---|---|---|
| 2K | 2 KiB | 1 | none | 0 | yes |
| 4K | 4 KiB | 1 | none | 0 | yes |
| 4KSC | 4 KiB | 1, SuperChip RAM | none | 0 | yes |
| F8, F8SC | 8 KiB | 2 of 4 KiB | $1FF8, $1FF9 | 1 | yes |
| FA | 12 KiB | 3 of 4 KiB | $1FF8 to $1FFA | 0 (Stella 2) | yes |
| FA2 | 24 to 32 KiB | 6 or 7 of 4 KiB | $1FF5 to $1FFB, $1FF4 (RAM flash: only when the banks are 28 KiB) | 0 | yes |
| F6, F6SC | 16 KiB | 4 of 4 KiB | $1FF6 to $1FF9 | 0 | yes |
| F4, F4SC | 32 KiB | 8 of 4 KiB | $1FF4 to $1FFB | 0 | yes |
| F0 | 64 KiB | 16 of 4 KiB | $1FF0 (next bank) | 0 (Stella 15) | yes |
| EF, EFSC, EFF | 64 KiB | 16 of 4 KiB | $1FE0 to $1FEF (EFF: $1FF0 to $1FF4 too) | 15 (Stella: EF 1, EFSC 15, EFF 1) | yes |
| DF, DFSC | 128 KiB | 32 of 4 KiB | $1FC0 to $1FDF | 15 | yes |
| BF, BFSC | 256 KiB | 64 of 4 KiB | $1F80 to $1FBF | 1 (BFSC 15) | yes |
| E0 | 8 KiB | 8 of 1 KiB | $1FE0 to $1FF7 | 7 (all slices; Stella 4, 5, 6) | yes |
| 03E0 | 8 KiB | 8 of 1 KiB | $03B0 to $03E7 (TIA mirror) | Stella 4, 5, 6 | yes |
| E7, E78K, E712K | 8, 12, 16 KiB | 4, 6, 8 of 2 KiB | $1FE0 to $1FEB | 0 | yes |
| 3F | 8 KiB and up | 2 KiB banks | write $0000 to $003F | 0 | yes |
| 3E, 3EX | 32 KiB and up | 2 KiB banks, RAM | write $003E, $003F | 0 | yes |
| 3E+ | 4 KiB and up | 1 KiB segments, RAM | write $003E, $003F | bank 0 at $1C00 | yes |
| FE | 8 KiB | 2 of 4 KiB | access to $01FE | 0 | yes |
| UA, UASW | 8 KiB | 2 of 4 KiB | $0220, $0240 | 0 | yes |
| 0840 | 8 KiB | 2 of 4 KiB | $0800, $0840 | 0 | yes |
| 0FA0 | 8 KiB | 2 of 4 KiB | $06A0, $06C0 ($0FA0, $0FC0) | 1 | yes |
| WF8 | 8 KiB | 2 of 4 KiB | write $1FF8 | 0 | yes |
| JANE | 16 KiB | 4 of 4 KiB | $1FF0, $1FF1, $1FF8, $1FF9 | 1 | yes |
| FC | 4 to 32 KiB | 4 KiB banks | write $1FF8, $1FF9; touch $1FFC | 0 | yes |
| SB | 128, 256 KiB | 32 or 64 of 4 KiB | $0800 to $083F | last bank | yes |
| X07 | 64 KiB | 16 of 4 KiB | $080D to $08FD (every $10) | 0 | yes |
| WD | 8 KiB | 8 of 1 KiB, 64 bytes of RAM | $0030 to $003F | arrangement 0 | yes |
| MDM | up to 512 KiB | 4 KiB banks | $0800 to $0BFF | 0 | yes |
| TV Boy | 512 KiB | 128 of 4 KiB | $1800 to $187F | 0 | yes |
| CV | 2 KiB + RAM | 1 | none | 0 | yes |
| DPC | 8 KiB + 2 KiB | 2 of 4 KiB | $1FF8, $1FF9; chip $1000 to $107F | 1 (Stella 0) | yes |
| DPC+ | 29 or 32 KiB | 6 of 4 KiB, ARM | $1FF6 to $1FFB | 5 | yes |
| CDF | 32 KiB | 7 of 4 KiB, ARM | $1FF4 to $1FFB | 6 | yes |
| BUS | 32 KiB | 7 of 4 KiB, ARM | $1FF5 to $1FFB | 6 | yes |
| CDFJ+ | 32 to 512 KiB | 7 of 4 KiB, ARM | $1FF4 to $1FFA, $1FFB | 0 | yes |
| BUS0 | 32 KiB | 6 of 4 KiB, ARM | $1FF6 to $1FFB | 5 | yes |
| 4A50 | 32, 64, 128 KiB | pages of 2 KiB, 1.5 KiB, 256 bytes; RAM | $0074 to $007B, $00F4 to $00FF, $0400 to $0F00 | 0 | yes |
| CM | 16 KiB | 4 of 4 KiB, 2 KiB RAM | write SWCHA $0280 | 3 | yes |
| CTY | 32 or 60 KiB | 7 of 4 KiB, ARM, 64 bytes RAM | $1FF5 to $1FFB, $1FF4 | 1 | yes |
| GL | 4 or 6 KiB | 4 of 1 KiB, 12 KiB RAM | $0480, $0580, $0880, $0980 + x | 0 in all segments | yes |
| MVC | n x 4096 bytes | video fields | none | n/a | yes |
| DEVC | 24 KiB | 6 RAM windows of 4 KiB | none | window at $F000 | yes |
| ELF | any | ARM object file | none | n/a | yes |
| 2IN1 to 128IN1 | 2 to 128 games of 2 to 32 KiB | equal slices | none (each game its own) | game 1 | yes |
| AR | n x 8448 bytes | loads | $1FF8 (configuration) | n/a | yes |
2K
No bank switching. The 2 KiB ROM appears at $1000-$17FF and again at $1800-$1FFF (one address
line is not connected). The vectors are at the end of the file. A ROM smaller than 2 KiB is treated the same way.
4K
No bank switching: the ROM fills $1000-$1FFF. The vectors are the last six bytes of the file.
F8
8 KiB, two 4 KiB banks. Touching $1FF8 selects bank 0, $1FF9 selects bank 1. The 6502.ts core starts
in bank 1 (the real chip starts in either). Carts of this kind may add the SuperChip.
FA (CBS RAM Plus)
12 KiB, three 4 KiB banks, selected by $1FF8, $1FF9 and $1FFA. 256 bytes of RAM sit at the
start of the window: the write port is $1000-$10FF and the read port $1100-$11FF. 6502.ts starts in bank 0 and
Stella in bank 2. (Stella’s header says a bank switch needs data bus bit D0 to be 1; the test is commented out in its code, and this page follows the code.)
FA2
FA with more banks, 24 to 32 KiB: $1FF5 to $1FFB select bank 0 to 6 (a 24 KiB image has six banks, a 28 KiB image
seven). 256 bytes of RAM as in FA: write port $1000-$10FF, read port $1100-$11FF. An access to $1FF4 loads or
saves the RAM in the flash of the Harmony cartridge: the operation is byte 255 of the RAM (1 read, 2 write). Stella does this only when
the banks come to 28 KiB (CartFA2.cxx, peek and poke: myImage.size() == 28_KB, where
myImage is the image after the constructor has cut a 29 KiB or 32 KiB file down to bytes 1 KiB to 29 KiB): that is a 28 KiB image
and the banks inside a 29 KiB or 32 KiB image. In a 24 KiB image an access to $1FF4 does nothing; a write to it is ignored
either way. In 29 KiB and 32 KiB images the
first 1 KiB is ARM code for the Harmony and the banks are the bytes from 1 KiB to 29 KiB; the last 3 KiB of the 32 KiB form is zeros (that is how Stella
recognises it). Start bank 0.
F6
16 KiB, four 4 KiB banks, selected by $1FF6 to $1FF9 (bank 0 to 3). Start bank 0. SuperChip possible.
F4
32 KiB, eight 4 KiB banks, selected by $1FF4 to $1FFB (bank 0 to 7). Start bank 0. SuperChip possible.
F0 (Megaboy)
64 KiB, sixteen 4 KiB banks. There is a single hotspot, $1FF0: touching it moves on to the next bank (after bank 15
comes bank 0). 6502.ts starts in bank 0, Stella in bank 15. Because every touch advances the bank, a disassembly cannot say which bank an address
belongs to without knowing how many times the program touched it.
Evidence that it is an increment at $1FF0 (stage 17). Kevin Horton’s 1997 Cart Information V6.00 (qotile.net/minidig/docs/sizes.txt), which does not copy an emulator, describes the Dynacom Megaboy cartridge in the same terms: 16 banks of 4 KiB, “accessing 1FF0 will increment the current bank”, the program keeps the bank number in $1FEC and a loop at $1FE0 compares it with the accumulator and stores to $1FF0 until they are equal. The real dump (MegaBoy, 65536 bytes) has exactly that code at $1FE0 in every bank I read (banks 0, 1 and 15): CMP $FFEC; BEQ +6; STA $FFF0; JMP $FFE0; RTS, and the byte at $1FEC is the bank’s own number (0, 1 and 15). A program that loops on a store to $1FF0 until the bank number matches only works if each store advances by one bank; this is game-ROM analysis and agrees with Stella and javatari. MAME’s rule ($1FF0-$1FF1 and $1FF8-$1FF9 over four banks) is therefore the odd one out; MAME still runs MegaBoy to 218 of 223 identical pixel-run rows at frame 300 against Stella with a 5-row shift (the five rows that differ were not traced). What the ROM does not show is whether a program ever steps past bank 15 and relies on the wrap to bank 0.
EF
64 KiB, sixteen 4 KiB banks, selected by $1FE0 to $1FEF (bank 0 to 15, the low four bits of the address). 6502.ts starts
in bank 15; Stella’s EF starts in bank 1. Detection: the last 8 bytes spell EFEF or EFSC, or the code has a
NOP or LDA of $FFE0 or $1FE0.
EFSC
EF with the SuperChip RAM; Stella starts in bank 15.
EFF
EF ($1FE0-$1FEF) with an on-board 24LC16B EEPROM on two address lines: $1FF0 drives the I2C clock line low and
$1FF1 high, $1FF2 the data line low and $1FF3 high; a read of $1FF4 returns the data line. Stella
starts in bank 1. It finds EFF by the text EFFB in the last 8 bytes, or by a NOP $FFE0, a NOP $1FF0 and an
LDA $1FF4 all being present.
DF
EF with a wider window: 128 KiB, thirty-two 4 KiB banks, $1FC0 to $1FDF select bank 0 to 31 (the low five bits of the
address). Stella starts in bank 15. Newer images carry the text DFDF in the last 8 bytes.
DFSC
DF with the SuperChip RAM; the text is DFSC.
BF
256 KiB, sixty-four 4 KiB banks: $1F80 to $1FBF select bank 0 to 63 (the low six bits). Stella starts in bank 1. The text
BFBF is in the last 8 bytes.
BFSC
BF with the SuperChip RAM; the text is BFSC; Stella starts in bank 15.
E0 (Parker Brothers)
8 KiB as eight 1 KiB banks. The window is four 1 KiB slices. The last slice, $1C00-$1FFF, is always bank 7. The first
three show any bank: $1FE0-$1FE7 choose the bank in $1000-$13FF, $1FE8-$1FEF in $1400-$17FF
and $1FF0-$1FF7 in $1800-$1BFF (the low three bits of the address are the bank number). At start 6502.ts shows
bank 7 in all four slices; Stella shows banks 4, 5 and 6 in the first three. The explorer lists the eight banks and disassembles each at the start of the window.
03E0 (Brazilian Parker Brothers)
The same four 1 KiB slices as E0 and the same eight 1 KiB banks, with the last slice fixed to the last bank, but the hotspots are in the TIA mirror at
$0380-$03FF (read or write). The low three bits of the address are the bank number; which slice changes depends on three
address bits being clear: A4 ($03E0) loads slice 0 ($1000-$13FF), A5 ($03D0) loads slice 1 ($1400-$17FF),
A6 ($03B0) loads slice 2 ($1800-$1BFF); an access that clears several of them loads several slices. Stella starts with banks 4, 5
and 6 in the first three slices. It recognises 03E0 by ORA $03E0; ORA (Popeye) or LDA $03E0; LDA (Montezuma’s Revenge).
E7 (M-Network)
16 KiB as eight 2 KiB banks, with RAM. The lower half of the window, $1000-$17FF, shows bank 0 to 6 (hotspots
$1FE0-$1FE6) or 1 KiB of RAM ($1FE7; write port $1000-$13FF, read port $1400-$17FF as the
usual description says). The upper half, $1800-$1FFF, is bank 7 always, with its first 256 bytes replaced by one of four
RAM banks ($1FE8-$1FEB; write port $1800-$18FF, read port $1900-$19FF, which is Kevin Horton’s
description as Stella quotes it). The vectors are in bank 7. Stella starts in bank 0.
E7, 8 KiB form (E78K)
Four 2 KiB banks. Stella switches the first half with $1FE4 to $1FE7, the bank being the low two bits of the address, so
$1FE7 is the RAM (the fourth number). The last bank is fixed at $1800-$1FFF and the four RAM banks are selected by
$1FE8-$1FEB as in E7. Stella detects it by an LDA $FFE4, LDA $FFE5 or LDA $FFE6.
E7, 12 KiB form (E712K)
Six 2 KiB banks. Stella maps $1FE0 to $1FE7 through the table 0, 1, 0, 1, 2, 3, 4, 5 (the bank for $1FE7 is 5, the
RAM bank). The last bank is fixed at $1800-$1FFF; the RAM banks are $1FE8-$1FEB.
3F (Tigervision)
2 KiB banks. A write to $003F, an address inside the TIA that the TIA ignores, chooses the bank shown at
$1000-$17FF; the last bank is fixed at $1800-$1FFF. Stella accepts a write to any address from
$0000 to $003F (the games use $3F), and takes the value modulo the number of banks (with an 8 KiB ROM, four
banks). The scheme supports up to 512 KiB. Both cores start with bank 0.
3E
As 3F, plus RAM: a write to $003F selects a ROM bank, a write to $003E selects one of up to 32 RAM banks of 1 KiB
in the same place: the read port is the first 1 KiB of the window ($1000-$13FF) and the write port the second
($1400-$17FF). Stella numbers the RAM banks after the ROM banks. The explorer disassembles the ROM banks only.
3EX
3E with up to 256 RAM banks of 1 KiB (256 KiB) instead of 32. The protocol is the same ($3E selects a RAM bank, $3F a ROM bank). The number of RAM banks
minus one is the byte at $FFFA, the sixth from the end of the image. Stella detects it by the text 3EX at least twice.
3E+
Four 1 KiB segments with any bank in any segment. A write of a byte to $003F puts ROM bank (byte and $3F) into the segment
numbered by the top two bits of the byte (0 = $1000, 1 = $1400, 2 = $1800, 3 = $1C00); a write to
$003E does the same with a 512-byte RAM bank (the RAM’s write port is at +$0200 inside the segment). Up to 64 KiB of ROM and 32 KiB of RAM.
At power-up segment 3 holds the first 1 KiB of the image, so the reset vectors are at the end of the first kilobyte; the other segments are
random in Stella. The text TJ3E in the ROM marks the scheme.
FE (Activision)
8 KiB, two 4 KiB banks, with no hotspot address: the program switches by pushing or pulling the return address on the stack, and the
cartridge watches the bus. After an access to $01FE the data byte that follows chooses the bank: Stella takes its top three
bits (D7, D6, D5), inverts them and uses the result as the bank number (111 gives bank 0, 110 bank 1, up to eight banks in the original
patent); 6502.ts looks at bit 5 only, which is the same for the two-bank cartridges that exist. Activision used it, for example, for Robot Tank and
Decathlon (Stella’s header). That is why a disassembly of such a ROM is only meaningful bank by bank.
UA (UA Limited)
8 KiB, two 4 KiB banks: touching $0220 selects bank 0 and $0240 bank 1 (addresses of the RIOT RAM mirror). Stella compares
(address and $1260), so mirrors of those two addresses also work (the Brazilian cartridges use $02A0 and $02C0).
Both cores start in bank 0.
UASW
UA for images dumped with the banks in the opposite order: $0220 selects bank 1 and $0240 bank 0.
0840 (Economy Banking)
8 KiB, two 4 KiB banks: an access to an address whose bits give $0800 under the mask $1840 selects bank 0, one that gives
$0840 selects bank 1 (a read or write, in the address range below the cartridge window).
0FA0 (Fotomania)
A Brazilian 8 KiB scheme: two 4 KiB banks. The hotspots are in the TIA mirror and are matched by bits: an access whose address and $16E0 is
$06A0 selects bank 0, and one that gives $06C0 selects bank 1. The addresses the games use are $0FA0 and
$0FC0 (and $EFA0 and $EFC0, the same on the 13-bit bus). Stella’s header comment gives the mask as
$16A0; its code uses $16E0 and this page follows the code. Stella starts in bank 1; it recognises the scheme by
BIT $0FC0, STA $0FC0, LDA $0FC0 or BIT $EFC0.
WF8 (Coleco)
An F8 variant of some Coleco 8 KiB cartridges with one hotspot: a write to $1FF8 selects the bank from the value written,
bit 2 of it (0 gives bank 0, 1 bank 1). Stella’s header comment says bit D3; its code tests bit 2 and this page follows the code. $1FF9
does nothing. Checked on 3 December 2026 by running the real Zaxxon wF8 dump (the AtariAge attachment whose MD5 Stella’s database lists as WF8) and a
test ROM in Stella 8.0 and in Gopher2600 0.50: both show the same picture, and both switch on a write of $00 or $04 to $1FF8 and ignore
$1FF9. They differ on a read of $1FF8: Stella always selects bank 0, Gopher2600 takes bit 2 of the ROM byte on the data bus.
The Zaxxon dump only writes (STA $FFF8), so what a read does is not settled.
JANE (Tarzan prototype)
Four 4 KiB banks selected by four separate hotspots: $1FF0 bank 0, $1FF1 bank 1, $1FF8 bank 2, $1FF9
bank 3. Stella starts in bank 1 and recognises it by LDA $FFF1; RTS. “JANE” is the name Stella gave a prototype with no known scheme name.
FC (Amiga Power Play)
A multicart of up to eight 4 KiB games (32 KiB) with a two-step switch: a write to $1FF8 stores the low two bits of the target bank
(value and 3), a write to $1FF9 adds the value times four (taken modulo the number of banks; when the value times four is past the last bank, the value
itself is the bank), and any access to $1FFC then switches. The size is rounded up to a power of two. Start bank 0.
SB (SUPERbanking)
128 KiB (32 banks) or 256 KiB (64 banks) of 4 KiB banks. The hotspots are below $1000: an access to $0800-$0FFF (address and
$1800 = $0800) selects the bank given by the low bits of the address, five of them for 128 KiB ($0800-$081F) and six for
256 KiB ($0800-$083F); the block repeats every 256 bytes up to $0FFF. Stella starts in the last bank. It has no signature: a
128 KiB or 256 KiB ROM that matches nothing else is taken as SB.
X07 (Supercat and batari)
64 KiB, sixteen 4 KiB banks, hotspots below $1000 of two kinds. First, an address with (address and $180F) = $080D
selects the bank given by bits 7 to 4: $080D bank 0, $081D bank 1, up to $08FD bank 15. Second, while bank 14 or 15 is
mapped, almost any TIA access (A12, A11 and A7 clear) switches between those two by bit 6 of the address. Start bank 0. Stella finds it by
LDA or NOP of $080D, $081D or $082D.
The ARM code of Harmony and Melody cartridges
DPC+, CDF, CDFJ, CDFJ+, BUS and CTY images contain code for the ARM chip of the Harmony or Melody cartridge. Stella runs it with an ARM emulator (Thumbulator) that treats the whole image as the ARM’s ROM from address 0 and gives each scheme an entry address, read here from the constructors in CartDPCPlus.cxx, CartCDF.cxx and CartBUS.cxx:
| Scheme | ARM code in the file | C base | C start (entry) |
|---|---|---|---|
| DPC+ (32 KiB) | 3 KiB driver, then the program in the first 4 KiB bank | $0C00 | $0C08 |
| CDF, CDFJ | 2 KiB driver, then 2 KiB of C code | $0800 | $0808 (skips the ARM header) |
| CDFJ+ | 2 KiB driver (in the three real ROMs read, 32, 64 and 128 KiB, it starts with the same ARM-state vector table as the others); the C code is wherever the word at file offset $17F8 says, bit 0 cleared (in all three the bit is set: Thumb state, and the code is Thumb-2); the stack is the word at $17F4 ($40001FDC, $40003FDC and $40003FDC in the three) | that word | that word |
| BUS (BUS1 and later) | 2 KiB driver, the program after it | $0800 | $0808 |
| BUS0 | 3 KiB driver, the program after it | $0C00 | $0C08 |
| CTY | bank 0 of the eight 4 KiB banks; the 6502 never sees it (Stella: “Bank 0 is ARM code and not actually accessed”). In the real 60 KiB Chetiry build made for Stella it holds an ARM-state vector table of ldr pc, [pc, #n] words and the driver after it; in the real 32 KiB build it is only filler ($00 for 256 bytes, then $FF) | – | – |
In the constructors the ARM stack is given as $40001FFC for all of them except CDFJ+, where it is the word at $17F4. What the real DPC+ ROM 4p Surround (a batari Basic game, 32 KiB, samples/a26/real/arm) shows: the first words are the ARM exception vectors in ARM state (mov pc, #$4C and mov pc, #$30, and the constant $10ADAB1E of the random number at $20), the driver is ARM-state code, and the C base at $C00 holds the ARM pair add r0, pc, #1 and bx r0 that switches to Thumb state at $C08, where the game’s Thumb code runs. The driver’s jumps and pointers use the RAM copy of the driver ($40000000 plus the file offset). The explorer therefore separates code from data by following the code from those entry points (the option Code / data; Disassemble every byte shows the plain Thumb view): ARM and Thumb code, pc-relative literal words and tables are told apart, a literal that is an odd address inside the image is taken for a pointer to Thumb code, and a branch lands in the same state. Not followed exactly: a jump through a register (bx of a register other than the add/bx pair, ldr pc, [r9, r2, lsl #2]). A guess covers jump tables: a run of at least 8 aligned words that are all addresses in the RAM copy of the driver is taken for a table of jump targets; the words are shown as data and the addresses they hold are followed as code. In the real ROM this finds one table of 128 words at $994 and the walk then reaches 1,944 bytes of ARM and 1,896 of Thumb in the first 7 KiB (656 and 1,894 without the guess). A data table that happens to look like addresses would be taken for code; the guess is on by default in the explorer and is a guess, not a statement of what the driver does. Code that is reached only through other registers stays data. Second source and more real ROMs. The Gopher2600 emulator (version 0.50.0, GPL 3, samples/a26/sources/Gopher2600-0.50.0-src.zip, read as text) agrees with Stella: its CDF code (hardware/memory/cartridge/cdf/version.go, static.go) places the 2 KiB driver at the start of the ROM and the custom ARM ROM at offset $800, with the ARM entry (link register) at $800 and the program counter at $808 (CDFJ+: both from the word at $17F8 with bit 0 cleared, and the stack from the word at $17F4); its DPC+ code (dpcplus/static.go) takes a 3 KiB driver and the custom ROM after it, with the entry at the custom origin plus 8; and it takes the whole rest of the file after the driver as the ARM program’s ROM, which is why the explorer’s ARM region for CDF and BUS is the whole image and for DPC+ the driver and the six banks. The real Galaga demo by Champ Games (a CDFJ ROM, samples/a26/real/arm) has the ARM vector table at $0 (mov pc, #$40, mov pc, #$30) and, at the C base $800, the same pair add r0, pc, #1 and bx r0 that switches to Thumb at $808; the walk reaches about 10 KiB of Thumb code beyond the first 4 KiB of that ROM, so the C code is not limited to the 2 KiB after the driver. Four real BUS ROMs (two BUS1, one BUS2, one BUS3, 32 KiB each; the first BUS1 driver has an ARM vector table of ldr pc, [pc, #n] words, the others mov pc, #n) have the same trampoline at $800, which confirms the entry points of BUS. Three real CDFJ+ ROMs (32, 64 and 128 KiB) have the same ARM-state vector table in their driver and a Thumb-2 C program at the word at $17F8; the decoder agrees with llvm-mc on every instruction count in them at the ARMv7-A level, which has both states. For BUS0 (the first form of BUS, with a 3 KiB driver) no real ROM was found, so its entry points at $C00 and $C08 are Stella’s numbers only. Real ELF cartridges (two of them) are object files whose .text sections are shown as Thumb code. Like the other ARM viewers it decodes every halfword position and lays overlapping decodes out in columns. The code is not run. The instruction set level: Gopher2600 runs the Harmony cartridge as an ARM7TDMI (ARMv4T) and the PlusCart as ARMv7-M, so the explorer decodes DPC+, CDF and BUS as ARMv4T and CDFJ+ as ARMv7E-M (a superset of ARMv7-M); Stella’s own header says the ELF cartridge runs on a Cortex-M0. Which instruction set a given real ROM needs is not in the file. Tested with a small Thumb program assembled with LLVM (samples/a26/thumb-test.s) and put at each entry address: the decoder and llvm-objdump agree on every instruction.
MC (Chris Wilkson’s Megacart)
Not a Stella cartridge type and not detected or modelled by this explorer; described here from Kevin Horton’s document, which quotes the Megacart Specification, Rev 1.1 (© 1997 Chris Wilkson). Up to 128 KiB of ROM and 64 KiB of RAM. The window is four 1 KiB slots, each chosen by writing to one address: $3C for $1000-$13FF, $3D for $1400-$17FF, $3E for $1800-$1BFF, $3F for $1C00-$1FFF. The value written chooses what appears: $00-$7F one of 128 ROM banks of 1 KiB, $80-$FF one of 128 RAM banks of 512 bytes (the lower 512 bytes of the slot are the write port and the upper 512 the read port). Because memory is random at power-up, hardware forces slot 3 to ROM block $FF right after any read or write of the reset vector at $FFFC-$FFFD, and releases it when the program jumps out of the boot code. Horton doubts that this is practical to build: watching the address bus alone cannot tell when to release slot 3, so a real cartridge would have to ignore accesses to $3C-$3F, while an emulator can watch the program counter instead.
WD (Wickstead Design)
A prototype with eight 1 KiB banks and 64 bytes of RAM. A read of $0030 to $003F in the TIA address space (the low three bits of the
address choose; $38-$3F repeat $30-$37) selects one of eight arrangements of the four 1 KiB segments, listing the bank in
segment 0, 1, 2, 3: arrangement 0: banks 0,0,1,3; 1: 0,1,2,3; 2: 4,5,6,7; 3: 7,4,2,3; 4: 0,0,6,7; 5: 0,1,7,6; 6: 2,3,4,5; 7: 6,0,5,1. The switch happens
after at least three more cycles. The 64 bytes of RAM are at $1000-$103F (read) and $1040-$107F (write), which hides the first 128 bytes of
segment 0. The explorer lists the eight banks and reads the vectors from bank 3 (the last segment of arrangement 0); the option WD arrangement in the options bar shows
instead the four banks of one arrangement in their four segments (arrangement 0 to 7, the hotspot $30 to $37), with the vectors read from segment 3. Stella finds WD by LDA $39; JMP. The one real WD dump, the Pink Panther prototype (8 KiB, samples/a26/real/homebrew/wd-Pink-Panther-prototype.bin), is a normal cartridge of this kind linked at $D000: the 13-bit address bus makes $D400 the same as $F400, its vectors sit in the last 1 KiB segment (arrangement 0, segment 3) and the reset vector $D400 points into segment 1, which holds bank 0 (the same bank as segment 0). So the vector and the code it reaches are in different banks; the code walk follows a vector that points outside its own bank into every bank whose window has the address, and finds 5,044 code bytes with the plain walk and 5,433 with guesses.
WDSW: the swapped dump
A file of 8195 bytes (8 KiB and 3) is a bad dump of the same cartridge. Stella loads it by swapping banks 2 and 3: the 1 KiB block at file offset $800 becomes bank 3 and the block at $C00 bank 2 (the other blocks keep their places), and
it ignores the 3 bytes after the 8 KiB. The explorer applies the swap: the tree and the banks table name each bank and the file offset it comes from, the three extra bytes are a node of their own, and the vectors are read from the real bank 3 (the block at $800).
MDM (Menu Driven Megacart)
A multicart by Edwin Blink: 4 KiB banks, up to 128 of them (512 KiB). An access to $0800-$0BFF (address and $1C00 =
$0800) selects the bank given by the low byte of the address; a bank number of 128 or more locks bank switching until the machine is reset.
The text MDMC is in the first 8 KiB of the ROM.
TV Boy
A handheld with 128 games: 512 KiB as 128 banks of 4 KiB. An access to $1800-$187F selects the bank whose number is the low seven bits of the address
and locks bank switching until the next hardware reset (a switch to bank 0 does not lock). Stella recognises it by STA ($82),Y; JMP ($FFFC).
Checked on a real dump. The 524288-byte image TV Boy II (archive.org item tv-boy-ii-1992-akor, MD5 1b5a8da0622bffcee4c5b42aed4e0ef0) was walked with this site’s 6502 decoder from the reset vector of bank 0 (the menu, reset $FD7A, 538 instructions reached). The menu code copies a 15-byte routine into zero page at $0086 (the bytes at $FBF9: LDA #$F8; STA $83; LDA $80; STA $82; LDY #$00; STA ($82),Y; JMP ($FFFC)) and jumps to it (JMP $0086 at $FBF6). So the program stores the selection number from $80 to the address $F8nn (which is $18nn on the 13-bit bus), where nn is the same number, and then restarts through the reset vector of the new bank. The routine runs from RAM because the bank under the program changes at the store. It is the only copy of this routine in the 512 KiB (a byte search for the first seven bytes finds it once, in the two mirrored halves of bank 0), and when every one of the 128 banks was walked from its own reset and interrupt vectors, the only stores above $00FF were STA $F000,X in banks 9 and 40 (an indexed store into $1000-$10FF, where a SuperChip-style RAM write port would be; not in $1800-$1FFF), so no game bank switches by a store. Because the address and the data written are the same number, this code does not show whether the real hardware takes the bank from the address (as the rule above) or from the data (as MAME’s driver does); both give the same bank for this program. The lock until reset is not shown by the code.
CV (CommaVid)
A 2 KiB ROM at $1800-$1FFF and 1 KiB of RAM in $1000-$17FF (read port $1000-$13FF, write port
$1400-$17FF). No bank switching. A 4 KiB CV file has a RAM image in its first 1 KiB (MagiCard listings). Stella finds the scheme by
STA $F3FF,X or STA $F400,Y. Checked against Stella’s CartCV.hxx and .cxx.
DPC (Pitfall II)
Two 4 KiB program banks switched like F8 ($1FF8, $1FF9), then 2 KiB of display data that only the DPC chip reads. The
explorer shows the two banks as code and the display data as data. The chip’s registers occupy $1000-$107F (David Crane’s
patent 4,644,495 describes the chip); Stella’s code gives the decode:
| Address | Access | Function (address bits 5 to 3) |
|---|---|---|
| $1000-$103F | read | 0: random number (fetchers 0 to 3) or the music amplitude (fetchers 4 to 7); 1: display byte; 2: display byte ANDed with the flag; 7: the flag; the fetcher is the low three bits of the address |
| $1040-$107F | write | 0: top count; 1: bottom count; 2: counter low byte; 3: counter high (3 bits) and, for fetchers 5 to 7, the music-mode bit (bit 4); 6: reset the random number generator |
There are eight data fetchers. A read counts the selected fetcher’s 11-bit counter down (except a music fetcher in music mode), the display data is read
backwards (byte 2047 minus the counter), and the flag is set to $FF when the low byte of the counter equals the top count and to
$00 when it equals the bottom count. Stella starts in bank 0 and 6502.ts in bank 1. The named registers, the random number generator and the music
mode are in the register tables below.
DPC random number generator
An 8-bit shift register. At each step it shifts left one place and the new low bit is the inverse of the exclusive-or of its old bits 7, 5, 4 and 3
(Stella tabulates this as a 16-entry table indexed by those four bits). A write to $1070 to $1077 (function 6) sets the register to 1.
A read of fetchers 0 to 3 at function 0 returns the register. The real chip steps it continuously; Stella steps it on every access to the chip and its hotspots,
which is an approximation, so a program that depends on the exact sequence after a given number of cycles is not described.
DPC music mode
Fetchers 5, 6 and 7 can be used as three square-wave oscillators: writing the counter high byte (function 3) with bit 4 set puts the fetcher in music mode
(bit 4 clear takes it out). A music fetcher no longer steps its counter on reads. It counts its low byte down by itself at the chip’s oscillator rate (Stella takes
the rate from a setting, so it is not a property of the file), wrapping from 0 back to the top count; a write of the counter low byte loads it with the top
count, not the value written. Its flag is $00 while the low byte is at or below the bottom count and $FF while it is above that and at or below
the top, which makes the square wave: the top sets the period and the bottom the duty. A read of function 0 at fetchers 4 to 7 returns the mixed level: bits
0, 1 and 2 of an index are set for each of fetchers 5, 6 and 7 that is in music mode with its flag set, and the level is entry index of the table
$00, $04, $05, $09, $06, $0A, $0B, $0F (a 4-bit value for AUDV).
What Kevin Horton’s description adds (and where it differs from Stella)
Horton’s document (read in full on 2026-11-25) describes the real chip from the patent and his own tests of a Pitfall II cartridge. Where Stella does less than the chip, or the two differ:
- The six read formats. Each set of eight addresses returns the byte at its fetcher’s pointer (and then steps the pointer down) in a different form. For the byte
ABCDEFGH(bit 7 first):$1008-$100Fthe byte as it is, never masked;$1010-$1017the byte ANDed with the mask flag;$1018-$101Fnibbles swapped,EFGHABCD, masked;$1020-$1027bit reversed,HGFEDCBA, masked;$1028-$102Fshifted right one bit,0ABCDEFG, masked;$1030-$1037shifted left one bit,BCDEFGH0, masked;$1038-$103Fthe mask flag itself ($00or$FF). In the page’s function numbers (address bits 5 to 3) these are functions 1, 2, 3, 4, 5, 6 and 7. Stella implements functions 0, 1, 2 and 7 only and returns 0 for 3 to 6; Pitfall II does not use them. - The mask flag. Horton: the flag is set when the pointer’s low byte equals the start count (
$1040, Stella’s top) and cleared when it equals the end count ($1048, Stella’s bottom), and writing the start count also sets the flag. Stella agrees on the first two, but its write of the top count sets the flag to$00, the opposite of Horton. The difference is visible only to a program that writes the start count and reads the flag before the pointer reaches either count. - Pointer width. Horton: the fetcher pointer is 12 bits (the low 8 bits at
$1050-$1057and the upper 4 at$1058-$105F); the 2 KiB ROM only needs 11 and Stella keeps 11 (the high byte ANDed with 7). In$105D-$105Fthe layout isxxSM PPPP:S(bit 5) chooses whether the fetcher is clocked by reads (0) or by the music oscillator (1),M(bit 4) is music mode,Pthe pointer’s upper bits. Horton does not know why they are separate bits and normally both are set to make music; Stella only modelsMand assumes the oscillator clock. - Draw line. The chip also has a draw-line unit for curved lines with a missile:
$1060-$1067write the movement value (MOVAMT),$105Ccarries its enable (together with the high bits of fetcher 4’s pointer; Horton does not say which bit), and reads at$1004-$1007return a value combining the music level with MOVAMT ANDed with the draw-line carry (with the draw-line add at$1004-$1005, without it at$1006-$1007). Horton did not research it and Pitfall II does not use it; Stella does not model it. - Random number generator. Horton:
LFSR = ((LFSR << 1) | (~(((LFSR >> 7) ^ (LFSR >> 5)) ^ ((LFSR >> 4) ^ (LFSR >> 3))) & 1)) & 0xFF(the rule on this page), clocked on every read of it, 255 states, the illegal state being all ones; the reset$1070-$1077clears it to all zeros, where Stella sets it to 1 (and steps it on every chip access instead of every read). Pitfall II uses it only for the flashing eel. - Address space. Because the chip passes the chip-enable on to the 2 KiB ROM it can address only 2 KiB, so Horton says the chip appears twice, at
$1000-$107Fand again at$1800-$18FF; Stella decodes the chip at$1000-$107Fonly. - Music pitch. The oscillator is an RC circuit on the die with an external 560 kΩ 5 % resistor, so no cartridge has the same pitch; touching the resistor changes it. The patent’s preferred frequency is 42 kHz (range 15 to 80 kHz); Horton chose 21 kHz because it sounds close to his cartridge. The music table of Horton’s document lists the same eight levels as Stella’s (
0 4 5 9 6 A B F), but his column header reads “fetcher 567” with001giving 4, which, if the digit order is fetcher 5, 6, 7, would mean fetcher 7 alone gives 4; Stella gives 4 for fetcher 5 alone. His document does not say which order he means, so this page keeps Stella’s.
What the patent settles (US 4,644,495, read in full, drawings included)
David Crane’s patent US 4,644,495 (filed 1984, granted 17 February 1987; read from Google Patents, text and the ten sheets of drawings) is a hardware document from the chip’s designer, not a program or an emulator. It settles several points that Horton’s description and Stella leave open:
- Read functions 3 to 6. Table 1 lists, for each fetcher, the reads
$1008to$103Fin eight groups: display data ($1008), display data ANDed with the flag ($1010), the same “nibbles swapped” ($1018), “byte reversed” ($1020), “rotated right” ($1028), “rotated left” ($1030) and the flag ($1038). Sheet 10 of the drawings (FIG. 11A to 11D) shows what these do to the byteb7..b0: swapped givesb3 b2 b1 b0 b7 b6 b5 b4, reversed givesb0 b1 b2 b3 b4 b5 b6 b7, shift right gives0 b7 b6 b5 b4 b3 b2 b1, shift left givesb6 b5 b4 b3 b2 b1 b0 0(the drawing reads “shift”, the table says “rotated”; the drawing shows a zero entering, as Horton says). Figures 9 and 10 (output logic) show that all of functions 2 to 6 are ANDed with the flag. So Horton’s six formats are right, and Stella, which returns 0 for functions 3 to 6, is incomplete; the table above lists them as defined by the patent, and Pitfall II does not use them. - Music mixing order. FIG. 12 (sheet 6) tabulates the 4-bit amplitude for the three one-bit voice outputs SIN5, SIN6 and SIN7 with the weights 4, 5 and 6 (decimal) added together:
000gives 0, SIN5 alone 4, SIN6 alone 5, SIN5+SIN6 9, SIN7 alone 6, SIN5+SIN7 A, SIN6+SIN7 B and all three F. So fetcher 5 alone gives 4, which is Stella’s order ($00, $04, $05, $09, $06, $0A, $0B, $0F); the doubt about Horton’s column header is settled in Stella’s favour. - Oscillator. The music-mode fetcher is clocked either by the normal clock or, when bit 5 (WDB5) of the counter-high write is 1, by an asynchronous free-running
OSCclock, “42 kHz in the preferred embodiment” and said to be anywhere from 15 kHz to 80 kHz. In music mode the counter counts from the top count down to$FFand reloads from the top register; the output is the flag, so top and bottom give period and duty. A sound value is polled at$1004to$1007and the amplitude changes about 15,750 times a second. The real pitch depends on the RC circuit (Horton), so the patent’s 42 kHz is the design value, not a measured one. - Random number generator. FIG. 8 shows an 8-bit shift register whose input is the inverted exclusive-or of the exclusive-ors of bits 7 and 5 and of bits 4 and 3 (the rule on this page), and the text says it is clocked “every time the cartridge system is selected by the CS signal”, that is on every access to the chip, as Stella does and not only on reads as Horton says. Table 1 gives the reset at
$1070to$1077but the patent states no reset value, so the reset value (Stella 1, Horton 0) stays between the two sources. - Draw-line unit. The patent describes a straight line of a given slope (not curves): fetcher 4 is initialised during vertical blank, a read of
$1004or$1005performs a draw line add (the adder adds the top register to its latch), an overflow produces the carry DLC, and the value read in the high nibble is the 4-bit MOVAMT register ANDed with DLC (zero when there is no carry), with the sound level in the low nibble;$1006and$1007return the same without the add.$105Cis “DF4 counter high AND draw line enable”; the patent does not say which bit is the enable. Fetchers 5 to 7 counter-high ($105Dto$105F) carry the music-enable bit.
DPC+
An enhanced DPC on a Harmony cartridge with an ARM processor. The 32 KiB image is 3 KiB of ARM driver, six 4 KiB banks of 6502 code ($1FF6 to
$1FFB select bank 0 to 5), 4 KiB of display data and a 1 KiB frequency table; a 29 KiB image is the same without the driver. Stella starts in bank 5.
Detection: the text DPC+ twice (32 KiB), or 29 KiB without the ARM loader pattern. The chip’s registers (eight fetchers, three music
channels, a 32-bit random number generator, fast fetch, the function call that runs the ARM program) are in the register tables.
The 3 KiB driver is copied to the Harmony cartridge’s RAM; the display data and the frequency table are copied there too at reset (the 5 KiB after the six banks);
the chip’s data fetchers address that RAM. Stella tells four versions of the driver apart by the MD5 of the first 3 KiB (a “jitter” and a “stable”
behaviour of the fractional pointer; two of them are not compatible with the Encore).
CDF, CDFJ
An ARM-assisted scheme for C programs: 32 KiB, the first 4 KiB the ARM driver (2 KiB) and C code (2 KiB), then seven 4 KiB banks. $1FF5 to
$1FFA select banks 0 to 5, $1FFB (and $1FF4) bank 6, where it starts. The CDFJ+ form (64 to 512 KiB) uses
$1FF4 to $1FFA for banks 0 to 6, starts in bank 0 and has a 2 KiB driver: see CDFJ+. The text CDF
appears at least three times in a CDF ROM, or PLUSCDFJ in a CDFJ+. Stella tells the versions apart by the byte after the three CDFs (found on a
4-byte boundary in the first 2 KiB of the driver): J ($4A) is CDFJ, 0 is the first CDF (CDF0), anything else CDF1. The six-register
interface and the data streams are in the register tables.
CDFJ+
The CDF scheme for bigger images: 32 KiB, or 64, 128, 256 and 512 KiB on hardware with a bigger ARM chip (16 or 32 KiB of RAM). The image is a 2 KiB driver
(not 4 KiB: the C code follows the banks), then seven 4 KiB banks of 6502 code, then the ARM C code and data. $1FF4 to $1FFA select banks 0 to 6,
$1FFB bank 0; it starts in bank 0. Stella finds it by the text PLUSCDFJ followed by the number 1 (a 32-bit little-endian word) in the first 2 KiB.
The data stream pointers use 16-bit integer parts (the table in the registers section), the driver can also override LDX # and LDY # as fast
fetches and an offset can be set for the fast fetchers. Two driver versions exist for different ARM chips; the 6502 side is the same.
BUS (Bus Stuffing)
An experimental ARM scheme (Stella says it may be removed). In its common form (BUS1 and later) the first 4 KiB is the ARM driver (the driver itself is 2 KiB) and there are
seven 4 KiB banks selected by $1FF5 to $1FFB (bank 0 to 6), starting in bank 6. The text BUS and a zero byte is in the driver; where
in the driver tells the version: at $7F4 BUS1, at $778 BUS2, at $770 BUS3, elsewhere BUS0 (see BUS0). Registers and
“bus stuffing” (the ARM driving a byte onto the 6507’s data bus on a timed cycle, for a STY zero-page store or a fast jump) are in the
register tables.
BUS0
The first form of BUS, from demos made while the scheme was changing (Stella says it does not support it, but its code handles it): a 3 KiB ARM driver, six 4 KiB banks
selected by $1FF6 to $1FFB (bank 0 to 5), starting in bank 5, and the 5 KiB after the banks, which Stella does not read (the display data is in RAM at
$0C00 of the Harmony RAM). The data stream tables are at other places in the driver RAM ($0AE0, $0B20, $0B64) and the
registers are at $1000-$103F (the register tables). Any driver whose text BUS is not at one of the three offsets above is taken for BUS0.
Chip registers of DPC, DPC+, CDF and BUS
The ARM-assisted cartridges let the 6502 reach a chip through ordinary reads and writes of cartridge addresses. The tables are read from the text of Stella’s
cartridge classes; the viewer names these addresses in the disassembly and describes the access in the note of each instruction. Names marked # take the fetcher
or stream number from the address (the low three bits for DPC and DPC+, the offset into the range for the others). The ARM programs themselves are not described.
DPC
| Address | Access | Name | What |
|---|---|---|---|
| $1000-$1003 | read | RANDOM# | next byte of the 8-bit random number generator |
| $1004-$1007 | read | AMPLITUDE# | the music level of fetchers 5, 6 and 7 |
| $1008-$100F | read | DF#DATA | display byte at (2047 minus the counter); the counter goes down by one |
| $1010-$1017 | read | DF#DATAW | the same byte ANDed with the fetcher’s flag |
| $1018-$1037 | read | read as 0 (functions 3 to 6) | |
| $1038-$103F | read | DF#FLAG | the fetcher’s flag, $FF or $00 |
| $1040-$1047 | write | DF#TOP | top count (clears the flag) |
| $1048-$104F | write | DF#BOT | bottom count |
| $1050-$1057 | write | DF#LOW | counter low byte (music mode: loaded from the top count) |
| $1058-$105F | write | DF#HI | counter high 3 bits; fetchers 5 to 7: bit 4 is the music-mode bit |
| $1070-$1077 | write | DPCRANDRST | resets the random number generator to 1 |
Every other write address in $1060-$106F and $1078-$107F does nothing. After a read of fetchers 0 to 4, or 5 to 7 when not in music mode, the counter is stepped (down by one, 11 bits).
DPC+
Reads are $1000-$1027 (function = address bits 5 to 3, fetcher = bits 2 to 0); writes are $1028-$107F (function = (address − $28) / 8). The fetcher counter is 12 bits and counts up; the display data is addressed directly (not backwards as in DPC). The fractional pointer has 20 bits (the top 12 address the data) and its increment is 8 bits.
| Address | Access | Name | What |
|---|---|---|---|
| $1000 | read | RANDOM0NEXT | steps the random number and returns byte 0 |
| $1001 | read | RANDOM0PRIOR | steps it back and returns byte 0 |
| $1002-$1004 | read | RANDOM1, RANDOM2, RANDOM3 | bytes 1, 2 and 3 of the random number |
| $1005 | read | AMPLITUDE | the music level: sum of three waveform samples |
| $1008-$100F | read | DF#DATA | display byte at the counter; counter + 1 |
| $1010-$1017 | read | DF#DATAW | that byte ANDed with the flag; counter + 1 |
| $1018-$101F | read | DF#FRACDATA | display byte at the fractional pointer; pointer + the fractional increment |
| $1020-$1023 | read | DF0FLAG to DF3FLAG | $00 while the counter’s low byte is between the bottom and the top (inclusive), $FF outside that window (Stella compares (top − counter) with (top − bottom) as bytes) |
| $1028-$102F | write | DF#FRACLOW | fractional pointer bits 8-15 |
| $1030-$1037 | write | DF#FRACHI | fractional pointer bits 16-19 |
| $1038-$103F | write | DF#FRACINC | fractional increment; clears the low 8 bits of the pointer |
| $1040-$1047 | write | DF#TOP | top of the flag window |
| $1048-$104F | write | DF#BOT | bottom of the flag window |
| $1050-$1057 | write | DF#LOW | counter low byte |
| $1058 | write | FASTFETCH | 0 turns fast fetch on, any other value off |
| $1059 | write | PARAMETER | pushes a parameter (up to 8) for CALLFUNCTION |
| $105A | write | CALLFUNCTION | 0: reset the parameter queue; 1: copy parameter[3] bytes of ROM (address = parameters 0 and 1) to the display RAM at fetcher parameter[2]’s counter; 2: fill parameter[3] bytes there with parameter[0]; 254, 255: run the ARM program |
| $105D-$105F | write | WAVEFORM0 to WAVEFORM2 | waveform number (value and $7F; 32 bytes each) of music voice 0, 1, 2 |
| $1060-$1067 | write | DF#PUSH | counter − 1, then store the byte there |
| $1068-$106F | write | DF#HI | counter high nibble |
| $1070 | write | RRESET | random number back to its start value ($2B435044: the text “DPC+” read backwards) |
| $1071-$1074 | write | RWRITE0 to RWRITE3 | sets byte 0, 1, 2 or 3 of the random number |
| $1075-$1077 | write | NOTE0 to NOTE2 | sets music voice 0, 1, 2 to entry value of the frequency table (32-bit entries) |
| $1078-$107F | write | DF#WRITE | stores the byte at the counter; counter + 1 |
Fast fetch. With fast fetch on, when the program’s opcode fetch has just read $A9 (LDA #) and the operand byte it now reads is below $28, the chip
behaves as if the program had read that register address: LDA #$08 then gives DF0DATA. This saves the two cycles of a normal LDA $1008.
Random number: 32 bits; a forward step (RANDOM0NEXT) rotates the value right by 11 places and XORs it with $10ADAB1E when bit 10 of the old value was set; the backward step (RANDOM0PRIOR) undoes it: when bit 31 is set it first XORs with $10ADAB1E, then rotates left by 11 (Stella’s clockRandomNumberGenerator and priorClockRandomNumberGenerator; an earlier version of this page described the backward step as the step). Music: three voices; each has a
32-bit counter that grows by (its frequency × the clocks since the last read), the clock being 20,000 per second; a voice’s sample is byte (waveform × 32 + the counter’s top five bits) of the
display RAM, and AMPLITUDE is the sum of the three (a byte).
CDF, CDFJ and CDFJ+
The chip’s state lives in the Harmony RAM: an array of 32-bit data stream pointers, an array of increments and the waveform list, at places that depend on the driver version.
There are 32 data streams (0 to 31), a communication stream ($20), one jump stream ($21; CDFJ and CDFJ+ have two, $21 and $22) and an amplitude stream ($22 for CDF0 and CDF1, $23 for CDFJ and CDFJ+).
A pointer is stored as PPPFF--- (a 12-bit integer, an 8-bit fraction and 12 unused bits); CDFJ+ uses 16 and 8 bits. An increment is ----IIFF. Each read of a stream returns the byte at
the pointer and adds the increment (the communication and jump streams add one).
| Address | Access | Name | What |
|---|---|---|---|
| $1FF0 | write | DSWRITE | stores the byte at the communication stream’s pointer; pointer + 1 |
| $1FF1 | write | DSPTR | loads the communication stream’s pointer one byte at a time: the old pointer is shifted up one byte, the top 4 bits (CDF, CDFJ; top 8 bits for CDFJ+) of the result are kept and the value becomes the next 8 bits of the integer part. Two writes, high byte then low byte, give a 12-bit integer part (CDF, the first byte’s low nibble counts) or a 16-bit one (CDFJ+); the fraction is cleared |
| $1FF2 | write | SETMODE | mode byte: the low nibble 0 turns fast fetch on; the high nibble 0 chooses digital audio (else three-voice music) |
| $1FF3 | write | CALLFN | 254 or 255 run the ARM program; 254 with interrupt-driven audio |
| $1FF4-$1FFB | read or write | bank hotspots | as in the scheme tables |
Fast fetch: with the low nibble of the mode byte 0, the operand of LDA #n (and LDX #, LDY # if the CDFJ+ driver enables them) with
n up to the amplitude stream number (CDFJ+ can add an offset) is replaced by the next byte of data stream n; n equal to the amplitude stream gives the music level (a digital
sample nibble, or the sum of three waveform samples). Fast jump (only while the mode byte’s low nibble is 0, the same switch as fast fetch): an opcode $4C (JMP) whose operand high byte is 0 and whose operand low byte, ANDed with $FF for CDF and CDF1 or $FE for CDFJ and CDFJ+, is 0 takes its two address bytes from jump stream $21 + low byte instead of from the ROM; so CDF has one jump stream (JMP $0000) and CDFJ has two (JMP $0000 and JMP $0001), the stream always advancing by one byte per byte read. (An earlier version of this page left out the mode condition and did not say that the low byte chooses the stream.) The driver’s tables in Harmony RAM (offsets): CDF0 pointers $06E0, increments $0768, waveforms $07F0; CDF1 $00A0, $0128, $01B0; CDFJ and
CDFJ+ $0098, $0124, $01B0. The ARM side can set a note, reset a wave, read a wave pointer and set a wave size through four callbacks (not 6502 registers).
BUS
BUS1 and BUS2 put the registers inside the ROM window (reads of $1000-$101F and writes of $1010-$101A). BUS3 uses $1FEE to $1FF3 as CDF does. BUS0 uses $1000-$103F. The pointer format is PPPFF---
and the increment ----IIFF. The tables of the driver in Harmony RAM: BUS1 and BUS2 pointers $06E0, increments $0720, address map $0760, waveforms $07F4; BUS3 pointers $06D8; BUS0 $0AE0, $0B20, $0B64.
| Version | Address | Access | Name | What |
|---|---|---|---|---|
| BUS1, BUS2 | $1000-$100F | read | DS#READ | next byte of stream 0 to 15 |
| BUS1, BUS2 | $1018 | read | AMPLITUDE | music level |
| BUS1, BUS2 | $1010-$1013 | write | DS#WRITE | stores a byte at stream 0 to 3; pointer + 1 |
| BUS1, BUS2 | $1014-$1017 | write | DS#PTR | loads stream 0 to 3’s pointer a byte at a time as DSPTR of CDF does (old pointer shifted up a byte, top nibble kept, value into bits 27 to 20: two writes give a 12-bit integer part) |
| BUS1, BUS2 | $1019 | write | STUFFMODE | 0 turns bus stuffing on |
| BUS1, BUS2 | $101A | write | CALLFN | calls the ARM program |
| BUS3 | $1FEE | read | AMPLITUDE | music level (digital sample or waveform sum) |
| BUS3 | $1FEF | read | DSREAD | next byte of the communication stream ($10) |
| BUS3 | $1FF0-$1FF3 | write | DSWRITE, DSPTR, SETMODE, CALLFN | as in CDF; SETMODE’s low nibble 0 is bus stuffing on |
| BUS0 | $1000-$100F | read | DS#READ | next byte of stream 0 to 15 |
| BUS0 | $1010-$1013 | write | DS#WRITE | stores a byte; pointer + 1 |
| BUS0 | $101B, $101C | write | CALLFN, BUSSTUFF | calls the ARM program; 0 turns bus stuffing on |
| BUS0 | $1020-$102F | write | DS#PTR | stream 0 to 15’s pointer, loaded a byte at a time as above |
| BUS0 | $1030-$103F | write | DS#INC | meant to set the stream’s increment; Stella’s code does not do it (it passes the old increment and a value built from the stream number and the written byte to its setter, so the increment is not set as the name says), and what a real BUS0 cartridge does is not in any source read |
Bus stuffing (BUS3 and BUS1/2): with the mode on, after the 6507 fetches STY zero page ($84) the operand byte is remembered; when the store itself happens to that address, a byte from a data stream
chosen through the address map (one 32-bit word of eight 4-bit stream numbers per TIA register from VSYNC to HMBL, rotated by one nibble after each use) is ANDed with the value stored. BUS3 also has fast jump:
JMP $0000 takes its target from the jump stream (stream $11).
What is left undescribed: the ARM programs and driver code themselves, and the exact cycle timing of the ARM calls (Stella runs the ARM code in zero 6507 cycles).
AR (Supercharger)
A Supercharger ROM is a cassette image: loads of 8448 bytes, 8192 bytes of page data followed by a 256-byte header, which the Supercharger’s own BIOS
reads. The hardware has 6 KiB of RAM (three 2 KiB banks) and 2 KiB of BIOS ROM, mapped into the two 2 KiB halves of the window by a 5-bit configuration byte written to
$1FF8: bits 4 to 2 choose one of eight pairs of banks, bit 1 enables RAM writes and bit 0 is the ROM power. RAM is written by an unusual bus protocol (a
held byte committed after exactly five more bus accesses). A multi-load game stores its loads one after another (a file that is a multiple of 8448 bytes); the program tells the BIOS which load it wants by number (Horton),
and Stella’s stand-in BIOS takes that number from zero page address $80 when the program reads $1850 (Stella’s comment; where the real BIOS expects it is not in the sources read). A 6 KiB image is read as GL (the GameLine) only with the signature LDA $0CB8.
The load header
The 8192 bytes of a load are up to 32 pages of 256 bytes, of which at most 24 (6 KiB, the size of the RAM) are used, from the start of the load. The 256-byte header that follows
(the first eight bytes are the header Kevin Horton describes for the cassette tape, in his “Atari 2600 Mapper” document, section “Supercharger Tape Format”;
Stella’s CartAR.cxx reads the same bytes the same way; the BIOS ROM that consumes them is not in the file). All words are little endian:
| Header byte | Meaning |
|---|---|
| 0 and 1 | the start address: where the 6502 jumps when the load is done. Stella copies byte 0 to zero page $FE and byte 1 to $FF; its stand-in BIOS builds CMP $FFF8 followed by JMP there, so these two bytes are the jump operand (Horton’s BIOS listing says the same: “jmp target was at fe/ff”). Stella’s own comments that call byte 0 the bank-switch byte and byte 2 the high byte of the start address are wrong against its code |
| 2 | the control word, the value written to the control register at $1FF8 (DDDB BBWE: write delay, bank configuration, RAM write enable, ROM power) before the jump. Stella copies it to $80, where its stand-in BIOS does LDX $80 and CMP $F000,X. Horton’s demo unit header has $1B: RAM bank 3 at $1000 (this page numbers the banks 0 to 2, so bank 2), RAM bank 2 (bank 1) at $1800, ROM off, write on |
| 3 | the number of 256-byte blocks (pages) in the load (24 at most) |
| 4 | the header checksum: $55 minus the other seven bytes, so that all eight add up to $55 modulo 256 (Horton; Stella checks the sum and does not use the byte on its own). Both headers read for this page agree: Horton’s demo unit header C0 FF 1B 01 6D 00 0C 01 and Stella’s default header AC FA 0F 18 62 00 24 02 |
| 5 | the multiload number: 0 for a game that loads once and for the first load of a multi-load game; a game that loads a later part tells the BIOS the number it wants and the BIOS reads and throws away the loads that pass until that number comes (Horton). Stella looks the load up by this byte |
| 6 and 7 | the progress bar speed: about 22.8 times the block count (24 blocks give $0223; Stella’s default header has $0224), and $010C when only one bank is loaded (Horton, who did not research why). Stella does not use it. When Stella builds a header it sets byte 7 so that the sum is right |
| 8 to 15 | not used by Stella’s loader and not part of the tape header Horton describes |
| 16 + j | the page map of page j: bits 1 and 0 are the RAM bank (0, 1 or 2; 3 is the ROM and is not loaded), bits 4 to 2 the 256-byte page inside that 2 KiB bank (0 to 7) |
| 64 + j | the check byte of page j: the 256 bytes of the page plus its page-map byte plus this byte add up to $55 modulo 256 |
The configuration byte (bits 4 to 2 pick a row, bit 1 is RAM write enable, bit 0 is ROM power, 1 = off; bits 7 to 5 are a write pulse delay an emulator ignores):
| Bits 4-2 | $1000-$17FF | $1800-$1FFF |
|---|---|---|
| 000 | RAM bank 2 | ROM |
| 001 | RAM bank 0 | ROM |
| 010 | RAM bank 2 | RAM bank 0 |
| 011 | RAM bank 0 | RAM bank 2 |
| 100 | RAM bank 2 | ROM |
| 101 | RAM bank 1 | ROM |
| 110 | RAM bank 2 | RAM bank 1 |
| 111 | RAM bank 1 | RAM bank 2 |
Kevin Horton numbers the three RAM banks 1 to 3; his table (000: bank 3 and ROM, 001: 1 and ROM, 010: 3 and 1, 011: 1 and 3, 100: 3 and ROM,
101: 2 and ROM, 110: 3 and 2, 111: 2 and 3) is this one with every number one higher. The load’s block location byte (000B BBRR, tape format) uses the same
bank numbers as the page map here: RR 00, 01, 10 are RAM banks 0, 1, 2 (Horton’s 1, 2, 3) and 11 would be the ROM.
At power-up the Supercharger runs its own BIOS: Stella resets the configuration to $00 (RAM bank 2 at $1000, ROM at $1800, ROM powered, writes off; its comment: “so ROM is selected and powered up”)
and the reset vector is read from the BIOS ROM. Horton gives no register state at power-up (he says the BIOS tests the RAM and, while the tape is not loaded, shows “rewind tape” and “press play”), so the value of the real control register at power-up is not stated by any source read.
What the real BIOS shows (stage 17). The 2048-byte Supercharger BIOS (archive.org item Supercharger_BIOS_1982_Arcadia_Corporation, MD5 4565c1a7abce773e53c75b35414adefd, copy in research/a26/supercharger-bios-arcadia-1982.bin) was disassembled with the site’s 6502 decoder. Its vectors are $FDC1 (reset) and $FF03 (NMI and IRQ). The reset code is fetched from the ROM at $1800-$1FFF and clears the console RAM ($FDC1 to $FDD0) before it touches the control register, so at power-up the ROM must be mapped at $1800-$1FFF and powered: bits 4 to 2 one of 000, 001, 100, 101 (the rows of the table above with ROM at $1800) and bit 0 clear. The first control writes are in the routine at $FF52: LDA $F000,X then LDA $FFF8, with X loaded from a ten-byte table at $FFE5 (06 16 02 E6 F6 E2 AD FF F0 6C) copied to $81: the first three values $06, $16 and $02 map RAM bank 0, 1 and 2 beside the ROM with writes enabled, and the later three ($E6, $F6, $E2) are the same with a write delay of 7 in bits 7 to 5; the BIOS RAM test ($FF60 to $FF7D) reads and compares every byte with those settings. The BIOS therefore never relies on the write-enable bit, on bits 7 to 5 or on the other ROM rows at power-up: Stella’s $00 is one of the allowed values, and no program can see the difference because the BIOS writes the register before it uses the cartridge RAM. The exact bits the hardware holds before the first write are still not stated by any source.
Tape load and header handling in the BIOS (stage 19, cartridge firmware, same BIOS file, 6502 decoder trace). Every control-register write in the BIOS is LDA $F000,X followed by LDA $FFF8, so the value is the low byte of the address read first; the BIOS never reads the register back. The writes are: $FF52 and $FF7E (X from the table at $FFE5, $06 $16 $02 then $E6 $F6 $E2, RAM test), $FFB8 (X = 8, then $F7 and $F7 again: a write-timing test with the same CMP $F7D9 and CMP $F7E3 reads), $F81A to $F81D (address $F006 plus the byte in $80, which the RAM test left as the delay bits ADD $84,$81 / 2 AND $E0 at $FF46-$FF4D, so D4-D0 = 00110: bank 0, writes on, ROM on), $FC34 to $FC37 (during the load of each page: X = $FDA7[page-map byte AND 3] AND $FB OR $80 with the four bytes $06 $16 $02 $02 at $FDA7) and $FCB0 to $FCB3 (after the last page: X = $80, that is D4-D0 = 00000: ROM, bank configuration 000, writes off, ROM powered). The final control byte of the load is not written by the BIOS loop itself: $FCBC to $FCC3 ORs the header’s control byte ($8C) into $80 and only latches it with LDA $F000,X; the BIOS then copies four bytes from $FDAB to $FA-$FD (CMP $FFF8 then JMP, $FA06-$FA18), pushes the start address into $FE/$FF ($FCB6-$FCBB, stack pointer reset to $FF), and jumps to $00FA ($FA1A): the CMP $FFF8 in zero-page RAM is what commits the loaded game’s control byte and the following JMP goes to the start address. The tape bit comes from reads of $FFF9: the BIOS compares the whole byte read with 0 and 1 (CPX $FFF9, CPY $FFF9 at $FD61-$FD7B, CMP $FFF9 at $FD09-$FD26 measures the lead-in tone with the loop counters X and Y), and the RIOT timer ($029C read, $0296 written) paces the bit reads; Stella and Gopher2600 both return exactly $01 or $00 from $1FF9, which fits that code. Header: the BIOS reads header bytes 0 and 1 as the start address ($FBC5-$FBCF into $89/$8A), byte 2 as the control byte ($8C), byte 3 as the page count ($8D, decremented at $FC9B), then two more bytes through $FD38 at $FBD6-$FBDF, and byte 5, the multi-load index, is compared with the requested load number in $FA ($FBF1): smaller sets $FB = $FD, which clears the write-enable bit in every page write (the load is read from the tape but not stored), equal sets $FB = $FF (stored), larger jumps to $FBBC and restarts the BIOS ($FCDA); bytes 6 and 7 are two counters ($8E/$8F, copied to $90/$91) that step the progress display and the sound ($FC47-$FC66, TIA $15 $17 $19). Every page and the header are summed to $55 ($FC0B, $FC97, failure to $FCDA), and after the last page a load whose $FB is not $FF returns to the tone search at $FAA0 to read the next load ($FCA8-$FCAC). One difference from Stella and javatari that the trace shows: $FDA7 maps a page-map bank number 3 to the configuration $02 (RAM bank 2 beside the ROM), so a page tagged bank 3 would be written into RAM bank 2 by the real BIOS, while both emulators skip it; no tape was found that has such a page. The bit-level framing of the tape stream (how the page-map bytes and checksums are interleaved after the first eight header bytes) was not decoded in this stage.
Power-up in the emulators (stage 19, source read). Stella (CartAR.cxx reset(): configuration 0, writes off), javatari (Cartridge8K_64K_AR.js powerOn(): “Always start with bank configuration 000 … writes disabled and BIOS ROM powered on”) and z26 (c_starpath.c Init_Starpath(): control byte 0, SP_WriteEnable 0) agree on $00; Gopher2600 0.50.0 (supercharger.go Reset(): write delay 0, ROM power on, RAM write true) differs in the write-enable bit. As the BIOS never depends on that bit before its first write, the difference is invisible to every program, but it means the power-up bits are not settled by “two emulators agreeing”. Kevin Horton’s forum post of 1 March 2012 (AtariAge topic 194795, first post) says he disassembled the BIOS for an FPGA 2600 and asks, unanswered in the first post, what the delay between the two reads is, whether the delay bits matter and how the tape is read (he concludes $FFF9 returns zero or non-zero); supercat’s 2006 post (topic 94954) asks what the delay bits do in hardware terms. Neither gives a power-up state. The Starpath schematic could not be found: archive.org holds only game manuals and box scans for the Supercharger, the Atari Compendium manuals index returned 404, and a web search for CompuMate or Supercharger schematics found none.
The explorer decodes every load: the tree shows its pages with the bank and page each goes to, the header with its fields, and a table lists the number, start address, control
byte, windows, page count and the result of the checksums (a wrong sum is flagged, as Stella reports it). A file shorter than 8448 bytes (a 2 KiB or 4 KiB ROM cloned for the Supercharger) is
not a load: Stella pads it to one load and adds its default header, and the explorer reports the bytes as not a whole load. The BIOS: the 2 KiB ROM (bank 3) holding the real
Supercharger BIOS is not in the file, and the file cannot be run without it: on a real machine it loads the tape; Stella puts a small stub of its own there that loads a load by its number
when the program touches $1850.
Code of a load. The explorer puts each load into a 6 KiB RAM image the way the page map says (a page whose bank number is 3 would be the ROM and is skipped), takes the two 2 KiB windows that the control word chooses (RAM banks 0 to 2; a window that holds the ROM is not shown) and disassembles them as code walked from the load’s start address, the address the BIOS jumps to after the load. It is the state of the machine right after the load. The program’s later changes to RAM, the order in which a multi-load game runs its loads, the code of the BIOS and the write protocol of the Supercharger (a read of $F0xx then a write five bus accesses later) are not simulated, so a program that copies its own code into another bank before running it shows only the part that runs from the load address. Checked on the 14 real tapes in the sample collection: every load header and page check passes, the control words of Communist Mutants from Space, Suicide Mission and Killer Satellites are the configurations that Stella’s comment names for those games (2, 3 and 6), and every tape shows code.
The tape signal
From Kevin Horton’s document. The data is pulse-width modulated on the cassette. A “0” pulse is short and a “1” pulse is long (times are for the whole pulse, low and high halves together, and the BIOS adapts to tape speed):
| “0” pulse | “1” pulse | |
|---|---|---|
| minimum | 158 µs | 317 µs |
| optimal (the filters are tuned to these) | 227 µs | 340 µs |
| maximum | 317 µs | 2450 µs |
A “1” pulse need only be about 90 µs longer than a “0”, and at least 25 % longer is wise. The signal has six parts:
- Preamble: a 50 % duty cycle wave of about 750 Hz (666 µs low, 666 µs high), at least 800 pulses (about a second), so that the amplifiers and the filter settle.
- Synchronisation: at least 256 bytes of
$55(0 1 0 1 ...) at the chosen bit rate. - Start pulse: one final “0” pulse; the header follows.
- Header: the eight bytes of the load header. Bytes are sent most significant bit first; words are little endian.
- Data blocks: each is a 2-byte block header and 256 bytes of data. The first byte is the block location
000B BBRR(BBBthe 256-byte block 0 to 7,RRthe RAM chip: 00, 01, 10 are RAM banks 1, 2, 3 in Horton’s numbering, 11 is invalid), the second a check byte. The 258 bytes add up to$55modulo 256. To load the 24 blocks in order the locations are00 04 08 0C 10 14 18 1C(bank 1),01 05 09 0D 11 15 19 1D(bank 2) and02 06 0A 0E 12 16 1A 1E(bank 3). On a wrong sum the BIOS flashes “rewind tape” while audio keeps coming. - Postamble: a string of “0” bits, at least 256 long; the BIOS shows “press stop” and starts the game only after the audio stops.
The load in an 8448-byte file is the same information laid out differently: the block locations are the bytes at 16 + j of the file header and the check bytes (so that the page, its location and the check add up to $55) the bytes at 64 + j, as in Stella’s loader.
Horton gives the multiload numbers allocated to released games (Escape from the Mindmaster 1 to 3, Dragonstomper 4 and 5, Survival Island 6 and 7); they are never reused.
The write protocol
Horton: reading a location $F000-$F0FF (LDA $F000,X) tells the Supercharger the byte to write (the low byte of the address). A read of $FFF8 then writes that byte to the control register (any instruction that only reads will do; there is no upper limit on the cycles between the two). To write RAM the same
first read is used and a later access to the target address does the write: the Supercharger watches all 13 address lines, counts address bus transitions (not cycles; a repeated address counts once) and, on the fifth after the $F0xx read, drives the byte onto the bus while the CPU reads, so the CPU itself reads the written value. It does so only when RAM writes are enabled and the target is RAM. Reading $1000-$10FF with writes enabled corrupts RAM,
so the BIOS never executes there. $FFF9 bit 0 reads the tape audio input (the upper 7 bits must be 0). Stella counts “distinct accesses” the same way.
4A50 (Supercat)
John Payson’s scheme: 32, 64 or 128 KiB of ROM (smaller images are repeated to fill) and 32 KiB of RAM, cut into four windows of the cartridge space:
$1000-$17FF (2 KiB), $1800-$1DFF (1.5 KiB), $1E00-$1EFF (256 bytes) and $1F00-$1FFF (the last 256 bytes of the ROM, always).
The first three can each show a ROM or a RAM piece: the 2 KiB window a 2 KiB page (of the first 32 KiB of ROM, as Stella describes it, or of the RAM), the 1.5 KiB window the first 1.5 KiB of a
2 KiB page (of the last 32 KiB of ROM or of the RAM), the 256-byte window any 256-byte page. Stella calls it one bank that is changed by every switch. Hotspots (reading
or writing; many are below $1000):
- Zero-page writes of the page number (the value written). An address with (address and
$0F75) =$74, that is$0074,$0076,$007C,$007Eand the same four with bit 7 set,$00F4,$00F6,$00FC,$00FE(Stella’s comment lists “0xf4, 0xf6, 0xfc, 0xfe for ROM” and “0x74 - 0x7f (0x80 bytes lower)”), chooses a ROM page for the 256-byte window; (address and$0F75) =$75($0075,$0077,$007D,$007F,$00F5,$00F7,$00FD,$00FF) a RAM page (7 bits of the value). An address with (address and$0F7C) =$78($0078to$007Band$00F8to$00FB) takes the value’s high nibble as the command:$0ROM page (low nibble) in the 2 KiB window,$4RAM page there,$9ROM page (low nibble + 16) in the 1.5 KiB window,$CRAM page there; any other high nibble does nothing. - After the program stores a value whose top three bits are
011(a value from$60to$7F) with the store made from the cartridge or from an address below$0200(the TIA, the RIOT RAM and the stack), the address of the next access is read as a command: (address and$0F00) =$0C00: ROM page (address and$FF) for the 256-byte window;$0D00: RAM page (address and$7F) there; (address and$0F40) =$0E00: ROM page (address and$1F) and =$0E40: RAM page (address and$0F) for the 2 KiB window; =$0F00: ROM page (address and$1F) and (address and$0F50) =$0F40: RAM page (address and$0F) for the 1.5 KiB window; (address and$0F00) =$0400or$0500toggle address bit 11 or bit 12 of the 2 KiB window’s page,$0800or$0900the same for the 1.5 KiB window (Stella’s helper functions). Source:Cart4A50.cxx,checkBankSwitch; Horton does not describe the scheme (“not terribly workable on real hardware”). - An access to the fixed last page
$1F00-$1FFFright after a data value$60-$7Fchanges the upper bits of the 256-byte window’s offset: address bit 3 gives bit 11 and address bits 6 to 4 give bits 10 to 8 of it.
Detection: bytes 50 4A (the NMI vector $4A50, “PJ”) six bytes from the end, or a program at the reset target that starts with NOP $6Exx or NOP $6Fxx. Stella says the scheme is not
fully implemented (the hi-res helper functions and a wrap of page $1E00 are missing), and only one test ROM existed. The explorer lists the image in 2 KiB pages and shows the fixed last page (with the vectors) as the
code of the start; the windows at $1800-$1EFF are not shown, since which ROM page is in them depends on the program.
CM (SpectraVideo CompuMate)
A keyboard add-on with two 8 KiB EPROMs (16 KiB, four 4 KiB banks) and 2 KiB of RAM, plugged into the cartridge port with two cables to the controller ports. The bank is chosen through
SWCHA (the RIOT port A, written at $0280): D1 and D0 are the bank (0 to 3; it starts in bank 3 because SWCHA is $FF). The lower 2 KiB of the window is always ROM; the upper 2 KiB
($1800-$1FFF) is RAM when D4 = 0 (it can then always be read; it can also be written when D5 = 1: Stella’s header comment says D5 = 0 enables writing, but its code makes D5 = 1 with D4 = 0 the write setting, and this page follows the code; there is no separate read and write port). The keyboard has ten columns scanned by a 4017 counter: D6 clocks it
(a rising edge steps the column 0 to 9), D5 with D4 = 1 resets it to 0; the four rows are read as inverted bits: row 0 on INPT4 D7, row 1 on SWCHA D2, row 2 on INPT5 D7, row 3 on SWCHA D3 (0 = key pressed); FUNC is INPT0 D7 and SHIFT INPT3 D7 (1 = pressed);
INPT1 and INPT2 read high. D7 of SWCHA is the cassette input and D6 the cassette output. Stella does not detect the scheme: it is chosen by name. The explorer lists the four banks; the keyboard and tape are not
part of the file.
Where Kevin Horton differs from Stella. Horton’s document gives the same port bits (D7 audio in, D6 audio out and the 4017 clock, D5 the 4017 reset and the RAM direction with high = write, D4 RAM disable, D3 and D2 rows 3 and 1, D1 and D0 the ROM bank) and the same power-up state, but it puts the RAM at $1000-$17FF (“1000-17FF : 2K of RAM”, although its own summary says 1 KiB), where Stella and its header put 2 KiB at $1800-$1FFF. Horton also says that with D5 high the RAM is write-only and with D5 low read-only; Stella lets it be read at any time. The position is settled by the real ROM: the CompuMate ROM in the samples (16,384 bytes, cm-CompuMate-Spectravideo.bin) has 86 absolute stores (STA, STX, STY) whose address, taken modulo $2000, lies in $1800-$1FFF (for example STA $797B, which the 6507 sees as $197B) and none in $1000-$17FF, where the ROM stays mapped. The RAM is therefore at $1800-$1FFF, as Stella has it, and Horton’s 1000-17FF is an error in his document (his own summary says 1 KiB too). Stella’s CartCM.cxx agrees with Horton on writing: with D4 low the upper 2 KiB is RAM, and a write goes through only when D5 is high and D4 low (SWCHA & $30 == $20); D5 high also resets the keyboard column counter. They differ only on reading while D5 is high (Horton: not possible; Stella: always possible). MAME’s compumat.cpp is a skeleton (its own header says “only a skeleton ATM”; it maps only the four ROM banks and has no RAM and no keyboard), so it does not decide this either. The read behaviour while D5 is high is therefore still not decided by any source or by the ROM.
CTY (Chetiry)
Chris D. Walton’s Tetris clone on a Harmony cartridge: eight 4 KiB banks of which bank 0 is ARM code that is never mapped; banks 1 to 7 at $1FF5 to $1FFB (as F4SC), starting in bank 1. 64 bytes of
RAM at $1000-$107F: write port $1000-$103F, read port $1040-$107F. The first four bytes are control registers.
| Address | Access | What |
|---|---|---|
| $1000 | write | the operation to do when $1FF4 is accessed: the low nibble is the operation, the high nibble an index |
| $1001 | write | sets the random seed (Stella: $2B435044) |
| $1002 | write | resets the tune pointer to the beginning of the tune |
| $1003 | write | advances the tune to the next position |
| $1040 | read | error code after an operation |
| $1041 | read | steps a 32-bit random number (the DPC+ rule: rotate right 11, XOR $10ADAB1E when bit 10 was set; start value $2B435044, set by a write to $1001) and returns its low byte (Stella’s comment calls it an 8-bit LFSR, its code is the 32-bit one) |
| $1042, $1043 | read | the tune position, low and high byte |
| $1FF4 | read or write | the first access starts the operation in $1000 (the 256-byte score store and the tunes are in the Harmony cartridge’s EEPROM). A read of $1FF4 returns the ROM byte there with bit 6 set while the operation is busy and clear when it has finished (Stella: 0.5 s for loading a tune or a score table, 1 s for saving or wiping), and then also sets the error code at $1040 to 0 |
The operations (the low nibble): 1 load a tune (index = tune, 0 to 6: seven tunes of 4 KiB, 28 KiB in all), 2 load a score table (index 0 to 3, 64 bytes), 3 save a score table, 4 wipe all four tables. A
60 KiB image (32 KiB and the 28 KiB of tunes) holds the tunes after the banks. Music: the 6502 reads the tune’s frequency value by running LDA #$F2, which the cartridge replaces by a value built from three square-wave
channels (the data is three notes per position, a note of 1 ends the tune and 0 means keep the last note). Detected by the text LENIN in a 32 KiB or 60 KiB image.
GL (GameLine Master Module)
The cartridge of the 1980s GameLine telephone service: the window is four 1 KiB segments. An access to $0480 + x chooses the bank of the first segment, $0580 + x the second, $0880 + x the third and
$0980 + x the fourth; bits 0 to 3 of x are the bank (0 to 3 are the 4 KiB of ROM, 4 to 15 are 12 KiB of RAM in twelve banks) and bit 5 says write (for RAM; Stella does not check it). Bank 0 is in all four segments at power-up, so the vectors sit at the end
of the first kilobyte. Accesses to $0C80 and $0D80 control the modem, which Stella does not emulate except the PROM check: with (address and $30) = $30 the addresses
$1FC0-$1FDF read as 0. A 6 KiB image holds the ROM and 2 KiB for the start of the RAM; a 4 KiB image is the ROM alone. Detected by the code LDA $0CB8 (a 6 KiB or 4 KiB image).
MVC (MovieCart)
A scheme for playing full-motion video (Rob Bairos; the original design is lodefmode’s MovieCart). The cartridge’s 6502 driver code is not in the file: Stella (and the real cartridge) present only 1 KiB, repeated through the window, and replace it on the fly as the program enters 128-byte regions; the file is only the stream. It is a sequence of 4096-byte fields (half a frame each, odd and even lines), read in 512-byte chunks. Audio is 4-bit PCM; the picture uses TIA colour dithering. Layout of a field:
| Byte | Meaning |
|---|---|
| 0 to 3 | the text MVC and a zero byte (version 0) |
| 4 | format: bit 7 set = the header below (the “new” one) |
| 5 to 8 | timecode: hour, minute, second, frame (the frame number is byte 8) |
| 9 to 13 | vsync lines (3), vblank lines (37), overscan lines (30), visible lines (192), frame rate (60): the values given are the NTSC example |
| 14 on | sound: one byte per line (vsync + vblank + overscan + visible); then graphics: 5 bytes per visible line; colour: 5 bytes per visible line; background colour: 1 byte per visible line; a 60-byte timecode picture; padding |
If the format byte has bit 7 clear, or the line counts would not fit in the 4096 bytes (a 128-byte allowance is kept for the timecode picture), the field is read in the previous format: 3, 37, 30 and 192 lines, the frame number at byte 6, the sound at byte 7, then graphics, the 60-byte timecode, colour and background colour.
Stella recognises a file as MVC by the type name or by MVC and a zero at the start. The explorer shows each field with its header decoded, the parts of the data and a table of the fields; it shows no code.
DEVC (DevCard)
A development cartridge from the 7800 side for the 2600: it widens the bus to 16 bits and puts 24 KiB of RAM, directly readable and writable, in six 4 KiB windows at $5000, $7000, $9000, $B000, $D000 and
$F000 (the windows where address lines A12 and A14 or A15 are high; the ones with A12 low are left out to avoid clashing with the TIA and RIOT). There is no bank switching. The 24 KiB image is loaded into the RAM at reset, window after window, the first 4 KiB of the file into $5000. Stella finds it (for a 24 or 28 KiB file, before it considers FA2)
by the instruction pair LDA #$FD; STA COLUPF (the DevCard’s “lock-in” code, which stays in many final ROMs, so the test is a last resort). The explorer lists the six windows at their own addresses and reads the vectors from $FFFA in the last.
ELF
Stella’s ELF cartridge is not a ROM image but a standard little-endian 32-bit ARM ELF object file (relocatable, e_type 1, e_machine 40) that Stella links at load time into a private ARM address space (a stack, text, data, rodata and a table area) and runs on an emulated Cortex-M0
from the symbol elf_main. The ARM program calls vcsLib stubs (vcsWrite3, vcsSta3, vcsJmp3 and so on); the linker turns them into entries of a queue of address and data pairs that overdrive the 6502’s data bus on timed cycles. There is no bank layout and no hotspot, and the size is limited only by memory.
Detection: at least 52 bytes, the magic 7F 45 4C 46 found in the first 8 bytes (Stella searches that window), byte 5 = 1 (little endian), byte $10 = 1 and byte $12 = $28. The explorer decodes the ELF header (class, byte order, type, machine, entry, flags, section table) and lists the sections with their names, types, offsets and sizes; every
executable section of type PROGBITS (flag SHF_EXECINSTR, .text and the like) is disassembled as ARMv6-M Thumb code (Stella’s header says the Cortex-M0 emulator runs it), at section-relative addresses because an object file is not linked. Relocations are not applied, so a call to a vcsLib stub shows its unrelocated target, and the section of an ELF file linked for a real cartridge is not distinguished from one that is not. It shows no 6502 code. The ARM viewer of the site (ELF) has more options (for example the floating-point unit).
Multicarts: 2IN1 to 128IN1
A multicart file holds several games of equal size one after another. Stella does not detect it: it is chosen by type name (2IN1, 4IN1, 8IN1, 16IN1, 32IN1, 64IN1, 128IN1) or by the file name suffixes 2N1 to 128N1, and then
cuts the file into equal slices, each started as its own cartridge in turn. The scheme of each slice: 2 KiB or less is 2K, 4 KiB is 4K, 8, 16, 32, 64 or 128 KiB is found by the same detection as a single ROM, any other size is 4K. The sizes Stella accepts: 2IN1 2 × 2, 4, 8, 16 or 32 KiB; 4IN1 4 × 2, 4, 8 or 16;
8IN1 8 × 2, 4 or 8; 16IN1 16 × 2, 4 or 8; 32IN1 32 × 2 or 4; 64IN1 64 × 2 or 4; 128IN1 128 × 2 or 4 KiB; any other size is an error. The explorer cuts the file the same way, labels every bank with its game and scheme, and reads the vectors from the first game’s first bank;
the options bar’s bank choice then picks another.
4IN1
4 games of 2, 4, 8 or 16 KiB.
8IN1
8 games of 2, 4 or 8 KiB.
16IN1
16 games of 2, 4 or 8 KiB.
32IN1
32 games of 2 or 4 KiB.
64IN1
64 games of 2 or 4 KiB.
128IN1
128 games of 2 or 4 KiB.
PlusROM
Not a bank-switching scheme but a wrapper around any of them that adds a network connection (the PlusCart and PlusROM project). The host name and path of the back end are stored as two 0-terminated strings, path first and then host, at the address that the NMI vector holds, the NMI vector being read from the last six bytes of the image. The offset in the file is counted from the start of the file, not from the start of the bank that holds the vector: Stella takes ((high byte of the vector − $10) × 256) + low byte, so for the usual vector written as $1xxx the strings are in the first 4 KiB of the image (a vector such as $Fxxx gives an offset of $E000 or more, which fails for a ROM smaller than 56 KiB; an earlier version of this page said “in the same bank”, which is only true for a 4 KiB ROM). The program uses four hotspots below the bank-switching area:
| Address | What |
|---|---|
| $1FF0 | write: a byte into the send buffer (up to 256 bytes) |
| $1FF1 | write: a byte into the send buffer and send the buffer to the back end |
| $1FF2 | read: the next byte of the response (each read advances the receive pointer; the buffer holds 256 bytes) |
| $1FF3 | read: the number of unread bytes in the receive buffer (they can come from several responses) |
Stella calls a ROM a PlusROM when it contains the code STA $1FF1 (8D F1 1F) and the strings are valid: a path of the characters - . / 0-9 A-Z a-z _ ~, and a host name of dot-separated labels of 1 to 63 letters, digits and inner hyphens (at most 253 characters). The explorer tests the same
way, shows the host and path, and names the four hotspots in the disassembly. The network exchange itself (HTTP requests) is not part of the file.
4KSC
A plain 4 KiB ROM with the SuperChip RAM at $1000-$10FF; code must start at $1080 or later. Stella finds it by the
first 256 bytes being all the same byte and the text SC at $FFFA.
F8SC
F8 with the SuperChip; Stella finds it by the first 128 bytes of each bank being repeated in the next 128.
F6SC
F6 with the SuperChip.
F4SC
F4 with the SuperChip.
SuperChip
An extra 128 bytes of RAM on the cartridge (a small static RAM chip on some Atari boards) for F8, F6, F4, EF, DF, BF and 4K ROMs: the write port is
$1000-$107F and the read port $1080-$10FF of every bank. The first 256 bytes of each bank are then not code. In the options bar it is a
checkbox, or the scheme names F8SC, F6SC, F4SC, 4KSC, EFSC, DFSC and BFSC say it. Stella spots it by the first 128 bytes of each 4 KiB bank repeating in the next 128.
Unknown scheme
For a size no scheme above uses, every 4 KiB of the file is shown as a bank, and nothing is said about how they are switched.
File name extensions in Stella
Stella can also choose the scheme from the file name: a table of 88 extensions (Bankswitch.hxx, ourExtensions, which is declared with room for 115; the last of the 88 is zip, compiled only with zip support; the first column here is the type, the second the extensions that give it). The explorer does not take the scheme from the extension: it
uses the content (and the options bar), because a .bin or .a26 name says nothing about the scheme, and the site’s registry knows only the extension .a26 for a 2600 ROM; a file with another name is opened with
Read as. The names are useful as hints for a person: a file called game.f6sc is F6SC.
| Type | Extensions |
|---|---|
| automatic detection | a26, bin, cu, rom, and zip when Stella is built with zip support (a zip archive holding a ROM) |
| 03E0 | 03E, 03E0 |
| 0840 | 084, 0840 |
| 0FA0 | 0FA, 0FA0 |
| 2IN1, 4IN1, 8IN1 | 2N1; 4N1; 8N1 |
| 16IN1, 32IN1, 64IN1, 128IN1 | 16N, 16N1; 32N, 32N1; 64N, 64N1; 128, 128N1 |
| 2K, 4K, 4KSC | 2K; 4K; 4KS, 4KSC |
| 3E, 3E+, 3EX, 3F | 3E; 3E+, 3EP; 3EX; 3F |
| 4A50 | 4A5, 4A50 |
| AR (Supercharger) | AR, and the sound files mp3 and wav (Stella decodes the tape audio, with a real BIOS, into the loads: not a ROM image, so not described here) |
| BF, BFSC, DF, DFSC | BF; BFS, BFSC; DF; DFS, DFSC |
| BUS, CDF, CM, CTY, CV, DEVC | BUS; CDF; CM; CTY; CV; DEVC |
| DPC, DPC+ | DPC; DPP, DPCP |
| E0, E7, EF, EFF, EFSC, ELF | E0; E7, E78, E78K; EF; EFF; EFS, EFSC; ELF |
| F0, F4, F4SC, F6, F6SC, F8, F8SC | F0; F4; F4S, F4SC; F6; F6S, F6SC; F8; F8S, F8SC |
| FA, FA2, FC, FE, GL | FA; FA2; FC; FE; GL |
| JANE, MDM, MVC, SB, TVBOY | JAN, JANE; MDM; MVC; SB; TVB, TVBOY |
| UA, UASW, WD, WDSW, WF8, X07 | UA; UASW; WD; WDSW; WF8; X07 |
The bank at power-up
Which bank is in the window when the console is switched on, so which bank the 6507 reads the reset vector from, is settled from four sources:
- Plain bank-switching cartridges (F8, F6, F4, FA, F0, EF and the like): not defined. The Nocash Atari 2600 Specs say it for the port-selected 4 KiB banking: “the initial bank number is undefined upon power-on, so each bank should
contain a valid entry point at [FFFC], and a small power-on procedure”. Stella treats the start bank as a setting, not a fact of the hardware:
Cartridge::initializeStartBankinCart.cxxpicks a random bank when the settingplr.bankrandom(dev.bankrandomwith the developer settings) is on, otherwise the number in the ROM propertyCartridge.StartBank, otherwise the default that each cartridge class passes in (the start bank column above; for F8 it is bank 1, for F6 bank 0). The comment inCartFE.cxxshows what an undefined start means in practice: Decathlon has a garbage reset vector in bank 1 and survives a start in that bank only because the CPU soon runs into aBRKthat switches to bank 0. - E0 and 03E0: Stella starts the three switchable 1 KiB segments in banks 4, 5 and 6 (random banks with the setting) and the fourth segment is fixed to the last bank. E7: bank 0 in the lower segment and RAM bank 0 (random with the setting). 3F, 3E, 3EX: the last 2 KiB of the ROM is fixed in the upper half of the window, so the vectors are always read from there (Horton).
- Defined by the hardware: CompuMate (CM). Kevin Horton: “On powerup, the port is all 1’s, so the last bank of ROM is enabled, RAM is disabled”; Stella’s
CartCM.cxxsetsSWCHA = $FFand starts in bankSWCHA & 3, which is bank 3. Horton also quotes Chris Wilkson’s Megacart specification (a scheme of 1 KiB slots that is not a Stella type): “hardware will force slot 3 to always point to ROM block $FF immediately after any read or write to the RESET vector at $FFFC-$FFFD” until the program jumps out of the boot code, because the console’s memory is random at power-up. - Stella never randomises the start bank of 0FA0, 3E+, BUS, CDF, DPC+, MDM and WD (the
randomStartBank()overrides in their headers; for BUS, CDF and DPC+ because “the ARM code is always in a pre-defined bank, and we must start from there”). That is Stella’s rule for the emulation, not a statement about the cartridge hardware. - Supercharger (AR): see its section: Stella resets the configuration byte to
$00, so the BIOS ROM is at$1800.
The sources searched: the Nocash Atari 2600 Specs, Kevin Horton’s Mostly Inclusive Atari 2600 Mapper / Selected Hardware Document (version 1.00, 2012), the Stella Programmer’s Guide (it says nothing about cartridges) and the
Cart*.cxx and .hxx files of Stella. None of them states which bank a real F8 or F6 cartridge starts in, so none can be given: that is what “not defined” means here.
Sources
Everything above marked checked was read as text from the source files of the Stella emulator, src/emucore/Cart*.cxx and
.hxx, CartDetector.cxx and Bankswitch.hxx at commit 8dd560091d22f9867cd9192880aa28570ed4d6db
(github.com/stella-emu/stella, GNU General Public License 2): the hotspot addresses, bank
layouts, start banks and detection signatures. Stella’s code is used only to check and describe behaviour; none of it is copied into this site. Where Stella’s header
comment and its code disagree (0FA0, WF8, FA) the page follows the code and says so. For the first thirteen schemes the cartridge classes of the 6502.ts
core in emulators.org/emulator/6502-ts are a second route. The explorer’s page test compares the page and the viewer with a table written
separately from the Stella text, and a test builds a ROM per scheme with the DASM assembler and checks that the viewer names the hotspot each bank touches.
Kevin Horton’s Mostly Inclusive Atari 2600 Mapper / Selected Hardware Document (version 1.00, 2012,
blog.kevtris.org/blogfiles/Atari 2600 Mappers.txt, saved as samples/a26/sources/kevtris-atari-2600-mappers.txt, 53,909 bytes, SHA-256
c5c202c7a4402994a68962153389608dc1e9f74f30026b2008399a40ae0e15e2) was read in full on 2026-11-25: the Supercharger header, the tape format and the power-up statements come from it. The register tables, the Supercharger header, the multicart sizes, DevCard, CM, CTY, GL, 4A50, MVC, ELF and PlusROM were added on 2026-11-19 from
CartDPC.cxx, CartDPCPlus.cxx, CartCDF.cxx, CartBUS.cxx, CartAR.cxx, CartWD.cxx, CartCM.cxx, CartCTY.cxx, CartGL.cxx, Cart4A50.cxx,
CartMVC.cxx, CartELF.cxx, CartDevCard.cxx, CartCreator.cxx and PlusROM.cxx (same commit; the project’s page test and test-a26-round4.mjs compare the names, addresses and rules with the text of those files).
Not described
Known, not yet covered
- Viewer: the ARM code of the Harmony schemes (DPC+, CDF, CDFJ+, BUS, CTY) is shown as ARM and Thumb code with data separated by following the code from the entry points (the ARM code; real dump: DPC+ only), not run and not described; CDF, CDFJ, CDFJ+, BUS and CTY have no real dump here, and code reached only through a register or a table stays data; the executable sections of an ELF cartridge are shown as Thumb code without relocations; the 6502 side of every scheme is described and shown.
- Viewer: a Supercharger load is shown as code only as it is right after the load (see the code of a load above): the later behaviour of the program (self-modification, copies between banks, the next load) and the BIOS are not simulated.
- Viewer: 4A50: which ROM or RAM page is in the windows
$1800-$1EFFdepends on what the program has switched, so the viewer lists the pages and shows the fixed last page as code; MVC: the sound, picture and colour data of a field are not turned into a picture or sound. - Reference: the
.wavand.mp3Supercharger tape files Stella decodes with a real BIOS are audio, not a ROM image: the tape signal is described (section the tape signal) but the files and Stella’s decoder are not; the GL modem control and the CompuMate’s keyboard and tape electronics are described only as far as the cartridge’s own addresses.
Unknown
- Reference: the exact bits of the real Supercharger control register before the first write (the BIOS shows only that ROM is mapped at
$1800-$1FFFand powered, see above; Stella resets it to$00), (Stella, javatari and z26 start at$00, Gopher2600 with writes enabled; see the stage 19 paragraph above), and the bit-level framing of the tape stream after the first eight header bytes (the BIOS tape routines and the header handling are traced in stage 19 as far as the paragraph above states). - Reference: the layouts are checked against source text and built ROMs and, for the schemes of commercial games (F8, F6, F4 with and without RAM, FA, FE, E0, E7, 3F, UA, F0, CV, DPC and AR), against 597 real dumps (see the overview); Real dumps now also exist for DPC+ (several, including the batari Basic games), CDF0, CDF1, CDFJ, CDFJ+ (32, 64 and 128 KiB), BUS1, BUS2, BUS3, CTY (the 32 KiB and the 60 KiB Stella build), ELF (two), EF, EFSC, SB, X07, 3E (8, 32 and 480 KiB), 3E+, FA2, 4A50, BF, BFSC, DF, DFSC, 0840, MDM, GL, 0FA0, JANE, WD and CM (all in
samples/a26/real/homebrew; the checks are in the page tests and list one file per scheme in the README there). No real ROM was found for BUS0, 3EX, UASW, EFF, 03E0, DevCard or the multicarts here (WF8 has two real dumps, Zaxxon and Smurf Rescue in Gargamel’s Castle; the TV Boy has one, a 512 KiB dump) (MAME’s software list names a few multicarts but no one of them is a dump on this machine), and the 6502 side of those, and the ARM entry points of BUS0 (the ARM code), are Stella’s numbers and built ROMs only. Two files that earlier looked like unexplained 2600 dumps are not 2600 programs at all: the 32 KiB file Pegged (detected as FA2 because Stella’s FA2 rule only asks that the last 3 KiB are zero) starts withF3 31 00 E0, which isDI; LD SP,$E000on a Z80, so it is a Z80 program of some other machine (which one is not identified); and the 256 KiB Shinobi beta (detected as SB by size only) is a Sega Mega Drive ROM, with the text “SEGA MEGA DRIVE” at offset$100. Neither needs a 2600 scheme. A further search (stage 10) of the No-Intro and TOSEC sets on archive.org (about 2,200 files) found no dump of those schemes either: the only multicart data are F0 files (32 in 1, Megaboy, whose 16 STA $FFF0 are one per bank) and four 64 KiB pieces of the “128-in-1 Junior Console” without a menu, which the viewer calls F0 or 3F but which touch no $1FF0; “Sorcerer’s Apprentice (USA)” is an F8 dump (it switches with $1FF9 and never touches $0220 or $0240), not UASW. Gopher2600 (WF8: the value written to $1FF8, bit 2; UA: address mask $1260, hotspots swapped for one SHA-1 only) and javatari (UA at exactly $0220 and $0240, F0 at $1FF0) agree with the table above; javatari has none of BUS, 3EX, WF8, EFF, 03E0, TV Boy or DevCard. MovieCart now has real files (samples/a26/real/moviecart, from the GPL 2 repository of the cartridge’s designer), which the viewer reads as MVC fields. The DPC music oscillator is an RC circuit that differs from cartridge to cartridge (Horton), so it has no true rate; DPC+ and CDF run their music at Stella’s fixed 20,000 clocks per second, whose origin in the hardware is not in any source read; the DPC+ driver’s jitter and stable behaviours are not checked against hardware. - Reference: whether D5 high makes the CompuMate RAM write-only (Horton) or only enables writing (Stella; the ROM does not show which), what BUS0’s increment write
$1030-$103Fdoes (Stella’s code does not set the increment), the DPC chip’s draw-line enable bit in$105Cand the random number generator’s reset value (the patent settles read functions 3 to 6, the music mixing order, the 42 kHz design oscillator and the generator clocking; see what the patent settles). Megacart (MC) is described from Horton but not modelled or detected. - Reference: MAME against Stella on real dumps (stage 17). MAME 0.289 (tiny a2600 build) and Stella 8.0 (libretro, RAM zeroed, cartridge type set) ran the same dumps for 300 frames, one MAME snapshot against Stella’s pixel-run rows (probe
scripts/a26/mame-snap.lua,mame-cmp.mjs; MAME’s picture is 8 pixels wider on the left). Identical rows: FE Robot Tank 170 of 170; F4SC Fatal Run 127 of 127; DPC Pitfall II 174 of 174; 3F Polaris 192 of 192; FA Omega Race 92 of 92; UA Pleiades 60 of 60. Near-identical: E0 Popeye 189 of 195 (MAME shows 189 rows); FE Decathlon 164 of 179; E0 Montezuma’s Revenge 137 of 151; UA Funky Fish 70 of 74; F0 MegaBoy 218 of 223 (Stella shows 227 rows, MAME 223, and the best match needs a 5-row shift). Different: E7 BurgerTime 53 of 91 and Bump ’n’ Jump 0 of 177 (MAME shows 223 rows; not traced, MAME’s E7 RAM or the start-up may differ), E0 Gyruss 16 of 71 (both show the game, the state at frame 300 differs), CV MagiCard 4 of 20, and Fatal Run when Stella is set to plain F4 instead of F4SC (15 of 140; MAME detects the SuperChip RAM). MAME has no EF, 3E+, 3E, CDF, BUS or WF8 mapper, so Zippy (EF) is black there. Both programs read the same dumps and implement the same published rules, and MAME’s slot code started from other emulators’ tables, so this is agreement of emulators, not hardware, and is not used to settle a hardware fact; where rows differ the cause was not traced (game state timing is the likely one). - Reference: routes tried in stage 17 without a result for these schemes: 3EX (the only designer text is Thomas Jentzsch’s class comment in Stella’s
Cart3EX.hxx, already used above; no dump, forum or repository document found), BUS0 (Stella’s own comment calls it “very old demos when BUS was in flux, not supported in Stella”; no dump, so the behaviour is Stella-less and unknown), EFF, 03E0, DevCart and the UASW, WF8 and Digivision dumps (web searches of AtariAge, Atarimania, the Compendium and QotileNet gave no scheme document; the AtariAge forum pages that could hold them returned 403 to automated reads and were skipped, not bypassed). The CompuMate keyboard and the light gun were not given a test ROM: no emulator besides Stella models them, and no schematic of either was found; the Spectravideo and XG-1 pages found describe the products, not their electronics. - Reference: what a read of
$1FF8does on a WF8 cartridge: Stella always selects bank 0, Gopher2600 takes bit 2 of the ROM byte on the data bus, so the two emulators disagree. Both real WF8 dumps (Zaxxon and, since stage 18, Smurf Rescue in Gargamel’s Castle, MD5 7b0ebb6bc1d700927f6efe34bac2ecd2, the one Stella’s database names; AtariAge topic 367157) only write to$1FF8: a scan of every byte offset of the Smurf image (probescripts/a26/hotspot-scan.mjs) finds threeSTA $FFF8(bank 0 at$FFE6, bank 1 at$F002and$FFF0) and no read, no use of$FFF9, and the indexed hits are data. No hardware document says what a read does. - Reference: findings from the forum threads and issue trackers read in stage 18 (Chrome, one tab at a time; none of these is a measurement of the cartridge hardware unless the line says so). RSYNC, AtariAge topic 197621 “RSYNC, repositioning, and emulation” (May 2012): author measurement on real hardware: Eckhard Stolberg (PAL Jr. consoles) reports that objects land three pixels further right after a WSYNC than after an RSYNC, a rolling picture at RSYNC cycle 22 (NTSC test ROM) and 38 (PAL), and a shifted top of picture when RSYNC is strobed at cycle 24 or later; author measurement on real hardware: Omegamatrix (15 May 2012) sees the picture roll at RSYNC 22 and sink at 37, the RSYNC bar level with the WSYNC bar for RESP0 at cycles 1 to 22, three pixels behind for 23 to 75 and one pixel to the left at 76, which he calls an anomaly at RESP0 cycle 1. These are relative offsets between two strobes; they give no absolute pixel for a strobe in cycles 0 to 22, so the choice between Towers’ pixel 1 and the Stella and Nocash pixel 3 stays Unknown. Stella issue 5 (DirtyHairy): RSYNC resets the horizontal counter without halting the CPU, and the effects that make a TV lose sync are not modelled; Stella issue 967 (DirtyHairy): the colour clock is set to 225 in the write cycle (“determined with test programs”, hardware not stated). Tigervision, topic 266245 (DirtyHairy, TomSon, June 2017): a cartridge cannot tell a read from a write because R/W is not on the cartridge port (also bcombee, topic 295973), so 3F and 3E bank switches are triggered by the address alone; the out-of-range bank number is not answered there. TV Boy, topic 301776 (bfstats quoted by a later poster; a board description, not a measurement): the cartridge has a 512 KiB ROM with 127 hacked 4 KiB games and a 4 KiB menu program, an 8-bit 74LS273 latch that latches the top seven ROM address bits and so selects the 4 KiB segment, a 74HC00 and a 74HC32 for address decoding and reset, and once programmed the latch lets the processor see only that game until the unit is reset; this matches Stella’s lock after the first non-zero selection. For the one dump the bank-select routine (bank 0,
$FBF9) stores the numbernto the address$F8nwithnin the accumulator, so the address and the data are the same number and the dump cannot tell whether the latch takes address bits or data bits. Digivision, topic 103737 page 49 (Omegamatrix, 8 June 2014, from his reading of two Brazilian dumps, not a measurement): the Fathom dump had its banks in reverse order and the hotspots were changed to a different logic chip,$02C0for bank 0 (normally$1FF8) and$02A0for bank 1 (normally$1FF9); both addresses fall under Stella’s$1260mask. The two dump attachments could not be fetched (the forum returned nothing to the browser download), so the UASW table above is not checked against them. CompuMate, Stella issue 79 (sa666666, thrust26): tape load and save through WAV data and a keyboard are in Stella; no schematic is linked. Not found: any post that states how EFF, 03E0, 3EX, DevCart or BUS0 behave beyond Stella’s source; Stella issue 1176 asks whether theCart3EX.hxxcomment is correct and has no answer. - Reference: the 6502 side of 3E+, EF and EFSC was run on two independent emulators (Stella 8.0 as a libretro core and Gopher2600 0.50.0), each with a real game: Zelda demake (3E+), Zippy the Porcupine (EF, 64 KiB) and Cave Raider (EFSC) for 120 frames, with every row of non-black pixels identical in both. Both emulators run only the 6502 side of the dumps, the cartridge hardware is not measured, so these are agreement of emulators and not hardware measurements. The light-gun trigger polarity and offset, the CompuMate keyboard (only Stella models it: Gopher2600, javatari and MAME’s
compumat.cpp, a skeleton by its own header, do not) and BUS0, 3EX, EFF, 03E0, DevCard, TV Boy and MovieCart behaviour beyond the files insamples/a26/realhave no second emulator, no dump and no hardware document; the MiSTer Atari 2600 core (VHDL,rtl/A2601top.vhd) implements F8, F6, F4, FE, E0, 3F, FA, CV, UA ($0220 selects bank 0, $0240 bank 1), E7, F0, 32K and Pitfall II, and the UnoCart-2600 firmware (C,main.c) implements 2K, 4K, F8, F6, F4 (with and without RAM), FE, 3F, 3E, E0, 0840, CV, EF and EFSC, F0, FA, E7, DPC and AR, but neither implements BUS, 3EX, WF8, EFF, 03E0, 3E+, TV Boy or DevCard. The cartridge-firmware source of the UnoCart-2600 agrees with the table for EF and EFSC:emulate_FxSC_cartridge(0x1FE0, 0x1FEF, ...), so an access to$1FE0to$1FEFselects 4 KiB bank 0 to 15 of the 64 KiB image (cartridge-firmware source:samples/a26/sources/firmware/UnoCart-2600-main.c, lines 1552 and 1554, UnoCart-2600 commit e2e4dd88ab09d5f71fb9d7208f19c79a62eb9f2c; the MiSTer core, commit 59411dc51e6fa489688f4a921489c48a1777d7de, is GPL 3 like the UnoCart repository). - Reference: third emulator and the 3E difference (stage 15). javatari 5.0.4 (Paulo Peccin, JavaScript) was run headless in Node with a stub for the browser, with RAM zeroed (
Math.random()returns 0) in javatari,plr.ramrandom=0and an emptyplr.cpurandomin Stella 8.0, and Gopher2600’s default (zeroed). With that, Stella, Gopher2600 and javatari give the same pixel runs for 3E Boulder Dash 32 KiB (Gopher2600 and javatari; Stella differs only by the printed seed line, no pixel row) and for the 480 KiB 3E test ROM, and Stella and Gopher2600 agree on the 8 KiB 3E demo. So the 3E difference seen in stage 14 was Stella’s random power-up RAM and registers, not a banking difference. javatari differs on the 8 KiB 3E demo: Stella (checkSwitchBank) and Gopher2600 ((data & 0x3f) % NumBanks) wrap a bank number to the available banks, javatari ignores a write above its last bank (if (bank <= selectableSliceMaxBank)); which one the real Tigervision logic does is not documented. The UA test ROMscripts/a26/ua-test.asm(read and write of$0240,$0220, and neighbours) gives identical results in all three emulators for the exact addresses and for$0260(no switch); the mirrors differ: Stella and Gopher2600 switch for$0A40,$0A20and$0340(mask$1260), javatari switches only at exactly$0220and$0240(as Kevtris’s text says), and MAME’srom.cppdecodes$0220-$023Fand$0240-$027F. Which mirrors the real UA PCB decodes is therefore Unknown. F0 MegaBoy: Stella and javatari give the same pixels except that javatari reports 14 more solid rows at the frame edge (a frame crop, not a bank difference); Gopher2600 has no F0 mapper. Stella, Gopher2600 and javatari all derive from the same descriptions of the schemes (Stella’s documentation, Kevtris), so they are not independent of those documents; none is a hardware measurement. - Reference: fourth emulator, MAME source and CompuMate (stage 16). z26 4.07 (John Saeger, C, GPL 2; its detection signatures come from MAME and Stella, but its bank code is its own) was built from source and run headless with the same pixel-run comparison; for 3E Boulder Dash 32 KiB Stella, Gopher2600, javatari and z26 give the same rows, and on the UA test ROM z26 behaves like javatari (exact
$0220and$0240only), so UA has two emulators for the exact addresses and a 2 to 2 split for the mirrors (Stella and Gopher2600 mask$1260; javatari and z26 exact). MAME’srom.cpp(MAME 0.289, built here as the tinya2600.cpptarget and run headless with a software-rendered snapshot at 3 seconds; its UA test-ROM picture differs from Stella’s in the rows of the mirror tests, as its ranges predict, and on the 3E 32 KiB Boulder Dash it showed a black screen after 8 seconds, so MAME is not an agreeing emulator for 3E or the UA mirrors) decodes UA as$0200-$027Fwith bit 6 of the address selecting the bank (so$0220-$023Flow,$0240-$027Fhigh), 3E as writes to$3E(RAM bank) and$3F(ROM bank), and F0 as reads or writes of$1FF0-$1FF1and$1FF8-$1FF9selecting one of four 4 KiB banks, which is not the Megaboy rule ($1FF0cycling) used above; MAME has no BUS0 and no light-gun device (searched undersrc/devices/bus/vcsanda2600.cpp). CompuMate: running a CompuMate ROM in z26 with a trace of its RAM accesses shows the RAM at$1800-$1FFF(not$1000-$17FFas Kevtris’s text reads), written only with D5 high and D4 low and read only with D5 low and D4 low; the read with D5 high is not exercised by the ROM, so whether it is write-only stays Unknown. MAME’scompumat.cpp(51 lines) is a skeleton by its own header and maps only four 4 KiB banks, reset to bank 3. The MAMEtvboydriver (a2600.cpp, comment marked “(?)”) takes the data written anywhere in$1800-$1FFFas the 4 KiB bank of a 512 KiB ROM, bank 0 at reset. A TV Boy II dump was found on archive.org (tv-boy-ii-1992-akor, 524,288 bytes, MD5 1b5a8da0622bffcee4c5b42aed4e0ef0, saved in the research folder); disassembling its bank 0 with the site’s decoder (scripts/a26/rom-walk.mjs) found no direct store to$1800-$1FFFin the code reached from the reset vector, so the bank select seen in MAME is not confirmed by the ROM. Stella’sLightgun.cxxreads the fire button at SWCHA bit 4 (left) or bit 0 (right) and the light detect at INPT4 or INPT5 bit 7, low when the beam is within 15 colour clocks of the mouse with per-game offsets from a table of MD5s; z26 latches INPT4 to$00once the beam passes the shot position; the two differ (window versus latch) and neither is a measurement.