INES Mapper 006: Difference between revisions

From NESdev Wiki
Jump to navigationJump to search
(WRAM saving)
mNo edit summary
Line 1: Line 1:
{{DEFAULTSORT:006}}[[Category:INES Mappers]][[Category:Mappers with cycle IRQs]]
{{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#Doctor_Header_file|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:
'''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#Doctor_Header_file|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
  ; 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  
  [[Super_Magic_Card#Super_Magic_Card_mode_.28.244500.2C_write-only.29|$4500]] = $42  

Revision as of 11:39, 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