Skip to main content
NESdev Wiki
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

VRC6

VRC6
CompanyKonami
Games3 in NesCartDB
ComplexityASIC
Boards351951, 351949A
PinoutVRC6 pinout
PRG ROM capacity256K
PRG ROM window16K + 8K
PRG RAM capacity8K
PRG RAM window8K
CHR capacity256K
CHR window1K
Nametable arrangementH, V, or 1, switchable
Bus conflictsNo
IRQYes
AudioYes
iNES mappers024, 026

Konami’s VRC6 ASIC mapper comes in two variants:

  • VRC6a - iNES Mapper 024 used for Akumajou Densetsu (Konami PCB 351951).
  • VRC6b - iNES Mapper 026 used for Madara and Esper Dream 2 (Konami PCB 351949A).

The A0 and A1 lines are swapped between the two variants. The registers described on this page are for mapper 24, but for mapper 26 the register addresses must be adjusted ($x001 becomes $x002 and vice versa).

See VRC6 pinout for the chip pinout.

Banks

CPU

  • $6000-$7FFF: 8 KB PRG-RAM bank, fixed
  • $8000-$BFFF: 16 KB switchable PRG ROM bank
  • $C000-$DFFF: 8 KB switchable PRG ROM bank
  • $E000-$FFFF: 8 KB PRG ROM bank, fixed to the last bank

PPU

  • $0000-$03FF: 1 KB switchable CHR ROM bank
  • $0400-$07FF: 1 KB switchable CHR ROM bank
  • $0800-$0BFF: 1 KB switchable CHR ROM bank
  • $0C00-$0FFF: 1 KB switchable CHR ROM bank
  • $1000-$13FF: 1 KB switchable CHR ROM bank
  • $1400-$17FF: 1 KB switchable CHR ROM bank
  • $1800-$1BFF: 1 KB switchable CHR ROM bank
  • $1C00-$1FFF: 1 KB switchable CHR ROM bank

Registers

Only address lines 0, 1, and 12-15 are used for registers, therefore mirrors can be found by ANDing the address with $F003 ($DE6A mirrors $D002)

The addresses described here are for mapper 24. The registers for mapper 26 can be found by swapping bits 0 and 1 of the address.

    variant   lines     registers                       Mapper Number
    =================================================================
    VRC6a:    A0, A1    $x000, $x001, $x002, $x003      024
    VRC6b:    A1, A0    $x000, $x002, $x001, $x003      026

16k PRG Select ($8000-$8003)

7  bit  0
---------
.... PPPP
     ||||
     ++++- Select 16 KB PRG ROM bank at $8000-$BFFF

8k PRG Select ($C000-$C003)

7  bit  0
---------
...P PPPP
   | ||||
   +-++++- Select 8 KB PRG ROM bank at $C000-$DFFF

PPU Banking Style ($B003)

7  bit  0
---------
W.PN MMDD
| || ||||
| || ||++- PPU banking mode; see below
| || ++--- Mirroring varies by banking mode, see below
| |+------ 1: Nametables come from CHRROM, 0: Nametables come from CIRAM
| +------- CHR A10 is 1: subject to further rules 0: according to the latched value
+--------- PRG RAM enable

The VRC6 supports the use of a larger RAM to provide more nametables. However, the three commercial VRC6 games neither provided extra nametable RAM, nor used ROM nametables. As a result these games only ever write the values $20, $24, $28, $2C, $A0, $A4, $A8, and $AC to this register.

CIRAM A10 is always connected to CHR A10, and bit 5 affects the behaviour of this signal (see below for details). The commercial games always left this bit set.

CHR Select 0…7 ($Dxxx, $Exxx)

For brevity, we refer to the registers at $D000 through $D003 and $E000 through $E003 as R0 through R7.

The lower 3 bits of the $B003 register affect where the registers are used:

[$B003] & $03 →012 or 3
CHR bankRegister used
$0000-$03FFR0R0R0
$0400-$07FFR1R1
$0800-$0BFFR2R1R2
$0C00-$0FFFR3R3
$1000-$13FFR4R2R4
$1400-$17FFR5
$1800-$1BFFR6R3R5
$1C00-$1FFFR7
[$B003] & $07 →0, 6, or 71 or 52, 3, or 4
Nametable bankRegister used
$2000-$23FFR6R4R6
$2400-$27FFR6R5R7
$2800-$2BFFR7R6R6
$2C00-$2FFFR7R7R7

When bit 5 of $B003 is clear, CHR/CIRAM A10 will be controlled directly by the register LSB, causing 2 KiB banks to have duplicate 1 KiB halves. Existing Konami games did not use this configuration. This was intended for a different PCB (never used) where PPU A10 directly controls CHR A10 instead, permitting 512 KiB of CHR-ROM.

When bit 5 of $B003 is set, 2 KiB pattern table banks pass PPU A10 through (ignoring the LSB of the register). Nametables apply different rules at the same time: see below.

Mirroring

With $B003:5 set, there are four different modes corresponding to $B003 & 3 that each have 4 nametable mirroring settings. Only mode 0 was used by Konami’s commercial games.

