NINA Header Version 1.00                      
========================


Overview
--------

The NINA header precedes a Nintendo Entertainment System (NES) Program ROM. 
The information stored in the header describes hardware requirement.

Primary Data Block
------------------

Identifier      "NINA"
Size            48 Bytes

Block Information
  0x000000  Word    Maker Code         
  0x000002  Byte    Game Code [4]          
  0x00000E  Byte    Special Version     
  0x00000F  Byte    Sub-Number     
  0x000010  Byte    Game Title [21] 
  0x000025  Byte    Map Mode
  0x000026  Byte    Catridge Type
  0x000027  Byte    ROM Size            
  0x000028  Byte    RAM Size
  0x000029  Byte    Destination Code
  0x00002A  Byte    Licensee Code        
  0x00002B  Byte    Mask ROM Version    
  0x00002C  Word    Check Sum (PRG) 
  0x00002E  Word    Check Sum (CHR) 
End Block

The Program ROM appears directly after the header.


1.  Maker Code
    2-digit ASCII code assigned by Nintendo

2.  Game Code
    4-digit Game Code assigned by Nintendo. If the game program was assigned
    a 2-digit code, the code will be followed by 2 "Space" codes.   

3.  Special Version
    Assigned when necessary to distinguish between original and non-original 
    mapping.

4.  Sub-Number
    Assigned when necessary to distinguish between the same cartridge type
    or identify a custom mapper. 

5.  Game Title
    The game title using ASCII code.

6.  Map Mode
    Video RAM (VRAM) configuration. 

    The high-order bit selects fixed/variable mapping.
   
    00H - Horizontal           CHR A10 = A10
    01H - Vertical             CHR A10 = A11
    02H - Single-Screen        CHR A10 = NC
    03H - Single-Screen        CHR A10 = +5V
    8*H - Mapper Control

7.  Cartridge Type
    The cartridge configuration.
   
    *0H - ROM
    *1H - ROM + RAM
    *2H - ROM + RAM + Battery
    *3H - ROM + Battery

    1*H - C*ROM
    2*H - U*ROM
    3*H - B*ROM
    4*H - G*ROM
    5*H - A*ROM
    6*H - D*ROM (Namcot 108)
    7*H - S*ROM (MMC1)
    8*H - P*ROM (MMC2)
    9*H - T*ROM (MMC3)
    A*H - F*ROM (MMC4)
    B*H - E*ROM (MMC5)
    C*H - H*ROM (MMC6)
    D*H - J*ROM (Sunsoft FME-7)
    E*H - Custom (see mappers)
    F*H - Other

8.  ROM Size
    The Program and Character ROM size. 
     
    PRG   Size                      CHR   Size
    *3H - 64K Bit                   3*H - 64K Bit
    *4H - 128K Bit                  4*H - 128K Bit
    *5H - 256K Bit                  5*H - 256K Bit
    *6H - 512K Bit                  6*H - 512K Bit
    *7H - 1M Bit                    7*H - 1M Bit
    *8H - 2M Bit                    8*H - 2M Bit
    *9H - 4M Bit                    9*H - 4M Bit
                             
    0*H - CHRRAM
                             
9.  RAM Size
    The RAM size as described by the table below. If RAM is not installed,
    store 00H

    WRAM-0                          WRAM-1
    *0H - No RAM                    0*H - No RAM
    *1H - 16K Bit                   1*H - 16K Bit
    *3H - 64K Bit                   3*H - 64K Bit
    *5H - 256K Bit                  5*H - 256K Bit

10. Destination Code
    The region code as described by the table below.
    
    PRG  CHR   Destination          Code
    *0H  0*H   Japan                (see licensee codes)
    *1H  1*H   North America        NES
    *2H  2*H   Europe               PAL
    *3H  3*H   Scandinavia          SCN
    *4H  4*H   Sweden               SWE
    *6H  6*H   France               FRA
    *7H  7*H   Holland              HOL
    *8H  8*H   Spain                ESP
    *9H  9*H   Germany              FRG
    *AH  A*H   Italy                ITA
    
11. Licensee Code
    The Licensee code as assigned by Nintendo. If Licensee code 33H is used
    Maker Code and Game Code should contain valid data.

12. Mask ROM Version
    The version number of the Program and Character mask ROM.

15. Check sum (PRG)
    The Program ROM check Sum.

16. Check Sum (CHR)
    The Character ROM check Sum.


Production Board 
-----------------
This information is valid for boards produced by Nintendo. 

Sub-Number is used in conjunction with Cartridge Type to identify the
production board. The 5 low-order bits are used to identify the second
character (sub-Char). The 3 high-order bits the third character 
(special-Char). 

If sub-Char is 00H, special-Char should be ignored.
 
         sub-Char   special-Char
    00H     N/A         N/A
    01H     'A'         '1'
    02H     'B'         '2'
    03H     'C'         '3'
    04H     'D'         'S'
    05H     'E'
    ...
    ...
    ...
    18H     'X'
    19H     'Y'
    1AH     'Z'      


Example 1:
  Cartridge Type = 92H (T*ROM)
  Sub-Number = 0BH ('K')
  Board = TKROM

Example 2:
  Cartridge Type = 20H (U*ROM)
  Sub-Number = 2EH ('N', '1')
  Board = UN1ROM


