INES Mapper 099: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
m (→‎Banks: mention RAM bank)
(mediawiki markup != phpbb markup)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:iNES Mappers|099]]
'''Mapper 99''' is a simple mapper used by [[Vs. System]] games such as ''Vs. Super Mario Bros.''
'''Mapper 99''' is a simple mapper used by [[Vs. System]] games such as ''Vs. Super Mario Bros.''
It is comparable to [[CNROM]], but without bus conflicts.
It is comparable to [[CNROM]], but without bus conflicts.
Line 33: Line 32:
== Hardware ==
== Hardware ==


The banking configuration described by mapper 99 connects the 2A03's OUT2 pin to a simple 1-to-2 demultiplexer to select between two CHR-ROM banks. To run one of the arcade games in a plain NES or Famicom, one could connect OUT2 an unused pin in the expansion port (such as one of the EXPx pins or IRQ if the game doesn't use IRQs).
The banking configuration described by mapper 99 connects the 2A03's OUT2 pin to a simple 1-to-2 demultiplexer to select between two CHR ROMs.
Or a clone mapper could fully decode $4016 writes on all hardware variants.  


Although this hardware has never been used outside the Vs. System, its behavior is well-defined in the absence of the [[INES#Flags_7|for Vs. System]] or [[INES#Flags_6|four-screen VRAM]] bits.
Only ''Vs. Gumshoe'' uses the 40KiB PRG variant; in the [[iNES]] encapsulation, the 8KiB banks are arranged as 0, 1, 2, 3, 0alternate, empty. (The hardware adds a wire to EPROM socket 2D or 6D, connecting OUT2 to A13)


Only ''Vs. Gumshoe'' uses the 40KiB PRG variant; in the [[iNES]] encapsulation, the 8KiB banks are arranged as 0, 1, 2, 3, 0alternate, empty. (The hardware adds a wire to EPROM socket 2D or 6D, connecting OUT2 to A13)
Note: unlike all other mappers, an undersize mapper 99 image implies open bus instead of mirroring. The original hardware has six sockets, and if any of them are not populated, the corresponding area isn't driven. Most pertinently, this means that for games with only 8 KiB of CHR, when the bank select bit is high the PPU will have no tile data to render!
 
Although this hardware has never been used officially outside the Vs. System, its behavior is well-defined in the absence of the [[INES#Flags_7|for Vs. System]] or [[INES#Flags_6|four-screen VRAM]] bits.
 
An [http://www.retrousb.com/product_info.php?cPath=29&products_id=94 NES-compatible bootleg of ''Vs. Super Mario Bros.''] was produced, with DIP switches.
They must be [https://satoshimatrix.wordpress.com/2010/11/16/vs-super-mario-bros-review-nes/ implemented differently] than the Vs. switches, because there's no way to prevent a bus conflict on reads from the lower five bits of the controller ports.
 
{{DEFAULTSORT:099}}
[[Category:iNES Mappers]][[Category:CNROM-like mappers]][[Category:Mappers with overlapping PRG and CHR registers]]

Latest revision as of 17:13, 10 September 2017

Mapper 99 is a simple mapper used by Vs. System games such as Vs. Super Mario Bros. It is comparable to CNROM, but without bus conflicts.

The Vs. System has other ports related to coin insertion and DIP switches that must be emulated to get games to advance past attract mode, and most games' palettes differ from the standard RGB NES palette used by Duck Hunt and PlayChoice games. See Vs. System for more information.

Overview

  • PRG ROM size: 8 to 40 KiB, in 8 KiB steps (as one to four 8 KiB ROMs, or one 16 KiB ROM and three 8 KiB ROMs)
  • PRG ROM bank size: 8 KiB
  • PRG RAM: 2 KiB, at least in Vs DualSystem, switchable between CPUs
  • CHR capacity: 8 or 16 KiB (as one or two 8 KiB ROMs)
  • CHR bank size: 8 KiB
  • Nametable mirroring: Fixed as four screen
  • Subject to bus conflicts: No

Banks

  • CPU $6000-$7FFF: 2 KiB RAM, swappable between CPUs (open bus when not available)
  • CPU $8000-$9FFF: 8 KiB switchable PRG ROM bank
  • CPU $A000-$FFFF: 24 KiB fixed PRG ROM bank
  • PPU $0000-$1FFF: 8 KiB switchable CHR ROM bank

Registers

Bank select ($4016)

7  bit  0
---- ----
xxxx xBRC
      |
      +--- Select both PRG ROM and CHR ROM bank

Note that the two LSBs are used for other things (see Vs. System), so you'll probably need to keep a copy of the value stored.

Hardware

The banking configuration described by mapper 99 connects the 2A03's OUT2 pin to a simple 1-to-2 demultiplexer to select between two CHR ROMs.

Only Vs. Gumshoe uses the 40KiB PRG variant; in the iNES encapsulation, the 8KiB banks are arranged as 0, 1, 2, 3, 0alternate, empty. (The hardware adds a wire to EPROM socket 2D or 6D, connecting OUT2 to A13)

Note: unlike all other mappers, an undersize mapper 99 image implies open bus instead of mirroring. The original hardware has six sockets, and if any of them are not populated, the corresponding area isn't driven. Most pertinently, this means that for games with only 8 KiB of CHR, when the bank select bit is high the PPU will have no tile data to render!

Although this hardware has never been used officially outside the Vs. System, its behavior is well-defined in the absence of the for Vs. System or four-screen VRAM bits.

An NES-compatible bootleg of Vs. Super Mario Bros. was produced, with DIP switches. They must be implemented differently than the Vs. switches, because there's no way to prevent a bus conflict on reads from the lower five bits of the controller ports.