INES Mapper 006: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
No edit summary
(Link to correct subheading)
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:INES Mappers|006]]
{{DEFAULTSORT:006}}[[Category:INES Mappers]][[Category:Mappers with cycle IRQs]]
'''iNES Mapper 006''' denotes ROM images that have been extracted from disk images for the ''Front Fareast Magic Card 1M'' or ''2M'' [[RAM cartridge|RAM cartridges]]. They represent games whose [[Game_Doctor/Magic_Card_FDS_Format#Front_Fareast_Magic_Card_1M.2F2M.2F4M_disks|Doctor Header file]] denotes a Magic Card 1M/2M disk (byte $0 bit 7 set, bits 4 and 5 clear, byte $7=$00). Refer to the [[Super Magic Card]] article for details on bankswitching. The Super Magic Card's registers are initialized to:
; Play mode, WRAM bank 0, 1 KiB CHR mode disabled
[[Super_Magic_Card#Super_Magic_Card_mode_.28.244500.2C_write-only.29|$4500]] = $42
; PRG memory write-protected, two-screen mirroring
[[Super_Magic_Card#1M_banking_mode_.28.2442FC-.2442FF.2C_write-only.29|$42FF]] = (submapper <<5) | (verticalMirroring? 0x00: 0x10)
; 2M/4M banking mode disabled
[[Super_Magic_Card#2M.2F4M_PRG_banking_mode_.28.2443FC-.2443FF.2C_write-only.29|$43FF]] = $00
The [[NES 2.0]] Submapper field denotes the initial [[Super_Magic_Card#Latch-based_modes|latch-based banking mode]] (0-7). [[INES|NES 1.0]] files correspond to submapper 1. '''iNES [[INES Mapper 008|Mapper 8]]''' is a synonym of Mapper 6 submapper 4.


Mapper 6 is used for FFE disk images. That is, for ROM-images stored on floppy disks as used by old copiers from Front Far East. Unlike normal ROM-images, these files are typically patched to work with the copiers mapping hardware, portions of these patches are typically stored in the so-called "trainer" area of [[iNES]] files (the iNES "trainer" apparently being poor japanese-to-english translation for "patch").
The [[iNES]] header may specify a [[INES#Trainer|512-byte trainer]] (corresponding to [[Game_Doctor/Magic_Card_FDS_Format#Front_Fareast_Magic_Card_1M.2F2M.2F4M_disks|Doctor Header file]]'s byte $0 bit 6 being set), which must be loaded to $7000-$71FF, be writable, and (on a hard reset) initialized by JSRing to $7003 before JMPing to the game's reset vector.


There are several FFE mapping variants: [[INES Mapper 006|Mapper 6]], [[INES Mapper 008|Mapper 8]], [[INES Mapper 012|Mapper 12]], and [[INES Mapper 017|Mapper 17]].
Battery-saving of WRAM content is not supported by any Magic Card model. Hard-resetting a game while restoring previously-saved WRAM content in emulators interferes with the correct operation of the trainer's program.


FCEUX ostensibly emulates this. As do most NES emulators.
=See also=
 
* [//nesdev.org/mapper6.txt Mapper 6]  Info on the FFE mapper. By FanWen Yang (outdated).
* [http://nesdev.org/mapper6.txt Mapper 6]  Info on the FFE mapper. By FanWen Yang.
* [http://www.famicomdisksystem.com/game-doctor-copiers/ Info on various Famicom "copiers"]

Latest revision as of 11:44, 7 December 2021

iNES Mapper 006 denotes ROM images that have been extracted from disk images for the Front Fareast Magic Card 1M or 2M RAM cartridges. They represent games whose Doctor Header file denotes a Magic Card 1M/2M disk (byte $0 bit 7 set, bits 4 and 5 clear, byte $7=$00). Refer to the Super Magic Card article for details on bankswitching. The Super Magic Card's registers are initialized to:

; Play mode, WRAM bank 0, 1 KiB CHR mode disabled
$4500 = $42 

; PRG memory write-protected, two-screen mirroring
$42FF = (submapper <<5) | (verticalMirroring? 0x00: 0x10)

; 2M/4M banking mode disabled
$43FF = $00 

The NES 2.0 Submapper field denotes the initial latch-based banking mode (0-7). NES 1.0 files correspond to submapper 1. iNES Mapper 8 is a synonym of Mapper 6 submapper 4.

The iNES header may specify a 512-byte trainer (corresponding to Doctor Header file's byte $0 bit 6 being set), which must be loaded to $7000-$71FF, be writable, and (on a hard reset) initialized by JSRing to $7003 before JMPing to the game's reset vector.

Battery-saving of WRAM content is not supported by any Magic Card model. Hard-resetting a game while restoring previously-saved WRAM content in emulators interferes with the correct operation of the trainer's program.

See also