Licensee Codes
--------------

  01H  HVC - Nintendo   
  08H  CAP - Capcom
  09H  GAM - Hot-B
  0AH      - Jaleco 
  0BH  CDS - Coconuts
  18H  HFC - Hudson Soft
  21H  TEC - Tokai Engineering (Sunsoft)
  28H  KTB - Kotobuki System
  29H  KKS - SETA
  35H  HCT - Hector
  49H  TIX - Irem  
  4AH  GAT - Gakken
  85H  GOI - GO.1
  86H  TIM - Tokuma Shoten Intermedia
  8BH  BPS - Bullet-Proof Software
  8CH  VIC - Vic Tokai
  8EH  CTS - Character Soft
  8FH  IMX - I'Max
  95H  VAR - Varie
  96H  YZW - Yonezawa
  99H  PAC - Pack-in-video
  9AH  NBF - Nichibutsu
  9BH  TCF - Tecmo
  9CH  IMA - Imagineer
  9EH  FAC - Face
  A2H  SCO - Scorpion Soft
  A4H  KDS - Konami
  A5H  KAC - KAC
  A6H  KWD - Kawada
  A7H  TFC - Takara
  A8H  ROY - Royal
  A9H  TJC - Technos
  AAH  VFR - Victor
  ABH  HSS - Hi-Score Software
  ACH  TDF - Toei
  ADH  THF - Toho
  AEH  TSS - TSS
  AFH      - Namco
  B1H  HSP - ASCII
  B2H  BAN - Bandai
  B3H  SFC - Soft Pro
  B4H  EFC - Enix
  B6H  HAL - HAL
  B7H  SFX - SNK
  B9H  PHF - Pony Canyon
  BAH  CBF - Culture Brain
  BBH      - Sunsoft 
  BCH  TFS - Toemiland (Toshiba EMI)
  BDH  CBS - CBS/Sony Group
  BFH  SAC - Sammy
  C0H  TFC - Taito
  C2H  KSC - Kemco-Seika
  C3H  SQF - SQUARE
  C4H  GTS - Tokuma Soft
  C5H  DFC - Data East
  C6H  TKS - Tokyo Shoseki/Tonkin House
  C7H  ECF - East Cube
  C8H  KOE - KOEI
  C9H  UPL - UPL
  CAH  KDS - Konami (Ultra Games/Palcom)
  CBH  VAP - Vap
  CCH  USE - USE
  CDH  MDC - Meldac
  CEH  PNF - Pony Canyon
  CFH  ANG - Angel
  D0H  DTF - Disco/Taito
  D1H  SFL - Sofel
  D2H  BTC - Bothtec (Quest)
  D3H  SEI - Sigma Enterprises
  D4H  ASK - ASK Kodansha
  D5H  KYG - Kyugo Boueki
  D6H  NAX - Naxat Soft
  D8H  STE - Status (Capcom)
  D9H  BAP - Banpresto
  DAH  TOM - Tomy
  DBH  HIR - Hiro
  DDH  NCS - NCS
  DEH  HUM - Human
  DFH  ALT - Altron
  E0H  DCE - K.K.DCE
  E1H  TCC - Towa Chiki
  E2H  SHI - Shinsei/Yutaka
  E3H  VRE - Varie
  E5H  EPO - Epoch
  E7H  ATH - Athena
  E8H  ASM - Asmik
  E9H  NAT - Natsume
  EAH  KIN - King Records
  EBH  ATL - Atlus
  ECH  ESF - Epic/Sony Records
  EDH  PIX - Pixel
  EEH  IGS - IGS
  EFH  FMI - Fujimic
  F0H  WAV - A-Wave
  ???  DBF - dB-SOFT
  ???  TOA - ToaPlan
  ???  NMK - NMK (Nihon Micom Kaihatsu)
  ???  RES - Rix Soft
  ???  VIS - Visco
  ???  MAM - M&M
  ???  TKR - Takeru
  ???  SAN - Sanritsu


Custom Mappers
--------------
Cartridge Type Sub-Number

  10H  Namcot 108
  11H  Namcot 163
  12H  Namcot 175
  13H  Namcot 340
  20H  Jaleco JF-11
  21H  Jaleco JF-13
  22H  Jaleco JF-16
  23H  Jaleco JF-17
  24H  Jaleco JF-19
  25H  Jaleco SS88006
  30H  Taito X1-005
  31H  Taito TC0190
  32H  Taito X1-017
  33H  Taito TC0350
  40H  Konami VRC
  41H  Konami VRC II (A)
  42H  Konami VRC II (B)
  43H  Konami VRC III
  44H  Konami VRC IV
  45H  Konami VRC V
  46H  Konami VRC VI
  47H  Konami VRC VII
  50H  Irem TAM-S1
  51H  Irem IF-09
  52H  Irem IF-12
  53H  Irem G-101
  54H  Irem H3001
  60H  Sunsoft-1 (C)
  61H  Sunsoft-1 (P)
  62H  Sunsoft-2
  63H  Sunsoft-3
  64H  Sunsoft-4
  65H  Sunsoft-5
  66H  Sunsoft FME-7
  70H  Bandai FCG-2
  71H  Bandai LZ93D50
  72H  Bandai LZ93D50 (Jump-2)
  73H  Bandai OekaKids
  80H  Color Dreams
  81H  Tengen Rambo-1
  82H  Camerica BF9093
  83H  Camerica BF9096
  84H  Camerica BF9097  
  F0H  74*139/74
  F1H  74*161/32
  F2H  74*161/138
  F3H  74*161/161/32
  F4H  74*174/138


Last updated 27th August 2013