NES 2.0: Add preliminary support for iNES 2.0 format

Currently reads and sets the following:
- mapper number up to 4095, prg rom size, chr rom size
- chr ram (volatile + non-volatile), region (ntsc, pal, dendy or multi-region)

todo: submapper handling, w-ram and prg nvram at least...
This commit is contained in:
retro-wertz
2019-07-05 22:46:22 +08:00
parent bb8aef82c1
commit 51199e59d7
5 changed files with 176 additions and 90 deletions

View File

@@ -28,7 +28,14 @@ typedef struct {
uint8 VROM_size;
uint8 ROM_type;
uint8 ROM_type2;
uint8 reserve[8];
uint8 ROM_type3;
uint8 upper_PRG_CHR_size;
uint8 PRGRAM_size;
uint8 CHRRAM_size;
uint8 Region;
uint8 VS_hardware;
uint8 MiscRoms;
uint8 ExpDevice;
} iNES_HEADER;
extern uint8 *ROM;