Skip to main content
NESdev Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

TNES

The TNES file format was discovered in Nintendo 3DS Virtual Console games. It fulfills much the same role as the iNES format, but it can also encapsulate QD images for FDS games and avoids allegations of having misappropriated a format from the emulation scene.

TNES Header Format

OffsetContents
0-3“TNES” ($54 $4E $45 $53)
4Mapper (TNES codes, not iNES codes)
5PRG ROM size in 8192 byte units
6CHR ROM size in 8192 byte units
7WRAM (0 for none, 1 for 8192 bytes)
8Mirroring (0 mapper-controlled; 1 horizontal; 2 vertical)
9Battery (0 none; 1 battery present)
10-11Used only for FDS images; purpose unknown, possibly side count
12-15Zero

TNES Mapper Numbers

Mapper numbers differ, and Nintendo’s own ASIC mappers have a contiguous block:

TNES mapperiNES mapperMeaningNotes
00NROM
11SxROM (MMC1)
29PNROM (MMC2)
34TxROM (MMC3)And presumably HKROM (MMC6)
410FxROM (MMC4)
55ExROM (MMC5)
62UxROM
73CNROM
97AxROM
3186Jaleco JF-13
100FDSROM image consists of a modified 8192 byte BIOS[1] followed by QD sides.
Size bytes 5-9 are zero, but 10-11 are used.

References

  1. ↑ TCRF: FDS BIOS modifications in 3DS VC

Edit this page on GitHub