INES Mapper 246: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(update according to Ice Man's findings)
(→‎PRG-ROM bank select ($6000-$6003), write: it's 16 specific addresses, not the 28 byte region)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:iNES Mappers|246]]
{{DEFAULTSORT:246}}[[Category:iNES Mappers]]'''iNES Mapper 246''' denotes the '''G0151-1''' circuit board, used only for the Taiwanese game [[wikia:c:bootleggames:Feng_Shen_Bang|封神榜 (''Fēngshénbǎng: Fúmó Sān Tàizǐ'')]].
  This is no longer Disch's original notes: 
  ========================
  =  Mapper 246         =
  ========================
 
 
  Example Game:
  --------------------------
  Fong Shen Bang - Zhu Lu Zhi Zhan
 
 
  Notes:
  --------------------------
 
  Regs lie at $6000-601F; SRAM exists at $6800-6FFF.
 
 
  Registers:
  ---------------------------
 
  Range,Mask:  $6000-601F, $6007
 
 
    $6000-6003: PRG Regs
    $6004-6007: CHR Regs
 
 
  CHR Setup:
  ---------------------------
 
        $0000  $0400  $0800  $0C00  $1000  $1400  $1800  $1C00
      +---------------+---------------+---------------+---------------+
      |     $6004    |    $6005    |    $6006    |    $6007    |
      +---------------+---------------+---------------+---------------+
 
 
  PRG Setup:
  ---------------------------
 
        $8000  $A000  $C000  $E000 
      +-------+-------+-------+-------+
      | $6000 | $6001 | $6002 | $6003 |
      +-------+-------+-------+-------+
 
 
  Powerup/Reset:
  ---------------------------
  $6003 set to $FF on powerup only


The present hardware seems to be:
=Banks=
* Four 74LS670 4 x 4bit dual-ported memory
*CPU $6800-$6FFF: 2 KiB PRG-RAM, battery-banked
* One GAL16V8
*CPU $8000-$9FFF: 8 KiB PRG-ROM bank, switchable via $6000
* PRG ROM (up to 2 MiB), CHR ROM (up to 512 KiB), PRG RAM (8 KiB)
*CPU $A000-$BFFF: 8 KiB PRG-ROM bank, switchable via $6001
* Miscellaneous resistors, diodes, and a battery to power the PRG RAM
*CPU $C000-$DFFF: 8 KiB PRG-ROM bank, switchable via $6002
*CPU $E000-$FFFF: 8 KiB PRG-ROM bank, switchable via $6003
*PPU $0000-$07FF: 2 KiB CHR-ROM bank, switchable via $6004
*PPU $0800-$0FFF: 2 KiB CHR-ROM bank, switchable via $6005
*PPU $1000-$17FF: 2 KiB CHR-ROM bank, switchable via $6006
*PPU $1800-$1FFF: 2 KiB CHR-ROM bank, switchable via $6007
Nametable mirroring is hard-wired and set by the iNES header.
=Registers=
==PRG-ROM bank select ($6000-$6003), write==
A~[0110 0000 000. .0rr] D~[..bb bbbb]
                    ||      ++-++++- PRG A18..A13 of bank to select
                    ++--------------- CPU A14..A13 bank to switch
* When reading from CPU address $FFE4-$FFE7, $FFEC-$FFEF, $FFF4-$FFF7, or $FFFC-$FFFF, PRG A17 is forced high, as if register $6003 were OR'd with $10.
* Register $6003 is set to $FF at power-on only.


There is additionally some weird behavior on reads from $FFE4-$FFFF, but most existing dumps have been fixed to not need this.
==CHR-ROM bank select ($6004-$6007), write==
A~[0110 0000 000. .1rr] D~[bbbb bbbb]
                    ||    ++++-++++- CHR A18..A11 of bank to select
                    ++--------------- PPU A12..A11 bank to switch


See also:
=See also=
* http://forums.nesdev.org/viewtopic.php?t=13969 Why does Fong Shen Bang only work in Famiclones?
* http://forums.nesdev.org/viewtopic.php?t=13969 Why does Fong Shen Bang only work in Famiclones?

Latest revision as of 16:30, 7 September 2024

iNES Mapper 246 denotes the G0151-1 circuit board, used only for the Taiwanese game 封神榜 (Fēngshénbǎng: Fúmó Sān Tàizǐ).

Banks

  • CPU $6800-$6FFF: 2 KiB PRG-RAM, battery-banked
  • CPU $8000-$9FFF: 8 KiB PRG-ROM bank, switchable via $6000
  • CPU $A000-$BFFF: 8 KiB PRG-ROM bank, switchable via $6001
  • CPU $C000-$DFFF: 8 KiB PRG-ROM bank, switchable via $6002
  • CPU $E000-$FFFF: 8 KiB PRG-ROM bank, switchable via $6003
  • PPU $0000-$07FF: 2 KiB CHR-ROM bank, switchable via $6004
  • PPU $0800-$0FFF: 2 KiB CHR-ROM bank, switchable via $6005
  • PPU $1000-$17FF: 2 KiB CHR-ROM bank, switchable via $6006
  • PPU $1800-$1FFF: 2 KiB CHR-ROM bank, switchable via $6007

Nametable mirroring is hard-wired and set by the iNES header.

Registers

PRG-ROM bank select ($6000-$6003), write

A~[0110 0000 000. .0rr] D~[..bb bbbb]
                    ||       ++-++++- PRG A18..A13 of bank to select
                    ++--------------- CPU A14..A13 bank to switch
  • When reading from CPU address $FFE4-$FFE7, $FFEC-$FFEF, $FFF4-$FFF7, or $FFFC-$FFFF, PRG A17 is forced high, as if register $6003 were OR'd with $10.
  • Register $6003 is set to $FF at power-on only.

CHR-ROM bank select ($6004-$6007), write

A~[0110 0000 000. .1rr] D~[bbbb bbbb]
                    ||     ++++-++++- CHR A18..A11 of bank to select
                    ++--------------- PPU A12..A11 bank to switch

See also