Can the game code modify PRG rom?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
User avatar
Nadia
Posts: 92
Joined: Thu Nov 05, 2009 8:31 am

Can the game code modify PRG rom?

Post by Nadia »

Can the game code(in PRG ROM) write to local storage? i.e. Can the code use local variables which point to memory within the PRG rom memory area? e.g using counters etc. defined inside the program itself...
Cheers,
Nadia
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

ROM is not writable.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

Writes to PRG-ROM often cause the written value to be used by the mapper, if one is present. PRG-ROM stays intact of course, being ROM and all.
Last edited by tokumaru on Tue Dec 08, 2009 6:58 am, edited 1 time in total.
doppelganger
Posts: 183
Joined: Tue Apr 05, 2005 7:30 pm

Post by doppelganger »

One could, in theory, have RAM mapped into $8000-$ffff, but in practice external RAM, if any, is usually mapped into $6000-$7fff.
Be whatever the situation demands.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

L K J H G FDS A

Post by tepples »

Except, of course, for one well-known Japan-only mapper that has ROM at $E000-$FFFF that's identical in all games, RAM at $6000-$DFFF, and a rewritable magnetic medium.
User avatar
Jeroen
Posts: 1048
Joined: Tue Jul 03, 2007 1:49 pm

Post by Jeroen »

You COULD just say famicom disk system you know :wink:
User avatar
Memblers
Site Admin
Posts: 3901
Joined: Mon Sep 20, 2004 6:04 am
Location: Indianapolis
Contact:

Post by Memblers »

My Squeedo cartridge uses 29F-series FlashROM there. It would be nice if that were emulated, because of the obvious advantages over EPROM. It wouldn't be that hard to emulate, but there are a couple basic different types.
Post Reply