Mode 0
[$B003] & $F$0$4$8$C
Mirroringverticalhorizontal1-screen A1-screen B
CIRAM A10PPU A10PPU A11Ground (0)Vcc (1)

This mode was not intended for use with ROM nametables ($B003:4 set), because it overrides the LSB of the nametable registers with the signal intended for CIRAM A10. Because R6 and R7 are already in use to control the pattern banks, this is not very suitable if combined with ROM nametables (Mode 3 is designed for that instead).

[$B003] & $F$0$4$8$C
Mirroringhorizontal pairs
2 KiB spread
vertical pairs
2 KiB spread
horizontal mirroring
1 KiB (even only)
vertical mirroring
1 KiB (odd only)
$2000-$23FFR6 evenR6 evenR6 evenR6 odd
$2400-$27FFR6 oddR7 evenR6 evenR7 odd
$2800-$2BFFR7 evenR6 oddR7 evenR6 odd
$2C00-$2FFFR7 oddR7 oddR7 evenR7 odd
Mode 3 equivalent$7$3$F$B
Mode 1

Mode 1 uses R4-R7 to directly control 4-screen mapping. This is very effective with ROM nametables ($B003:4 set), but the LSB of each register still applies when using CIRAM.

[$B003] & $F$1$5$9$D
Mirroring4-screen
$2000-$23FFR4
$2400-$27FFR5
$2800-$2BFFR6
$2C00-$2FFFR7
Mode 2

Mode 2 uses R6-R7 to select two ROM pages for horizontal or vertical mirroring. If using CIRAM, the LSB of each register applies.

[$B003] & $F$2$6$A$E
Mirroringverticalhorizontalverticalhorizontal
$2000-$23FFR6R6R6R6
$2400-$27FFR7R6R7R6
$2800-$2BFFR6R7R6R7
$2C00-$2FFFR7R7R7R7
Mode 3

This mode is intended for ROM nametables ($B003:4 set) but the nametable banking is extended to 2 KiB pages by forcing the LSB as a 0 (even) or 1 (odd) in different configurations.

This can be used to spread 2 adjacent ROM pages each across a pair of nametables.

[$B003] & $F$3$7$B$F
Mirroringvertical pairs
2 KiB spread
horizontal pairs
2 KiB spread
vertical mirroring
1 KiB (odd only)
horizontal mirroring
1 KiB (even only)
$2000-$23FFR6 evenR6 evenR6 oddR6 even
$2400-$27FFR7 evenR6 oddR7 oddR6 even
$2800-$2BFFR6 oddR7 evenR6 oddR7 even
$2C00-$2FFFR7 oddR7 oddR7 oddR7 even
Mode 0 equivalent$4$0$C$8

The nametable configurations are redundant with Mode 0, but in a different order; however, the reuse of R6 and R7 as pattern banks makes mode 0 ineffective for ROM nametables.

Other

With $B003:5 clear, CHR/CIRAM A10 always directly uses the LSB of the register used to map that range, rather than having it overridden for mirroring control. (See nametable bank table above.)

This setting was intended to be used with a different PCB that would have connected PPU A10 directly to CHR A10, enabling 512 KiB CHR-ROM (with mode 1 having 2 KiB banks). The actual behaviour here is a leftover consequence of being run on the wrong board:

[$B003] & $F$0$1$2$3$4$5$6$7$8$9$A$B$C$D$E$F
MirroringH4V4H4V4H
$2000-$23FFR6R4R6R6R6R4R6R6R6R4R6R6R6R4R6R6
$2400-$27FFR6R5R7R7R7R5R6R6R6R5R7R7R7R5R6R6
$2800-$2BFFR7R6R6R6R6R6R7R7R7R6R6R6R6R6R7R7
$2C00-$2FFFR7R7R7R7R7R7R7R7R7R7R7R7R7R7R7R7

Using ROM nametables on the hypothetical board mentioned above would transform all of the “H” layouts into “horizontal pairs 2 KiB spread”, and all of the “V” and “4” layouts would have disjoint 256 KiB halves for the left two and right two nametables.

IRQ control ($F00x)

For details on IRQ operation, see VRC IRQs. Many VRC mappers use the same IRQ system.

The VRC6 IRQ can be used to count either CPU cycles, or scanlines as a multiple of CPU cycles.

       7  bit  0
       ---------
$F000: LLLL LLLL - IRQ Latch
$F001: .... .MEA - IRQ Control
$F002: .... .... - IRQ Acknowledge
  • L - reload value for latch
  • M - mode (1=cycle, 0=scanline)
  • E - enable IRQ
  • A - acknowledge bit

Sound ($900x, $A00x, $B000-$B002)

For details on sound information, see VRC6 audio.

Revisions

Three revisions of the VRC6 chip are known to exist:

  • 053328 - pin 1 is GND
  • 053329 - pin 1 appears to be an input
  • 053330 - based on the SLA7340 CMOS gate array, pin 1 is GND

References

Edit this page on GitHub