INES Mapper 246: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(Created page with "Category:iNES Mappers Here are Disch's original notes: ======================== = Mapper 246 = ======================== Example Game: ----------…")
 
(→‎PRG-ROM bank select ($6000-$6003), write: it's 16 specific addresses, not the 28 byte region)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:iNES Mappers]]
{{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ǐ'')]].
  Here are Disch's original notes:
 
  ========================
=Banks=
  = Mapper 246          =
*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
  Example Game:
*CPU $E000-$FFFF: 8 KiB PRG-ROM bank, switchable via $6003
  --------------------------
*PPU $0000-$07FF: 2 KiB CHR-ROM bank, switchable via $6004
  Fong Shen Bang - Zhu Lu Zhi Zhan
*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
  Notes:
Nametable mirroring is hard-wired and set by the iNES header.
  --------------------------
=Registers=
 
==PRG-ROM bank select ($6000-$6003), write==
  Regs lie at $6000-67FF, but SRAM exists at $6800-7FFF.
A~[0110 0000 000. .0rr] D~[..bb bbbb]
 
                    ||      ++-++++- PRG A18..A13 of bank to select
  Don't know if there's only 6k of SRAM, or if there's 8k, but the first 2k is inaccessable.  I find the latter
                    ++--------------- CPU A14..A13 bank to switch
  more likely.
* 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.
 
 
  Registers:
==CHR-ROM bank select ($6004-$6007), write==
  ---------------------------
  A~[0110 0000 000. .1rr] D~[bbbb bbbb]
 
                    ||    ++++-++++- CHR A18..A11 of bank to select
  Range,Mask:   $6000-67FF, $6007
                    ++--------------- PPU A12..A11 bank to switch
 
 
 
=See also=
    $6000-6003: PRG Regs
* http://forums.nesdev.org/viewtopic.php?t=13969 Why does Fong Shen Bang only work in Famiclones?
    $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 (and probably reset, but not sure).

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