How to reprogram an nes game?

Discuss hardware-related topics, such as development cartridges, CopyNES, PowerPak, EPROMs, or whatever.

Moderators: B00daW, Moderators

Post Reply
endrien
Posts: 20
Joined: Fri Oct 02, 2009 6:34 pm

How to reprogram an nes game?

Post by endrien »

I plan on buying a eprom programmer in a few days and I'd like to know if I can reprogram a nes game just like I'd reprogram any atari 2600 game etc. Like do I just burn an nes rom on a single eprom or do I need to reprogram a few eproms?
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

There are two ROMs in many NES Game Paks: one to hold the program, and one to hold the font. (This is a "CHR ROM" configuration.) Other Game Paks store everything on one ROM and have a RAM chip to hold the font. (This is called "CHR RAM".) Do you know to operate a hex editor?
endrien
Posts: 20
Joined: Fri Oct 02, 2009 6:34 pm

Post by endrien »

tepples wrote:There are two ROMs in many NES Game Paks: one to hold the program, and one to hold the font. (This is a "CHR ROM" configuration.) Other Game Paks store everything on one ROM and have a RAM chip to hold the font. (This is called "CHR RAM".) Do you know to operate a hex editor?
I've used a hex editor for editing exe files before, so yes I do know how to operate a hex editor.
User avatar
AWal
Posts: 132
Joined: Wed Oct 06, 2004 8:00 am
Location: Northern New York
Contact:

Post by AWal »

You should have no problems if you have done 2600 cartridges before...One of the major differences is the pin configuration of the program and character ROM chips (Mask ROM in this situation).

Some helpfull hints would be the Mask ROM Pinouts and the datasheet(s) for the EEPROM/Flash you are going to swap with.

Do you know what you want to convert? This may be helpfull since there are several memory switching methods, and some only work on certain boards. If you've done 2600 boards, you're probably familiar with the 1/2/4K Banking and the Expansion RAM...The NES also has MMCs and Battery Backups for RAM to boot.
endrien
Posts: 20
Joined: Fri Oct 02, 2009 6:34 pm

Post by endrien »

AWal wrote:You should have no problems if you have done 2600 cartridges before...One of the major differences is the pin configuration of the program and character ROM chips (Mask ROM in this situation).

Some helpfull hints would be the Mask ROM Pinouts and the datasheet(s) for the EEPROM/Flash you are going to swap with.

Do you know what you want to convert? This may be helpfull since there are several memory switching methods, and some only work on certain boards. If you've done 2600 boards, you're probably familiar with the 1/2/4K Banking and the Expansion RAM...The NES also has MMCs and Battery Backups for RAM to boot.
My mistake, I haven't actually reprogrammed a 2600 game, I just know you only need to swap one eprom as thats all there is to a 2600 game cart.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

The most common format for an NES executable is iNES, which originated in the pirate community but has since come into official use. The vast majority of iNES files have two or three parts:
  1. a 16-byte header that describes a circuit board suitable for running the game, including any mapper chips,
  2. a "PRG" (program) ROM image, and
  3. an optional "CHR" (character) ROM image that contains fonts and other graphics.
The first 16 bytes make up the header. Bytes 0-3 are always 'N', 'E', 'S', $1A. If the value at offset 5 is zero, there are one PRG ROM and one CHR RAM; if it is nonzero, there are two ROMs (PRG and CHR), and the value gives the size of the CHR ROM in 8192 byte units.
endrien
Posts: 20
Joined: Fri Oct 02, 2009 6:34 pm

Post by endrien »

So basically I need to burn 3 eproms?
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

You need to burn one or two, depending on the game. The header just tells you which game you'll need to buy and reprogram, as different games need different kinds of circuit boards with different support chips.
endrien
Posts: 20
Joined: Fri Oct 02, 2009 6:34 pm

Post by endrien »

Ohh, is there any way to tell without opening the cart? Like is there a list somewhere of supported donor boards?
User avatar
thefox
Posts: 3139
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Post by thefox »

You might find this useful: http://bootgod.dyndns.org:7777/
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
Post Reply