NES 2.0 submappers: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(→‎004: MMC3: I've (we've) left this as "outline" for too long. Provide a suggestion)
No edit summary
 
(92 intermediate revisions by 7 users not shown)
Line 2: Line 2:
Most emulators using [[iNES]] format distinguish these using CRC, SHA-1, or other hashes of the PRG ROM and CHR ROM, but this works only for games published prior to 1997, not for fan translations or ROM hacks, and not for new games on the same mapper.
Most emulators using [[iNES]] format distinguish these using CRC, SHA-1, or other hashes of the PRG ROM and CHR ROM, but this works only for games published prior to 1997, not for fan translations or ROM hacks, and not for new games on the same mapper.


As of early 2012, no submappers were officially defined, but in mid-2012, a drive to collect proposals began.
Submapper 0 represents the default iNES behavour, so that backward compatibility is maintained with existing ROMs.
One proposed general principle for backward compatibility is that submapper 0 be reserved for the default iNES behavior.


In September 2012, [http://blog.kevtris.org/blogfiles/nes/ Kevin Horton finally published a few definitions].
Submapper allocations that are listed as "deprecated" were assigned by kevtris' original proposal, but have no known use cases. The deprecation reserves these unused allocations to maintain continuity and compatibility.


{{RFC 2119}}
'''This document is a living specification. Proposals for new submappers should be made at:''' [[NES 2.0 submappers/Proposals|Proposals]].
If value X is "deprecated in favor of" value Y, value X was valid in a previous revision of the submapper spec but is NOT RECOMMENDED anymore. Emulators SHOULD implement them as if they had value Y, and newly released ROM images SHOULD use value Y instead.
== 001: MMC1 ==
Most [[SxROM|MMC1 boards]] wire all PRG ROM address lines A14-A18 to the mapper's output in a fairly predictable manner.
Boards with CHR RAM wire PRG ROM A18 and the PRG RAM address lines to otherwise unused CHR bank outputs.
But among boards designed to take a 32 KiB PRG ROM, some (SIROM) connect PRG ROM A14 to the MMC1's output, others (SEROM, SHROM, SH1ROM) directly to CPU A14.


0: Normal behavior. The PRG ROM size and PRG RAM size determine the function of bits.<br>
== [[iNES Mapper 001|001]]: [[MMC1]] ==
1, 2, 4: As 0. Deprecated in favor of 0. ([http://blog.kevtris.org/blogfiles/nes/submappers.txt In the Kevtendo], 1 meant SUROM, 2 meant SOROM, and 4 meant SXROM. Since then, the community standardized on using size fields instead.)<br>
Most [[SxROM|MMC1 boards]] are compatible with the standard mapper 1 behavior (submapper [[#001: 0|0]]).
3: Treat bit 4 of the PRG bank field as always 0 instead of using it to disable PRG RAM. Deprecated in favor of [[iNES Mapper 155]] so that ROM images stay reasonably compatible with emulators that do not understand NES 2.0.<br>
5: SEROM, SHROM, SH1ROM style: PRG ROM A14 connected directly to CPU A14 (and MMC1 A14 input) instead of MMC1 A14 output.  Ignore MMC1 A14, ignore LSB of PRG bank, weird behavior of switchable PRG bank if PRG > 32KiB.


== 002, 003, 007: [[UxROM]], [[CNROM]], [[AxROM]] ==
Boards with CHR-RAM usually reuse the CHR banking lines to address other things.
Status: Draft
* SUROM, SOROM, and SXROM implement extra PRG-ROM and PRG-RAM banking (''deprecated'' submappers [[#001: 1, 2, 4 = SUROM, SOROM, SXROM|1, 2, 4]]).
* SNROM implements a redundant PRG-RAM enable (no assigned submapper).
 
The variant MMC1A chip was assigned to [[iNES Mapper 155|mapper 155]] (''deprecated'' submapper [[#001: 3|3]]).
 
Most boards with 32k of PRG-ROM have no PRG banking: SEROM, SHROM, SH1ROM (submapper [[#001: 5 Fixed PRG|5]]).
 
=== 001: 0 ===
Normal behavior.
 
=== 001: 1, 2, 4 = SUROM, SOROM, SXROM ===
'''Deprecated.'''
 
These submappers are a redundancy. The difference between these boards and the "normal" MMC1 implementation is exclusively dependent on the sizes of CHR, PRG RAM, and PRG ROM. Because of this, the addition of PRG RAM to the NES 2.0 specification was enough to make these compatible with submapper 0.
 
These three boards used 8k CHR RAM, and reused the CHR banking bits to bank PRG ROM and RAM instead. The specific boards can be detected by these sizes, or simply emulated together in submapper 0:
 
$A000 and $C000:
4bit0
-----
EDCBA
|||||
||||+- CHR A12
|||+-- CHR A13 if CHR >= 16k
||+--- CHR A14 if CHR >= 32k; and PRG RAM A13 if PRG RAM = 32k (submapper 4)
|+---- CHR A15 if CHR >= 64k; and PRG RAM A13 if PRG RAM = 16k (submapper 2)
|                              or PRG RAM A14 if PRG RAM = 32k (submapper 4)
+----- CHR A16 if CHR = 128k; and PRG ROM A18 if PRG ROM = 512k (submappers 1, 4)
 
The following games are on SUROM (submapper 1):
* ''[http://bootgod.dyndns.org:7777/profile.php?id=1273 Dragon Warrior III]''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=1276 Dragon Warrior IV]'' / ''[http://bootgod.dyndns.org:7777/profile.php?id=1526 Dragon Quest IV]''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=1531 Ninjara Hoi!]''
 
SOROM (submapper 2):
* ''[http://bootgod.dyndns.org:7777/profile.php?id=919 Genghis Khan]'' / ''[http://bootgod.dyndns.org:7777/profile.php?id=1528 Aoki Ookami to Shiroki Mejika: Genghis Khan]''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=497 Nobunaga's Ambition]'' / ''[http://bootgod.dyndns.org:7777/profile.php?id=1529 Nobunaga no Yabou: Zenkokuban]''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=730 Romance of the Three Kingdoms]'' / ''[http://bootgod.dyndns.org:7777/profile.php?id=3170 Sangokushi]''
 
SXROM (submapper 4):
* ''[http://bootgod.dyndns.org:7777/profile.php?id=3642 Final Fantasy I & II]''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=3757 The Best Play Pro Yakyuu Special]''
* ''[http://forums.nesdev.org/viewtopic.php?f=22&t=7231 PR8]''. If extra RAM is missing, it gives a [http://forums.nesdev.org/viewtopic.php?f=2&t=7629 "DOES NOT WORK IN THIS EMULATOR" error].
 
If any NES 2.0 ROMs are found using these deprecated submappers, the CHR, PRG RAM, and PRG ROM sizes must appropriately match to be a valid header.
 
=== 001: 3 ===
'''Deprecated.'''
 
This originally described a submapper that was already implemented as [[iNES Mapper 155]].
 
=== 001: 5 Fixed PRG ===
 
[[SEROM]], [[SHROM]], [[SH1ROM]] use a fixed 32k PRG ROM with no banking support. (This is distinct from [[SIROM]] which has 32k of bankable PRG ROM.)
 
PRG ROM A14 is connected directly to CPU A14 (and MMC1 A14 input) instead of MMC1 A14 output.
 
Existing games are compatible with submapper 0 if $8000-BFFF is initialized to the low bank, and $C000-FFFF is initialized to the high bank. These boards were used in several games: [http://bootgod.dyndns.org:7777/search.php?keywords=serom&kwtype=pcb SEROM] [http://bootgod.dyndns.org:7777/search.php?keywords=shrom&kwtype=pcb SHROM] [http://bootgod.dyndns.org:7777/search.php?keywords=sh1rom&kwtype=pcb SH1ROM]
 
Test ROM:
* ''[http://forums.nesdev.org/download/file.php?id=3753 serom.zip]'' - validates non-existence of PRG banking control. ([http://forums.nesdev.org/viewtopic.php?p=153298#p153298 forum post])
 
=== 001: 6 = 2ME ===
 
The 2ME board is a Famicom Network System MMC1B variant used by ''JRA-PAT'' revisions FCN027-04 and later. It supports 64 big-endian 16-bit words of EEPROM and up to 32 KiB of battery-backed PRG-RAM banked like SXROM. Because the Network System does not expose the PPU bus to the software card, all CHR-related outputs are repurposed to support this storage. See [[MMC1#2ME|MMC1 2ME]] for full details.
 
== [[iNES Mapper 002|002]], [[iNES Mapper 003|003]], [[iNES Mapper 007|007]]: [[UxROM]], [[CNROM]], [[AxROM]] ==
 
Mappers 2, 3, and 7 describe [[:Category:Discrete logic mappers|discrete logic mappers]] that are usually subject to [[Bus conflict|bus conflicts]]. Most of these games are programmed in a way that does not rely on the bus conflict behaviour, but software bugs may expose the difference (e.g. ''Cybernoid''<ref>[http://forums.nesdev.org/viewtopic.php?t=7273 NESDev post] explaining Cybernoid's bugs.</ref>). Because these differences are obscure, the default iNES implementation for mappers 2 and 3 has been inconsistent across emulators, some with bus conflicts, some without. Mapper 7 is normally emulated without bus conflicts, because of a small number of games using the [[ANROM]] board which rely on this.
 
Two submappers allow this ambiguity to be resolved, by selecting a specific behaviour:
 
0: Default iNES behaviour (Emulators should warn the user and/or enforce bus conflicts for mappers 2 and 3, and should warn the user and/or fail to enforce bus conflicts for mapper 7)<br>
1: Bus conflicts do not occur<br>
2: Bus conflicts occur, producing the bitwise AND of the written value and the value in ROM
 
Although all Nintendo-manufactured games using normal CNROM (mapper 3), normal UxROM (mapper 2), and inverted UxROM (mapper 180) had bus conflicts, apparently several unlicensed games require their absence, as does the updated version of ''Donkey Kong'' with the pie factory level<ref>[http://www.nintendoage.com/forum/messageview.cfm?catid=22&threadid=44613 Nintendoage thread] discussing Donkey Kong Pie Factory.</ref>.


AxROM (mapper 7) is the only known licensed discrete logic mapper to unreliably come with [[bus conflict]] prevention circuitry. While no game documented in NesCartDB was released in one region on multiple board variants, several games did change boards when localized.
AxROM (mapper 7) is the only known licensed discrete logic mapper to unreliably come with [[bus conflict]] prevention circuitry. While no game documented in NesCartDB was released in one region on multiple board variants, several games did change boards when localized.


The following table is tentatively offered-<br>
New ROMs are encouraged to specify submapper 2 to verify correct behaviour with bus conflicts.
0: Normal (No advisory statement is made as to whether this game has bus conflicts) (uninvestigated AOROM) <br>
 
1: Bus conflicts MUST NOT be enforced (ANROM) <br>
CNROM with security diodes (mapper 185) has a different set of submapper definitions.
2: Bus conflicts MUST be enforced (AMROM)


Although all Nintendo-manufactured games using normal CNROM (mapper 3), normal UxROM (mapper 2), and inverted UxROM (mapper 180) had bus conflicts, apparently several unlicensed games require their absence, as does the updated version of ''Donkey Kong'' with the pie factory level.[http://www.nintendoage.com/forum/messageview.cfm?catid=22&threadid=44613] This same table should be used for them, too.
=== 002: 0, 1, 2 [[UxROM]] ===
Test ROMs: ([//forums.nesdev.org/viewtopic.php?p=157804#p157804 forum post])
* ''2_test_0.nes'' - Unspecified.
* ''2_test_1.nes'' - No bus conflicts.
* ''2_test_2.nes'' - AND bus conflicts.


CNROM with security diodes (mapper 185) has a different set of submapper definitions.
=== 003: 0, 1, 2 [[CNROM]] ===
Test ROMs: ([//forums.nesdev.org/viewtopic.php?p=154555#p154555 forum post])
* ''3_test_0.nes'' - Unspecified.
* ''3_test_1.nes'' - No bus conflicts.
* ''3_test_2.nes'' - AND bus conflicts.


== 004: MMC3 ==
=== 007: 0, 1, 2 [[AxROM]] ===
Status: Draft
Test ROMs: ([//forums.nesdev.org/viewtopic.php?p=157804#p157804 forum post])
* ''7_test_0.nes'' - Unspecified.
* ''7_test_1.nes'' - No bus conflicts.
* ''7_test_2.nes'' - AND bus conflicts.


No submapper of [[iNES Mapper 004|mapper 4]] is needed to distinguish [[MMC3]] from [[MMC6]], as any board with MMC6-sized PRG RAM will behave like MMC6.
== [[iNES Mapper 004|004]]: [[MMC3]] ==
[[iNES Mapper 004]] represents the most common boards using these four ICs: early [[MMC3]], late MMC3, MC-ACC, and [[MMC6]].


There are three known kinds of IRQ:
There are three known kinds of IRQ:
;MMC3A:/IRQ is asserted on A12 rise, and loading the latch with 0 disables IRQ. Some chips labeled MMC3B also have this "old style" behavior. It's not known if anything requires this behavior.
# NEC MMC3: IRQ is asserted on A12 rise, and loading the latch with 0 disables IRQ. At least one unlicensed game relies on this "old style" behavior.
;MMC3C:/IRQ is asserted on A12 rise, and loading the latch with 0 produces an IRQ on every scanline. Some chips labeled MMC3B also have this "new style" behavior. Some later games rely on this behavior.
# Sharp MMC3: IRQ is asserted on A12 rise, and loading the latch with 0 produces an IRQ on every scanline. MMC6 also behaves this way. Some later games rely on this "new style" behavior.
;MC-ACC:/IRQ is asserted on A12 fall, typically four pixels later than MMC3C. Interrupts can be produced every scanline, like the MMC3C. Found on second-source PCBs manufactured by Acclaim.
# MC-ACC: IRQ is asserted on A12 fall, typically four pixels later than Sharp MMC3. Interrupts can be produced every scanline, like the Sharp MMC3.<ref>[http://forums.nesdev.org/viewtopic.php?p=128148#p128148 MC-ACC IRQ test results]</ref>
 
There are two known kinds of PRG RAM enable:
# MMC3: One set of enable bits controls the entire chip.
# MMC6: The first and second enables control the first and second half of PRG RAM, and an additional enable in bit 5 of $8000 controls the whole PRG RAM.


The [[TxROM|TEROM and TFROM]] boards have two jumpers that can respectively disable IRQs and force hard-wired mirroring. It is believed that nothing was ever released that used them.
The [[TxROM|TEROM and TFROM]] boards have two jumpers that can respectively disable IRQs and force hard-wired mirroring. It is believed that nothing was ever released that used them.


Tentative suggestion:<br>
=== 004: 0 Sharp MMC3 ===
0: No advisory statement is made (emulator should warn user if 0 is ever written to $C000)<br>
Normal.
1: MC-ACC is used with this game (and is required)<br>
* ''Star Trek 25th Anniversary''
2: MMC3C is known to be required<br>
 
3: Game is known to work fine with both MMC3A and MMC3C<br>
If the header is not using [[NES 2.0]], an implementation without PRG-RAM write protection might be desired instead of a full MMC3. See: [[MMC3#iNES Mapper 004 and MMC6|iNES Mapper 004 and MMC6]]
 
=== 004: 1 MMC6 ===
[[MMC6]] has an alternative PRG-RAM enable and write protection scheme designed for its internal 1k PRG RAM. Uses Sharp MMC3 IRQ behavior.
* ''StarTropics''
* ''StarTropics 2''
 
=== 004: 2 ===
This describes MMC3C with hard-wired mirroring. No licensed games are known to require this, but a number of hacks and plug-and-play console extracts depend on it, and it is a valid configuration of the NES-TFROM circuit board.


Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt MMC3 submappers]; [http://forums.nesdev.org/viewtopic.php?p=128148#p128148 MC-ACC IRQ test results]
=== 004: 3 MC-ACC ===
MC-ACC  


== 005: [[MMC5]] ==
The MC-ACC is found in [http://bootgod.dyndns.org:7777/search.php?keywords=MC-ACC&kwtype=pcb 13 second-source PCBs manufactured by Acclaim]:
Status: Wishlist
* ''Alien³''
* ''George Foreman's KO Boxing''
* ''The Incredible Crash Dummies''
* ''Mickey's Safari in Letterland''
* ''Roger Clemens' MVP Baseball''
* ''Rollerblade Racer''
* ''The Simpsons: Bart vs. The World''
* ''The Simpsons: Bartman Meets Radioactive Man''
* ''Spider-Man: Return of the Sinister Six''
* ''T&C Surf Designs 2: Thrilla's Surfari''
* ''T2: Terminator 2: Judgment Day''
* ''WWF King of the Ring''
* ''WWF WrestleMania: Steel Cage Challenge''


Vertical split mode: <br>
=== 004: 4 NEC MMC3 ===
0: SL (all known hardware) <br>
Loading the latch with 0 disables IRQ.
1: CL <br>
* SuperGame's ''Aladdin'' (Mapper 4 version)


If only one kind (battery or non-battery) of PRG-RAM present: <br>
=== 004: 5 T9552 ===
0: PRG-RAM is contiguous (EKROM, EWROM) <br>
Indicates the presence of a [[T9552#ROM file bank order|T9552]] scrambling chip.
2: PRG-RAM is not contiguous; is split in half across two chips <br>


If both kinds of PRG-RAM present: <br>
== [[iNES Mapper 016|016]]: Bandai FCG board ==
0: Chip 0 is battery-backed (ETROM (note: verify this)) <br>
{{:INES Mapper 016/Submapper table}}
2: Chip 1 is battery-backed <br>
== [[iNES Mapper 019|019]]: Namco 129/163 ==
The NES 2.0 submapper is used to specify the mixing resistor that determines the relative volume of the expansion audio channels against the APU's audio channels:
{{:INES Mapper 019/Submapper table}}
== [[iNES Mapper 021|021]], [[iNES Mapper 023|023]], [[iNES Mapper 025|025]]: [[VRC2]] / [[VRC4]] ==


Pulse waves volume: <br>
These three mappers collect various configurations of [[VRC2]] and [[VRC4]] boards.
0: R1 is 6.8kΩ (as in all games that use expansion audio) <br>
4: R1 is 15kΩ (the nominal value of this resistor) <br>
It is safe to leave this at 0 for all known games.


== 019: Namco 129 and 163 ==
VRC2 is mostly a subset of VRC4, with differences including:
Status: Problem outline
* VRC2 has a serial EEPROM interface which no Konami game ever connected an actual EEPROM to, but one PCB is wired so that it functions as a single bit of memory mapped at $6000-6FFF<ref>http://forums.nesdev.org/viewtopic.php?t=8274 VRC2 memory bit at $6000-$6FFF</ref>
* VRC4 supports horizontal, vertical and one-screen nametable mirroring while VRC2 supports only horizontal and vertical mirroring<ref>http://forums.nesdev.org/viewtopic.php?t=13473 VRC2 mirroring selection tested on hardware</ref>
* VRC4 supports two PRG ROM banking modes, similar to MMC3's. VRC2 only has one PRG ROM banking mode.
* VRC4 has an interrupt device that VRC2 does not.


[[iNES Mapper 019|Mapper 19]] designates the [[Namco 163|Namco 129 and 163]], which supports [[Namco 163 audio|expansion sound]], IRQs, and ROM nametables.
Additionally, different boards connect the address lines for the registers in various arrangements. The three iNES mappers 21, 23, and 25 each combine multiple boards whose addresses overlap. This is enough for game compatibility, but it creates an ugly combination that does not accurately describe the original hardware of either board.


Different 163-using PCBs used a different resistor to change the volume of the expansion audio relative to the internal 2A03 audio. It is unclear if this variation warrants a submapper.
=== Submapper assignment ===


KH allocated a submapper specifically for the N163-using game Mindseeker. It is not known what is different about this game.
Konami's [[VRC2 and VRC4]] mappers have several variations of how the board connects low CPU address lines among A7-A0 to the port select lines of the mapper.
Mappers [[iNES Mapper 021|21]], [[iNES Mapper 021|23]] and [[iNES Mapper 021|25]] each combine two non-overlapping addressing variations, and neglect to specify VRC2 vs VRC4.


<!-- Tentative suggestion:<br/>
Mapper [[iNES Mapper 021|22]] is related, but only supports one variation (VRC2a) and has a different CHR banking arrangement than the others. It does not require submapper disambiguation.
Mapper 19:<br/>
1: N163, expansion audio unused (mixing resistor: 0Ω)<br/>
2: N163, mixing resistor:  4.7kΩ<br/>
3: N163, mixing resistor: 10kΩ<br/>
4: N163, mixing resistor: 15kΩ<br/>
9: N129. Expansion audio is known buggy relative to N163, but other differences are not known.<br/>
-->
Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt KH's submappers]


== 021, 023, 025: VRC4 ==
There are three variations of the [[VRC2]] boards, and five of [[VRC4]]:
Konami's [[VRC4]] mapper has five known variations of how the board connects low CPU address lines among A7-A0 to the port select lines of the mapper.
 
These are spread across three mappers: two for [[iNES Mapper 021|21]], two for [[iNES Mapper 025|25]], and one for [[iNES Mapper 023|23]].
{| class="wikitable sortable"
There are theoretically 8*7 = 56 ways to wire these, but in all five extant possibilities, two adjacent address lines are used: A2 and A1, A0 and A1, A7 and A6, A2 and A3, and A3 and A2.
!colspan=7|VRC2
All 14 combinations of two adjacent address lines easily fit in a submapper number:
|-
<pre>
! Nickname || PCB || A0 || A1 || Registers || iNES mapper || submapper
3210
|-
||||
| VRC2a || 351618 || A1 || A0 || $x000, $x002, $x001, $x003 || 22 || 0
|+++- Which address line corresponds is wired to the A1 in the VRC4a
|-
+---- 0: Use next lower address line for VRC4a A2; 1: use next higher line
| VRC2b || many[[#VRC2bPCB|]] || A0 || A1 || $x000, $x001, $x002, $x003 || 23 || 3
</pre>
|-
The values 0 (A0 and next lower) and 15 (A7 and next higher) are impossible.
| VRC2c || 351948 || A1 || A0 || $x000, $x002, $x001, $x003 || 25 || 3
|}


The [[VRC4]] article describes the ports by mapping them to the variant called "VRC4a" on that page, which uses A2 and A1, putting the four [[VRC IRQ]] ports (IRQ Latch low, IRQ Latch high, IRQ Control, and IRQ Acknowledge) at $F000, $F002, $F004, and $F006.
{| class="wikitable sortable"
{| class="tabular"
!colspan=7|VRC4
! Nickname || A2 || A1 || Registers || iNES mapper || NES 2.0 submapper
|-
|-
| VRC4a || A2 || A1 || $x000, $x002, $x004, $x006 || 21 || 9
! Nickname || PCB || A0 || A1 || Registers || iNES mapper || submapper
|-
|-
| VRC4b || A0 || A1 || $x000, $x002, $x001, $x003 || 25 || 1
| VRC4a || 352398 || A1 || A2 || $x000, $x002, $x004, $x006 || 21 || 1
|-
|-
| VRC4c || A7 || A6 || $x000, $x040, $x080, $x0C0 || 21 || 14
| VRC4b || 351406 || A1 || A0 || $x000, $x002, $x001, $x003 || 25 || 1
|-
|-
| VRC4d || A2 || A3 || $x000, $x008, $x004, $x00C || 25 || 3
| VRC4c || 352889 || A6 || A7 || $x000, $x040, $x080, $x0C0 || 21 || 2
|-
|-
| VRC4e || A3 || A2 || $x000, $x004, $x008, $x00C || 23 || 10
| VRC4d || 352400 || A3 || A2 || $x000, $x008, $x004, $x00C || 25 || 2
|-
| VRC4e || 352396 || A2 || A3 || $x000, $x004, $x008, $x00C || 23 || 2
|-
| VRC4f || - || A0 || A1 || $x000, $x001, $x002, $x003 || 23 || 1
|}
|}


== 023, 025: VRC2 ==
: † {{anchor|VRC2bPCB}} The VRC2b PCBs include: 350603, 350636, 350926, 351179
Mappers [[iNES Mapper 023|23]] and [[iNES Mapper 025|25]] are used for both Konami's [[VRC2]] and VRC4.
 
It is tentatively suggested that submapper 15 (invalid per the VRC4 definitions) be used to mark VRC2-using games, to handle the bit at $6000 and lack of interrupts.
This submapper assigment uses the following symmetrical arrangement:
Neither divides CHR bank select by two, unlike [[INES Mapper 022|#22]].
* 0. Both addressing
* 23.15 is VRC2 ($xxx0, $xxx1, $xxx2, $xxx3)
* 1. Lower addressing, VRC4
* 25.15 is VRC2 ($xxx0, $xxx2, $xxx1, $xxx3)
* 2. Higher addressing, VRC4
* 3. Lower addressing, VRC2 ''(no known examples for mapper 21)''
* 4. ''Higher addressing, VRC2 (no known examples)''
 
=== 021 / 023 / 025: 0 ===
The default implementation acts as a VRC4 (mostly compatible superset of VRC2), and responds to register writes in one or more configurations simultaneously (supporting both boards at once).
 
=== 021 / 023 / 025: 1, 2 VRC4 ===
These allocations each request a single specific addressing scheme for VRC4, rather than the combined version used by submapper 0.
 
* 021: 1 VRC4a
* 025: 1 VRC4b
* 021: 2 VRC4c
* 025: 2 VRC4d
* 023: 2 VRC4e
* 023: 1 VRC4f
 
=== 023: 1 VRC4f ===
Some unlicensed games used a second-source VRC4 clone with register addressing identical to VRC2b (the simplest contiguous in-order interpretation: 0,1,2,3). This was used in ''World Hero''.


== 032: Irem G101 ==
=== 023: 3 VRC2b ===
Status: Draft
Games on PCB 350926 (and its chip-on-board equivalents) rely on a single bit of RAM mapped in the region from $6000-$6FFF. Prior to NES 2.0, these games were supported by implementing WRAM in this region (despite this board not having WRAM). This board was used in ''[http://bootgod.dyndns.org:7777/profile.php?id=3986 Contra (J)]'', ''[http://bootgod.dyndns.org:7777/profile.php?id=1568 Ganbare Goemon 2]'' and ''[http://bootgod.dyndns.org:7777/profile.php?id=2274 Konami Wai Wai World]''.


[http://bootgod.dyndns.org:7777/profile.php?id=3800 Major League] requires hardwired one-screen mirroring and entirely ignores writes to $9000.
There are other VRC2 boards with the same register addressing as 350926 but without this feature ($6000-$6FFF is effectively open bus on them), but no game relies on the ''lack'' of the single bit of memory, so a separate submapper has not been allocated for them. These boards were used in ''[http://bootgod.dyndns.org:7777/profile.php?id=3802 Dragon Scroll]'', ''[http://bootgod.dyndns.org:7777/profile.php?id=2276 Getsu Fuuma Den]'', and ''[http://bootgod.dyndns.org:7777/profile.php?id=2278 Jarinko Chie]''.


0: Normal (H/V mapper-controlled mirroring)<br/>
Since this submapper represents VRC2, it should not implement the VRC4-only one-screen mirroring, PRG ROM banking modes, or IRQ capabilities. Wai Wai World depends on the lack of one-screen mirroring; it will have corrupt backgrounds in the vertically-scrolling stages and the ending if emulated with VRC4 capabilities.
1: CIRAM A10 is tied high (fixed one-screen mirroring) and PRG banking style is fixed as 8+8+16F<br/>


== [[iNES Mapper 034]] ==
=== 025: 3 VRC2c ===
0: Normal (≤ 8KiB CHR implies [[BNROM]], >8KiB CHR implies [[NINA-001]]) <br>
''[http://bootgod.dyndns.org:7777/profile.php?id=3823 Ganbare Goemon Gaiden: Kieta Ougon Kiseru]'' uses the same register addressing as VRC4b, but is VRC2, so this submapper should not implement VRC4-only capabilities.
1: Force NINA-001 behavior even with no CHR ROM


Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt KH's submappers]
=== Test ROMs ===
* [https://forums.nesdev.org/viewtopic.php?p=203716#p203716 VRC2/4 test program]


== [[iNES Mapper 068]] / Sunsoft 4 ==
== [[iNES Mapper 032|032]]: Irem G101 ==
Status: Draft
A variation of this mapper requires hardwired one-screen mirroring and entirely ignores writes to $9000.


In addition to its normal function, the Sunsoft 4 IC was used in <u>Nantettatte!! Baseball</u> which requires different PRG behavior:
=== 032: 0 ===
Normal (H/V mapper-controlled mirroring)


The following table is tentatively offered-<br>
=== 032: 1 Major League ===
0: Normal (max 256KiB PRG)<br>
CIRAM A10 is tied high (fixed one-screen mirroring) and PRG banking style is fixed as 8+8+16F
* ''[http://bootgod.dyndns.org:7777/profile.php?id=3800 Major League]''
 
== [[iNES Mapper 034|034]]: [[BNROM]] / [[NINA-001]] ==
This iNES mapper unfortunately combines the unrelated [[BNROM]] and [[NINA-001]] mappers.
 
=== 034: 0 ===
Normal.
 
To disambiguate the two mappers, emulators have taken various approaches:
* The presense of CHR larger than 8 KiB unambiguously requires NINA-001, as BNROM has no CHR banking.
* The presence of CHR-RAM is taken to imply BNROM, because both extant BNROM games use CHR-RAM.
* CRC tests may be used to select a mapper for previously known ROMs.
* Implement both mappers simultaneously. This is compatible with existing games.
 
Selecting a single implementation based on CHR results in greater accuracy, since no game was ever intended for the combined definition.
 
New programs should not attempt to use a combined BNROM + NINA-001 mapper because this is not reliably available across emulators. Unusual combinations like NINA-001 with CHR-RAM are theoretically possible, but unlikely to be emulated consistently.
 
=== 034: 1 NINA-001 ===
[[NINA-001]] only.
 
Test ROM: ([//forums.nesdev.org/viewtopic.php?p=153334#p153334 forum post])
* ''34_test_1.nes'' - NINA-001 with CHR ROM.
 
=== 034: 2 BNROM ===
[[BNROM]] only.
 
Some unlicensed boards by Union Bond were a variation of BNROM that included PRG RAM. These may also use this submapper if PRG RAM is specified in the NES 2.0 header.
 
Test ROM: ([//forums.nesdev.org/viewtopic.php?p=153334#p153334 forum post])
* ''34_test_2.nes'' - BNROM with CHR RAM.
 
== [[iNES Mapper 068|068]]: Sunsoft 4 ==
In addition to its normal function, the Sunsoft 4 IC was used in ''Nantettatte!! Baseball'', which allowed a second expansion cartridge to be plugged into it.
 
=== 068: 0 ===
0: Normal (max 256KiB PRG)
 
=== 068: 1 Dual Cartridge System ===
1: Sunsoft Dual Cartridge System a.k.a. NTB-ROM (max 128KiB PRG, licensing IC present, external option ROM of up to 128KiB should be selectable by a second menu)
1: Sunsoft Dual Cartridge System a.k.a. NTB-ROM (max 128KiB PRG, licensing IC present, external option ROM of up to 128KiB should be selectable by a second menu)
* [http://bootgod.dyndns.org:7777/profile.php?id=2265 ''Nantettatte!! Baseball'']


== [[iNES Mapper 071]] ==
== [[iNES Mapper 071|071]]: Codemasters ==
Some games use this with 1-screen [[mirroring]], where the mapper's mirroring control bit is wired directly to CIRAM A10. Others have hardwired horizontal or vertical mirroring.
Some games use this with 1-screen [[mirroring]], where the mapper's mirroring control bit is wired directly to CIRAM A10. Others have hardwired horizontal or vertical mirroring.


0: Normal<br>
Another variation of this mapper was used in the ''Quattro'' multicarts, but these have been reassigned to [[iNES Mapper 232|mapper 232]].
1: Single-screen mirroring (Fire Hawk)


The Quattro multicarts have been moved to mapper 232.
=== 071: 0 ===
Hardwired horizontal or vertical mirroring.


Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt KH's submappers]
=== 071: 1 Fire Hawk ===
Mapper controlled single-screen mirroring.
* ''[http://bootgod.dyndns.org:7777/profile.php?id=733 Fire Hawk]''
 
== [[iNES Mapper 078|078]]: Cosmo Carrier / Holy Diver ==
This mapper unfortunately combines two games with incompatible mirroring control.


== [[iNES Mapper 078]] ==
One game uses this with 1-screen [[mirroring]], where the mapper's mirroring control bit is wired directly to CIRAM A10. The other can switch between horizontal and vertical mirroring, using a multiplexer between PPU A10 and PPU A11 whose output is sent to CIRAM A10.
One game uses this with 1-screen [[mirroring]], where the mapper's mirroring control bit is wired directly to CIRAM A10. The other can switch between horizontal and vertical mirroring, using a multiplexer between PPU A10 and PPU A11 whose output is sent to CIRAM A10.


0: Not specified<br>
Historically, pre-NES 2.0 ROM image headers set the 4-screen VRAM flag for Holy Diver and cleared it for Cosmo Carrier.
1: Single-screen mirroring (nibble-swapped [[INES Mapper 152|mapper 152]])<br>
2: Ignore mapper output and use fixed V/H/4 mirroring (effectively nibble-swapped [[iNES Mapper 070|mapper 70]]; not used in commercial games; deprecated)<br>
3: Mapper-controlled H/V mirroring


Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt KH's submappers]
=== 078: 0 ===
Unspecified.


== [[iNES Mapper 185]] ==
=== 078: 1 Cosmo Carrier ===
Status: Draft
Single-screen mirroring (nibble-swapped [[INES Mapper 152|mapper 152]]).
* ''[http://bootgod.dyndns.org:7777/profile.php?id=3968 Uchuusen: Cosmo Carrier]''


A few NROM-like games were released on CNROM boards where all four bits of the latch were solely used as an anti-piracy measure. While a documented heuristic exists for which values were used, we tentatively suggest that the submapper here indicate the value to be written to the latch for normal operation (<tt>submapper = (latch&0x30)/4+(latch&3)</tt>)
=== 078: 2 ===
'''Deprecated.'''


<pre>
This described a variation with fixed vertical mirroring, and WRAM. There is no known use case.
3210 
||||
|||+- Bit 0 (bank number)
||+-- Bit 1 (bank number)
|+--- Bit 4 (diode config)
+---- Bit 5 (diode config)
</pre>


In the case that any of the bits are "don't care", use 0.
=== 078: 3 Holy Diver ===
Mapper-controlled H/V mirroring.
* ''[http://bootgod.dyndns.org:7777/profile.php?id=4038 Holy Diver]''


== 210: Namco 175 and 340 ==
==[[iNES Mapper 085|085]]: Konami VRC7 ==
Status: Problem outline
* VRC7b uses A3 to select registers ($x008), used in Tiny Toon Adventures (Submapper 1).
* VRC7a uses A4 to select registers ($x010), used in Lagrange Point (Submapper 2).


== [[iNES Mapper 091|091]]: Super Fighter III ==
*Submapper 0: YY830624C/JY830848C (J.Y. Company clone board)
*Submapper 1: EJ-006-1 (original ''Super Fighter III'' board).
== [[iNES Mapper 114|114]]: Sugar Softec/Hosenkan, fixed MMC3 scrambling pattern ==
Registers at $6000 (and $6001, although not used for effect by existing games)
* Submapper 0: The Lion King, Aladdin
* Submapper 1: Boogerman (different scrambling pattern)
== [[iNES Mapper 178|178]].1: Gameinis Infrared Sensor ==
* Submapper 0: No infrared sensor present
* Submapper 1: Gameinis Infrared Sensor present
== [[iNES Mapper 185|185]]: CNROM used to selectively disable CHR-ROM ==
A few NROM-like games were released on CNROM boards where all four bits of the latch were solely used as an anti-piracy measure. Games would check that CHR-ROM is disabled unless the latch holds the correct one of the four possible bank values. See this [http://forums.nesdev.org/viewtopic.php?f=3&t=16700 thread] for test ROMs and example implementation code.
=== 185: 0 ===
Correct bank value unknown. A heuristic that works with all known games that use this mapper is to return $FF on the first two reads from CPU $2007 after a reset.
=== 185: 4 ===
Enable CHR-ROM if bits 0..1 of the latch hold the value 0, otherwise disable CHR-ROM.
=== 185: 5 ===
Enable CHR-ROM if bits 0..1 of the latch hold the value 1, otherwise disable CHR-ROM.
=== 185: 6 ===
Enable CHR-ROM if bits 0..1 of the latch hold the value 2, otherwise disable CHR-ROM.
=== 185: 7 ===
Enable CHR-ROM if bits 0..1 of the latch hold the value 3, otherwise disable CHR-ROM.
== [[iNES Mapper 206|206]]: Namco 118 PCB variants ==
=== 206: 0 ===
Namcot 118 ASIC with normal PRG banking
=== 206: 1 ===
Namcot '''3407''', '''3417''' and '''3451''' PCBs with unbanked 32 KiB PRG-ROM.
* ''Family Jockey''
* ''Metro-Cross''
* ''Sky Kid''
* ''Super Chinese''
* ''Super Sky Kid''
* ''Valkyrieの冒険꞉ 時の鍵伝説''
== [[iNES Mapper 210|210]]: Namco 175 and 340 ==
[[iNES Mapper 210|Mapper 210]] doesn't distinguish between the 175's hardwired mirroring and 340's 1/H/V mirroring.
[[iNES Mapper 210|Mapper 210]] doesn't distinguish between the 175's hardwired mirroring and 340's 1/H/V mirroring.
Also, previous confusion and compatibility code used by Namco when they were developing games means that many 175- and 340- using games are incorrectly tagged as mapper 19.


<!-- Tentative suggestion:<br/>
Also, previous confusion and compatibility code used by Namco when they were developing games means that many 175- and 340- using games are incorrectly tagged as [[iNES Mapper 019|mapper 19]].
Mapper 210:<br/>
 
1: N175 (hardwired mirroring, no IRQ)<br/>
=== 210: 0 ===
2: N340 (1/H/V mirroring, no IRQ, no internal or external RAM)<br/>
No advisory statement is made (use runtime heuristics suggested at [[iNES Mapper 210|mapper 210]])
-->
 
Source: [http://blog.kevtris.org/blogfiles/nes/submappers.txt KH's submappers]
=== 210: 1 N175 ===
Namco 175. Hardwired mirroring, no IRQ.
 
* ''Dream Master''
* ''Famista '91''
* ''Family Circuit '91''
* ''Chibi Maruko-chan: Uki Uki Shopping''
* ''Heisei Tensai Bakabon / Genius Bakabon''
 
=== 210: 2 N340 ===
Namco 340. 1/H/V mirroring, no IRQ, no internal or external RAM.
 
* ''Splatterhouse''
* ''Wagyan Land 2''
* ''Famista '92''
* ''Top Striker''
* ''Wagyan Land 3''
* ''Famista '93''
* ''Famista '94''
 
== [[iNES Mapper 215|215]]: Sugar Softec, selectable MMC3 scrambling pattern ==
Registers at $5000-$5007.
* Submapper 0: UNL-8237 (two non-overlapping outer bank bits for PRG/CHR each)
* Submapper 1: UNL-8237A  (three overlapping outer bank bits for PRG/CHR each)
 
== [[iNES Mapper 232|232]]: Quattro ==
Similar to #71 above, with a separate register controlling which 64 KiB outer bank of the PRG ROM is used. This is used for the [http://bootgod.dyndns.org:7777/search.php?keywords=quattro&kwtype=game Quattro multicarts].
 
The Aladdin Deck Enhancer version of these multicarts used a different banking scheme.
 
=== 232: 0 ===
0: Normal
 
=== 232: 1 Aladdin Deck Enhancer ===
Aladdin Deck Enhancer variation. Swap the bits of the outer bank number.
* ''[http://bootgod.dyndns.org:7777/profile.php?id=553 Quattro Adventure] (Aladdin Deck Enhancer)''
* ''[http://bootgod.dyndns.org:7777/profile.php?id=550 Quattro Sports] (Aladdin Deck Enhancer)''
* ''Pegasus 4-in-1''
* ''Super Adventure Quests'' (European release of ''Quattro Adventure'')
 
== [[NES 2.0 Mapper 256]] ==
Several plug-and-play consoles use a simple protection scheme intended to prevent interchanging the ROM data between different consoles. The protection scheme works by simply swapping the addresses of the bankswitch registers. Some patterns only change the VTxx-native register addresses, others apply to the MMC3 compatibility registers as well.
 
Other plug-and-play consoles, in particular those by Jungletac, scramble CPU opcode bytes (and only those) by swapping bits. These consoles power-on with opcode scrambling enabled, but allow it to be disabled --- for example, to run a pirated licensed NES game without modifying it --- by writing to a register.
{{:NES 2.0 Mapper 256/Submapper table}}
 
== [[NES 2.0 Mapper 268|268]]: Coolboy/Mindkids ==
*Submapper 0: Coolboy (outer bank registers at $6000-$6003)
*Submapper 1: Mindkids (outer bank registers $5000-$5003)


== [[iNES Mapper 232]] ==
== References ==
Similar to #71 above, with a separate register controlling which 64 KiB outer bank of the PRG ROM is used. This is used for the Quattro multicarts.
* [http://blog.kevtris.org/blogfiles/nes/submappers.txt Original submapper list by kevtris]
* [http://blog.kevtris.org/blogfiles/nes/ Other definitions by kevtris]


0: Normal<br>
<references/>
1: Swap the bits of the outer bank number (for the Aladdin Deck Enhancer versions)

Latest revision as of 15:28, 2 November 2024

Submapper is a term used in the NES 2.0 header for 4-bit codes designating functionally distinct variants of iNES mappers that cannot be distinguished by the memory size fields alone. Most emulators using iNES format distinguish these using CRC, SHA-1, or other hashes of the PRG ROM and CHR ROM, but this works only for games published prior to 1997, not for fan translations or ROM hacks, and not for new games on the same mapper.

Submapper 0 represents the default iNES behavour, so that backward compatibility is maintained with existing ROMs.

Submapper allocations that are listed as "deprecated" were assigned by kevtris' original proposal, but have no known use cases. The deprecation reserves these unused allocations to maintain continuity and compatibility.

This document is a living specification. Proposals for new submappers should be made at: Proposals.

001: MMC1

Most MMC1 boards are compatible with the standard mapper 1 behavior (submapper 0).

Boards with CHR-RAM usually reuse the CHR banking lines to address other things.

  • SUROM, SOROM, and SXROM implement extra PRG-ROM and PRG-RAM banking (deprecated submappers 1, 2, 4).
  • SNROM implements a redundant PRG-RAM enable (no assigned submapper).

The variant MMC1A chip was assigned to mapper 155 (deprecated submapper 3).

Most boards with 32k of PRG-ROM have no PRG banking: SEROM, SHROM, SH1ROM (submapper 5).

001: 0

Normal behavior.

001: 1, 2, 4 = SUROM, SOROM, SXROM

Deprecated.

These submappers are a redundancy. The difference between these boards and the "normal" MMC1 implementation is exclusively dependent on the sizes of CHR, PRG RAM, and PRG ROM. Because of this, the addition of PRG RAM to the NES 2.0 specification was enough to make these compatible with submapper 0.

These three boards used 8k CHR RAM, and reused the CHR banking bits to bank PRG ROM and RAM instead. The specific boards can be detected by these sizes, or simply emulated together in submapper 0:

$A000 and $C000:
4bit0
-----
EDCBA
|||||
||||+- CHR A12
|||+-- CHR A13 if CHR >= 16k
||+--- CHR A14 if CHR >= 32k; and PRG RAM A13 if PRG RAM = 32k (submapper 4)
|+---- CHR A15 if CHR >= 64k; and PRG RAM A13 if PRG RAM = 16k (submapper 2)
|                              or PRG RAM A14 if PRG RAM = 32k (submapper 4)
+----- CHR A16 if CHR = 128k; and PRG ROM A18 if PRG ROM = 512k (submappers 1, 4)

The following games are on SUROM (submapper 1):

SOROM (submapper 2):

SXROM (submapper 4):

If any NES 2.0 ROMs are found using these deprecated submappers, the CHR, PRG RAM, and PRG ROM sizes must appropriately match to be a valid header.

001: 3

Deprecated.

This originally described a submapper that was already implemented as iNES Mapper 155.

001: 5 Fixed PRG

SEROM, SHROM, SH1ROM use a fixed 32k PRG ROM with no banking support. (This is distinct from SIROM which has 32k of bankable PRG ROM.)

PRG ROM A14 is connected directly to CPU A14 (and MMC1 A14 input) instead of MMC1 A14 output.

Existing games are compatible with submapper 0 if $8000-BFFF is initialized to the low bank, and $C000-FFFF is initialized to the high bank. These boards were used in several games: SEROM SHROM SH1ROM

Test ROM:

001: 6 = 2ME

The 2ME board is a Famicom Network System MMC1B variant used by JRA-PAT revisions FCN027-04 and later. It supports 64 big-endian 16-bit words of EEPROM and up to 32 KiB of battery-backed PRG-RAM banked like SXROM. Because the Network System does not expose the PPU bus to the software card, all CHR-related outputs are repurposed to support this storage. See MMC1 2ME for full details.

002, 003, 007: UxROM, CNROM, AxROM

Mappers 2, 3, and 7 describe discrete logic mappers that are usually subject to bus conflicts. Most of these games are programmed in a way that does not rely on the bus conflict behaviour, but software bugs may expose the difference (e.g. Cybernoid[1]). Because these differences are obscure, the default iNES implementation for mappers 2 and 3 has been inconsistent across emulators, some with bus conflicts, some without. Mapper 7 is normally emulated without bus conflicts, because of a small number of games using the ANROM board which rely on this.

Two submappers allow this ambiguity to be resolved, by selecting a specific behaviour:

0: Default iNES behaviour (Emulators should warn the user and/or enforce bus conflicts for mappers 2 and 3, and should warn the user and/or fail to enforce bus conflicts for mapper 7)
1: Bus conflicts do not occur
2: Bus conflicts occur, producing the bitwise AND of the written value and the value in ROM

Although all Nintendo-manufactured games using normal CNROM (mapper 3), normal UxROM (mapper 2), and inverted UxROM (mapper 180) had bus conflicts, apparently several unlicensed games require their absence, as does the updated version of Donkey Kong with the pie factory level[2].

AxROM (mapper 7) is the only known licensed discrete logic mapper to unreliably come with bus conflict prevention circuitry. While no game documented in NesCartDB was released in one region on multiple board variants, several games did change boards when localized.

New ROMs are encouraged to specify submapper 2 to verify correct behaviour with bus conflicts.

CNROM with security diodes (mapper 185) has a different set of submapper definitions.

002: 0, 1, 2 UxROM

Test ROMs: (forum post)

  • 2_test_0.nes - Unspecified.
  • 2_test_1.nes - No bus conflicts.
  • 2_test_2.nes - AND bus conflicts.

003: 0, 1, 2 CNROM

Test ROMs: (forum post)

  • 3_test_0.nes - Unspecified.
  • 3_test_1.nes - No bus conflicts.
  • 3_test_2.nes - AND bus conflicts.

007: 0, 1, 2 AxROM

Test ROMs: (forum post)

  • 7_test_0.nes - Unspecified.
  • 7_test_1.nes - No bus conflicts.
  • 7_test_2.nes - AND bus conflicts.

004: MMC3

iNES Mapper 004 represents the most common boards using these four ICs: early MMC3, late MMC3, MC-ACC, and MMC6.

There are three known kinds of IRQ:

  1. NEC MMC3: IRQ is asserted on A12 rise, and loading the latch with 0 disables IRQ. At least one unlicensed game relies on this "old style" behavior.
  2. Sharp MMC3: IRQ is asserted on A12 rise, and loading the latch with 0 produces an IRQ on every scanline. MMC6 also behaves this way. Some later games rely on this "new style" behavior.
  3. MC-ACC: IRQ is asserted on A12 fall, typically four pixels later than Sharp MMC3. Interrupts can be produced every scanline, like the Sharp MMC3.[3]

There are two known kinds of PRG RAM enable:

  1. MMC3: One set of enable bits controls the entire chip.
  2. MMC6: The first and second enables control the first and second half of PRG RAM, and an additional enable in bit 5 of $8000 controls the whole PRG RAM.

The TEROM and TFROM boards have two jumpers that can respectively disable IRQs and force hard-wired mirroring. It is believed that nothing was ever released that used them.

004: 0 Sharp MMC3

Normal.

  • Star Trek 25th Anniversary

If the header is not using NES 2.0, an implementation without PRG-RAM write protection might be desired instead of a full MMC3. See: iNES Mapper 004 and MMC6

004: 1 MMC6

MMC6 has an alternative PRG-RAM enable and write protection scheme designed for its internal 1k PRG RAM. Uses Sharp MMC3 IRQ behavior.

  • StarTropics
  • StarTropics 2

004: 2

This describes MMC3C with hard-wired mirroring. No licensed games are known to require this, but a number of hacks and plug-and-play console extracts depend on it, and it is a valid configuration of the NES-TFROM circuit board.

004: 3 MC-ACC

MC-ACC

The MC-ACC is found in 13 second-source PCBs manufactured by Acclaim:

  • Alien³
  • George Foreman's KO Boxing
  • The Incredible Crash Dummies
  • Mickey's Safari in Letterland
  • Roger Clemens' MVP Baseball
  • Rollerblade Racer
  • The Simpsons: Bart vs. The World
  • The Simpsons: Bartman Meets Radioactive Man
  • Spider-Man: Return of the Sinister Six
  • T&C Surf Designs 2: Thrilla's Surfari
  • T2: Terminator 2: Judgment Day
  • WWF King of the Ring
  • WWF WrestleMania: Steel Cage Challenge

004: 4 NEC MMC3

Loading the latch with 0 disables IRQ.

  • SuperGame's Aladdin (Mapper 4 version)

004: 5 T9552

Indicates the presence of a T9552 scrambling chip.

016: Bandai FCG board

INES Mapper 016 submapper table
Submapper # Meaning Note
0 Unspecified Emulate both FCG-1/2 and LZ93D50 chips in their respective CPU address ranges.
1 LZ93D50 with 128 byte serial EEPROM (24C01) Deprecated, use INES Mapper 159 instead.
2 Datach Joint ROM System Deprecated, use INES Mapper 157 instead.
3 8 KiB of WRAM instead of serial EEPROM Deprecated, use INES Mapper 153 instead.
4 FCG-1/2 Responds only in the CPU $6000-$7FFF address range; IRQ counter is not latched.
5 LZ93D50 with no or 256-byte serial EEPROM (24C02) Responds only in the CPU $8000-$FFFF address range; IRQ counter is latched.

019: Namco 129/163

The NES 2.0 submapper is used to specify the mixing resistor that determines the relative volume of the expansion audio channels against the APU's audio channels:

INES Mapper 019 submapper table
Submapper # Meaning Note
0 Default Expansion sound volume unspecified
1 Deprecated Internal 128b RAM is battery backed, no external PRG-RAM is present.

No expansion sound. (Equivalent to submapper 2 with 0 in PRG-NVRAM field.)

2 No expansion sound
3 N163 expansion sound: 11.0-13.0 dB louder than NES APU
4 N163 expansion sound: 16.0-17.0 dB louder than NES APU
5 N163 expansion sound: 18.0-19.5 dB louder than NES APU

021, 023, 025: VRC2 / VRC4

These three mappers collect various configurations of VRC2 and VRC4 boards.

VRC2 is mostly a subset of VRC4, with differences including:

  • VRC2 has a serial EEPROM interface which no Konami game ever connected an actual EEPROM to, but one PCB is wired so that it functions as a single bit of memory mapped at $6000-6FFF[4]
  • VRC4 supports horizontal, vertical and one-screen nametable mirroring while VRC2 supports only horizontal and vertical mirroring[5]
  • VRC4 supports two PRG ROM banking modes, similar to MMC3's. VRC2 only has one PRG ROM banking mode.
  • VRC4 has an interrupt device that VRC2 does not.

Additionally, different boards connect the address lines for the registers in various arrangements. The three iNES mappers 21, 23, and 25 each combine multiple boards whose addresses overlap. This is enough for game compatibility, but it creates an ugly combination that does not accurately describe the original hardware of either board.

Submapper assignment

Konami's VRC2 and VRC4 mappers have several variations of how the board connects low CPU address lines among A7-A0 to the port select lines of the mapper. Mappers 21, 23 and 25 each combine two non-overlapping addressing variations, and neglect to specify VRC2 vs VRC4.

Mapper 22 is related, but only supports one variation (VRC2a) and has a different CHR banking arrangement than the others. It does not require submapper disambiguation.

There are three variations of the VRC2 boards, and five of VRC4:

VRC2
Nickname PCB A0 A1 Registers iNES mapper submapper
VRC2a 351618 A1 A0 $x000, $x002, $x001, $x003 22 0
VRC2b many A0 A1 $x000, $x001, $x002, $x003 23 3
VRC2c 351948 A1 A0 $x000, $x002, $x001, $x003 25 3
VRC4
Nickname PCB A0 A1 Registers iNES mapper submapper
VRC4a 352398 A1 A2 $x000, $x002, $x004, $x006 21 1
VRC4b 351406 A1 A0 $x000, $x002, $x001, $x003 25 1
VRC4c 352889 A6 A7 $x000, $x040, $x080, $x0C0 21 2
VRC4d 352400 A3 A2 $x000, $x008, $x004, $x00C 25 2
VRC4e 352396 A2 A3 $x000, $x004, $x008, $x00C 23 2
VRC4f - A0 A1 $x000, $x001, $x002, $x003 23 1
The VRC2b PCBs include: 350603, 350636, 350926, 351179

This submapper assigment uses the following symmetrical arrangement:

  • 0. Both addressing
  • 1. Lower addressing, VRC4
  • 2. Higher addressing, VRC4
  • 3. Lower addressing, VRC2 (no known examples for mapper 21)
  • 4. Higher addressing, VRC2 (no known examples)

021 / 023 / 025: 0

The default implementation acts as a VRC4 (mostly compatible superset of VRC2), and responds to register writes in one or more configurations simultaneously (supporting both boards at once).

021 / 023 / 025: 1, 2 VRC4

These allocations each request a single specific addressing scheme for VRC4, rather than the combined version used by submapper 0.

  • 021: 1 VRC4a
  • 025: 1 VRC4b
  • 021: 2 VRC4c
  • 025: 2 VRC4d
  • 023: 2 VRC4e
  • 023: 1 VRC4f

023: 1 VRC4f

Some unlicensed games used a second-source VRC4 clone with register addressing identical to VRC2b (the simplest contiguous in-order interpretation: 0,1,2,3). This was used in World Hero.

023: 3 VRC2b

Games on PCB 350926 (and its chip-on-board equivalents) rely on a single bit of RAM mapped in the region from $6000-$6FFF. Prior to NES 2.0, these games were supported by implementing WRAM in this region (despite this board not having WRAM). This board was used in Contra (J), Ganbare Goemon 2 and Konami Wai Wai World.

There are other VRC2 boards with the same register addressing as 350926 but without this feature ($6000-$6FFF is effectively open bus on them), but no game relies on the lack of the single bit of memory, so a separate submapper has not been allocated for them. These boards were used in Dragon Scroll, Getsu Fuuma Den, and Jarinko Chie.

Since this submapper represents VRC2, it should not implement the VRC4-only one-screen mirroring, PRG ROM banking modes, or IRQ capabilities. Wai Wai World depends on the lack of one-screen mirroring; it will have corrupt backgrounds in the vertically-scrolling stages and the ending if emulated with VRC4 capabilities.

025: 3 VRC2c

Ganbare Goemon Gaiden: Kieta Ougon Kiseru uses the same register addressing as VRC4b, but is VRC2, so this submapper should not implement VRC4-only capabilities.

Test ROMs

032: Irem G101

A variation of this mapper requires hardwired one-screen mirroring and entirely ignores writes to $9000.

032: 0

Normal (H/V mapper-controlled mirroring)

032: 1 Major League

CIRAM A10 is tied high (fixed one-screen mirroring) and PRG banking style is fixed as 8+8+16F

034: BNROM / NINA-001

This iNES mapper unfortunately combines the unrelated BNROM and NINA-001 mappers.

034: 0

Normal.

To disambiguate the two mappers, emulators have taken various approaches:

  • The presense of CHR larger than 8 KiB unambiguously requires NINA-001, as BNROM has no CHR banking.
  • The presence of CHR-RAM is taken to imply BNROM, because both extant BNROM games use CHR-RAM.
  • CRC tests may be used to select a mapper for previously known ROMs.
  • Implement both mappers simultaneously. This is compatible with existing games.

Selecting a single implementation based on CHR results in greater accuracy, since no game was ever intended for the combined definition.

New programs should not attempt to use a combined BNROM + NINA-001 mapper because this is not reliably available across emulators. Unusual combinations like NINA-001 with CHR-RAM are theoretically possible, but unlikely to be emulated consistently.

034: 1 NINA-001

NINA-001 only.

Test ROM: (forum post)

  • 34_test_1.nes - NINA-001 with CHR ROM.

034: 2 BNROM

BNROM only.

Some unlicensed boards by Union Bond were a variation of BNROM that included PRG RAM. These may also use this submapper if PRG RAM is specified in the NES 2.0 header.

Test ROM: (forum post)

  • 34_test_2.nes - BNROM with CHR RAM.

068: Sunsoft 4

In addition to its normal function, the Sunsoft 4 IC was used in Nantettatte!! Baseball, which allowed a second expansion cartridge to be plugged into it.

068: 0

0: Normal (max 256KiB PRG)

068: 1 Dual Cartridge System

1: Sunsoft Dual Cartridge System a.k.a. NTB-ROM (max 128KiB PRG, licensing IC present, external option ROM of up to 128KiB should be selectable by a second menu)

071: Codemasters

Some games use this with 1-screen mirroring, where the mapper's mirroring control bit is wired directly to CIRAM A10. Others have hardwired horizontal or vertical mirroring.

Another variation of this mapper was used in the Quattro multicarts, but these have been reassigned to mapper 232.

071: 0

Hardwired horizontal or vertical mirroring.

071: 1 Fire Hawk

Mapper controlled single-screen mirroring.

078: Cosmo Carrier / Holy Diver

This mapper unfortunately combines two games with incompatible mirroring control.

One game uses this with 1-screen mirroring, where the mapper's mirroring control bit is wired directly to CIRAM A10. The other can switch between horizontal and vertical mirroring, using a multiplexer between PPU A10 and PPU A11 whose output is sent to CIRAM A10.

Historically, pre-NES 2.0 ROM image headers set the 4-screen VRAM flag for Holy Diver and cleared it for Cosmo Carrier.

078: 0

Unspecified.

078: 1 Cosmo Carrier

Single-screen mirroring (nibble-swapped mapper 152).

078: 2

Deprecated.

This described a variation with fixed vertical mirroring, and WRAM. There is no known use case.

078: 3 Holy Diver

Mapper-controlled H/V mirroring.

085: Konami VRC7

  • VRC7b uses A3 to select registers ($x008), used in Tiny Toon Adventures (Submapper 1).
  • VRC7a uses A4 to select registers ($x010), used in Lagrange Point (Submapper 2).

091: Super Fighter III

  • Submapper 0: YY830624C/JY830848C (J.Y. Company clone board)
  • Submapper 1: EJ-006-1 (original Super Fighter III board).

114: Sugar Softec/Hosenkan, fixed MMC3 scrambling pattern

Registers at $6000 (and $6001, although not used for effect by existing games)

  • Submapper 0: The Lion King, Aladdin
  • Submapper 1: Boogerman (different scrambling pattern)

178.1: Gameinis Infrared Sensor

  • Submapper 0: No infrared sensor present
  • Submapper 1: Gameinis Infrared Sensor present

185: CNROM used to selectively disable CHR-ROM

A few NROM-like games were released on CNROM boards where all four bits of the latch were solely used as an anti-piracy measure. Games would check that CHR-ROM is disabled unless the latch holds the correct one of the four possible bank values. See this thread for test ROMs and example implementation code.

185: 0

Correct bank value unknown. A heuristic that works with all known games that use this mapper is to return $FF on the first two reads from CPU $2007 after a reset.

185: 4

Enable CHR-ROM if bits 0..1 of the latch hold the value 0, otherwise disable CHR-ROM.

185: 5

Enable CHR-ROM if bits 0..1 of the latch hold the value 1, otherwise disable CHR-ROM.

185: 6

Enable CHR-ROM if bits 0..1 of the latch hold the value 2, otherwise disable CHR-ROM.

185: 7

Enable CHR-ROM if bits 0..1 of the latch hold the value 3, otherwise disable CHR-ROM.

206: Namco 118 PCB variants

206: 0

Namcot 118 ASIC with normal PRG banking

206: 1

Namcot 3407, 3417 and 3451 PCBs with unbanked 32 KiB PRG-ROM.

  • Family Jockey
  • Metro-Cross
  • Sky Kid
  • Super Chinese
  • Super Sky Kid
  • Valkyrieの冒険꞉ 時の鍵伝説

210: Namco 175 and 340

Mapper 210 doesn't distinguish between the 175's hardwired mirroring and 340's 1/H/V mirroring.

Also, previous confusion and compatibility code used by Namco when they were developing games means that many 175- and 340- using games are incorrectly tagged as mapper 19.

210: 0

No advisory statement is made (use runtime heuristics suggested at mapper 210)

210: 1 N175

Namco 175. Hardwired mirroring, no IRQ.

  • Dream Master
  • Famista '91
  • Family Circuit '91
  • Chibi Maruko-chan: Uki Uki Shopping
  • Heisei Tensai Bakabon / Genius Bakabon

210: 2 N340

Namco 340. 1/H/V mirroring, no IRQ, no internal or external RAM.

  • Splatterhouse
  • Wagyan Land 2
  • Famista '92
  • Top Striker
  • Wagyan Land 3
  • Famista '93
  • Famista '94

215: Sugar Softec, selectable MMC3 scrambling pattern

Registers at $5000-$5007.

  • Submapper 0: UNL-8237 (two non-overlapping outer bank bits for PRG/CHR each)
  • Submapper 1: UNL-8237A (three overlapping outer bank bits for PRG/CHR each)

232: Quattro

Similar to #71 above, with a separate register controlling which 64 KiB outer bank of the PRG ROM is used. This is used for the Quattro multicarts.

The Aladdin Deck Enhancer version of these multicarts used a different banking scheme.

232: 0

0: Normal

232: 1 Aladdin Deck Enhancer

Aladdin Deck Enhancer variation. Swap the bits of the outer bank number.

  • Quattro Adventure (Aladdin Deck Enhancer)
  • Quattro Sports (Aladdin Deck Enhancer)
  • Pegasus 4-in-1
  • Super Adventure Quests (European release of Quattro Adventure)

NES 2.0 Mapper 256

Several plug-and-play consoles use a simple protection scheme intended to prevent interchanging the ROM data between different consoles. The protection scheme works by simply swapping the addresses of the bankswitch registers. Some patterns only change the VTxx-native register addresses, others apply to the MMC3 compatibility registers as well.

Other plug-and-play consoles, in particular those by Jungletac, scramble CPU opcode bytes (and only those) by swapping bits. These consoles power-on with opcode scrambling enabled, but allow it to be disabled --- for example, to run a pirated licensed NES game without modifying it --- by writing to a register.

Submapper # Name PPU bank affected by ... CPU bank affected by ... CPU opcode bytes
$2012 $2013 $2014 $2015 $2016 $2017 $8000.0 $8000.1 $8000.2 $8000.3 $8000.4 $8000.5 $4107 $4108 $8000.6 $8000.7
0 Normal $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 none
1 Waixing VT03 $1400 $1000 $0800 $0000 $1C00 $1800 $1C00 $1800 $1400 $1000 $0800 $0000 $8000 $A000 $8000 $A000 none
2 Power Joy Supermax $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $A000 $8000 $A000 $8000 none
3 Zechess/Hummer Team $0800 $0000 $1C00 $1800 $1000 $1400 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 none
4 Sports Game 69-in-1 $1800 $0800 $1000 $0000 $1C00 $1400 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 none
5 Waixing VT02 $1400 $1000 $0800 $0000 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 none
12 Cheertone $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 D7<->D6, D1<->D2 swapped, switched via $411C
13 Cube Tech $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 D1 and D4 swapped, switched via $4169
14 Karaoto $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 D6 and D7 swapped, switched via $411C
15 Jungletac $1000 $1400 $1800 $1C00 $0000 $0800 $0000 $0800 $1000 $1400 $1800 $1C00 $8000 $A000 $8000 $A000 D5 and D6 swapped, switched via $4169

268: Coolboy/Mindkids

  • Submapper 0: Coolboy (outer bank registers at $6000-$6003)
  • Submapper 1: Mindkids (outer bank registers $5000-$5003)

References

  1. NESDev post explaining Cybernoid's bugs.
  2. Nintendoage thread discussing Donkey Kong Pie Factory.
  3. MC-ACC IRQ test results
  4. http://forums.nesdev.org/viewtopic.php?t=8274 VRC2 memory bit at $6000-$6FFF
  5. http://forums.nesdev.org/viewtopic.php?t=13473 VRC2 mirroring selection tested on hardware