Vs. System: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(based on everynes.txt)
 
m (→‎Registers: controller typo)
Line 25: Line 25:
       +--- Select 8 KB CHR ROM bank for PPU $0000-$1FFF ([[iNES Mapper 099|mapper 99]] games only)
       +--- Select 8 KB CHR ROM bank for PPU $0000-$1FFF ([[iNES Mapper 099|mapper 99]] games only)


=== Controller 2 data and DIP switches ($4016 read) ===
=== Controller 2 data, coins, and DIP switches ($4016 read) ===
  7  bit  0
  7  bit  0
  ---- ----
  ---- ----
Line 35: Line 35:
   ++------- Coin inserted
   ++------- Coin inserted


=== Controller 2 data and DIP switches ($4017 read) ===
=== Controller 1 data and DIP switches ($4017 read) ===
  7  bit  0
  7  bit  0
  ---- ----
  ---- ----

Revision as of 23:39, 22 June 2012

The Vs. Unisystem and Vs. Dualsystem are arcade system boards based on the NES.

Palette

There are several different RGB PPUs used in Vs. games. To determine which PPU is used, read the PPU type byte of the NES 2.0 header if available; otherwise, use the hash of the PRG and CHR ROM data.

2C03
This PPU is used in Duck Hunt and Tennis, as well as the PlayChoice, Famicom Titler, and Famicom TVs. Its colors closely resemble those of the 2C02 in the standard NTSC NES.
2C04
There are four versions of this PPU with different palettes. This was used as a form of copy protection, so that games would have wrong colors if someone were to burn a new PRG ROM and CHR ROM and put them on the game PCB.
2C05
This PPU has the same colors as the 2C03, but it swaps the meanings of $2000 and $2001 and returns a constant identifying value in bits 4-0 of $2002. This is also for copy protection.

Registers

Registers $4016 and $4017 have additional bits related to coin insertion and difficulty switches, and $4020 is a new register. The controllers are swapped: $4017 on the left and $4016 on the right. The 2C05 swaps PPUCTRL and PPUMASK. Otherwise, all registers have the same meanings as on the NES or PlayChoice.

Controller and CHR ROM bank ($4016 write)

7  bit  0
---- ----
xxxx xCxS
      | |
      | +- 1 then 0: Request a report from the controller ports
      +--- Select 8 KB CHR ROM bank for PPU $0000-$1FFF (mapper 99 games only)

Controller 2 data, coins, and DIP switches ($4016 read)

7  bit  0
---- ----
xCCD DSxB
 ||| || |
 ||| || +- Buttons for player 2 (A, B, 1, 3, Up, Down, Left, Right)
 ||| |+--- Service button (commonly inserts a credit)
 ||+-+---- DIP switches
 ++------- Coin inserted

Controller 1 data and DIP switches ($4017 read)

7  bit  0
---- ----
DDDD DDxB
|||| || |
|||| || +- Buttons for player 1 (A, B, 2, 4, Up, Down, Left, Right)
++++-++--- More DIP switches

Coin acknowledge ($4020 write)

Inserting a coin turns the coin bits of $4016 on. They do not turn off until the program acknowledges the credit by writing here.

7  bit  0
---- ----
xxxx xxxC
        |
        +- 1: Acknowledge coin insertion