INES Mapper 014: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (add cat:scanlineIRQ, DEFAULTSORT)
(Shorten, correct supervisor bit meanings, and mark known from conjectured behavior)
Line 1: Line 1:
{{DEFAULTSORT:014}}[[Category:iNES Mappers]][[Category:MMC3-like mappers]][[Category:Mappers with scanline IRQs]]
{{DEFAULTSORT:014}}[[Category:iNES Mappers]][[Category:MMC3-like mappers]][[Category:Mappers with scanline IRQs]]
'''iNES Mapper 014''' denotes the 哥德 (Gouder) '''SL-1632''' PCB, used on the 8-character version of ''Samurai Spirits'' by Rex Soft. Like [[INES Mapper 116]], it uses the '''Huang-1''' ASIC together with a PAL that provides a supervisor register for selecting CHR A18 and for switching between [[MMC3]] and [[VRC2]] modes (A0/A1, VRC2b), but moves the supervisor register address to $A131, overlapping the MMC3 and VRC2 registers there. Its UNIF board name is '''UNL-SL1632'''.


[[iNES Mapper 014]] is an [[MMC3]] variant mapper used in the pirate port of Samurai Spirits by Rex Game Soft. It is very similar to an MMC3, but contains an alternative mode that when used controls banking and mirroring independently of the normal MMC3 mode.
According to Nestopia's mapper source code, mirroring can only be controlled in VRC2 mode, and the VRC2 PRG and mirroring registers do not respond to address mirrors. These behaviors contradict other emulators and have not been verified on original hardware.


This mapper is not widely supported by emulators. The following notes are based on Nestopia's SOMERITEAM SL-1632 mapper implementation.
==Supervisor Register ($A131, write)==
 
Mask: $FFFF?
GoodNES 3.1.4 has Samurai Spirits as a UNIF dump with MAPR ''UNL-SL1632'' and as [[iNES Mapper 116]]. However, the documentation for mapper 116 implies that SL1632 is substantively different.
   
 
  D~7654 3210
== Mapper Mode Control: $A131 ==
  ---------
 
  A.B. C.M.
  7  bit 0
  | |  | +-- Mapper mode
---------
  | |  |      0: VRC2
A.B. C.M.
  | |  |      1: MMC3
        |
  | |  +---- CHR A18 for PPU $0000-$0FFF
        +- Mode (1: MMC3, 0: VRC2)
  | +------- CHR A18 for PPU $1000-$17FF
 
  +--------- CHR A18 for PPU $1800-$1FFF
* When M is set, writes to $8000-FFFF operate mostly as normal for [[MMC3]].
* When M is clear, alternative functions appear (see MMC3 Mode Clear below).
* When M is written, the CHR and PRG banks must be switched either to their MMC3 banks (MMC3 Mode Set), or the alternative banks (MMC3 Mode Clear).
 
In MMC3 mode, bits 7, 5, and 3 of this register also control high bits of the CHR banks, allowing 512k of CHR ROM. This works in conjunction with the current 2k/1k CHR banking mode.
 
* If A is set add $100 to both 2k CHR banks.
* If B is set add $100 to lower two 1k CHR banks.
* If C is set add $100 to upper two 1k CHR banks.
 
== MMC3 Mode ==
 
Note that when the Mode bit is set to MMC3, this mapper operates mostly like the MMC3, except the $A000-BFFE even register does not control the nametable mirroring (it can only be controlled when in VRC2 mode). Additionally, a write to the specific address $A131 will alter the MMC3 Mode bit as above.
 
* $8000-9FFE even - as MMC3
* $8001-9FFF odd - as MMC3
* $A000-BFFE even - ignored
* $A001-BFFF odd - as MMC3
* $C000-DFFE even - as MMC3
* $C001-DFFF odd - as MMC3
* $E000-FFFE even - as MMC3
* $E001-FFFF odd - as MMC3
 
There may be a conflict between $A131 and the $A001-BFFF odd register if PRG RAM is present. The Nestopia implementation also writes to the corresponding MMC3 register when writing $A131 if the MMC3 Mode bit is set.
 
== VRC2 Mode ==
 
This mode is very similar to [[VRC2]]b.
 
These banking registers are independent of the banking registers used when MMC3 Mode is set.
 
* $8000-$8FFC - as VRC2
** $8001, $8002, $8003, and their mirrors do not respond
* $9000-$9FFC - subset of VRC2
** $9001, $9002, $9003, and their mirrors do not respond
** It is unclear whether the 2s bit exists, supporting H/V/1a/1b mirroring, or just the 1s bit (as the MMC3)
* $A000-$AFFC - as VRC2
** $A001, $A002, $A003, and their mirrors do not respond
* $B000-$EFFF - superset of VRC2b
** Reportedly the $800s bit should be ORed into the 2s bit to select which CHR register is updated. This is odd: perhaps this actually describes two different versions of the hardware. (If so, what other games use it?)

Revision as of 11:14, 2 November 2019

iNES Mapper 014 denotes the 哥德 (Gouder) SL-1632 PCB, used on the 8-character version of Samurai Spirits by Rex Soft. Like INES Mapper 116, it uses the Huang-1 ASIC together with a PAL that provides a supervisor register for selecting CHR A18 and for switching between MMC3 and VRC2 modes (A0/A1, VRC2b), but moves the supervisor register address to $A131, overlapping the MMC3 and VRC2 registers there. Its UNIF board name is UNL-SL1632.

According to Nestopia's mapper source code, mirroring can only be controlled in VRC2 mode, and the VRC2 PRG and mirroring registers do not respond to address mirrors. These behaviors contradict other emulators and have not been verified on original hardware.

Supervisor Register ($A131, write)

Mask: $FFFF?

D~7654 3210
  ---------
  A.B. C.M.
  | |  | +-- Mapper mode
  | |  |      0: VRC2
  | |  |      1: MMC3
  | |  +---- CHR A18 for PPU $0000-$0FFF
  | +------- CHR A18 for PPU $1000-$17FF
  +--------- CHR A18 for PPU $1800-$1FFF