The entire concept of any ROM (as in, Read Only Memory) is that the actual contents are never altered. Each N64 cart has it's own chip or battery that is used to stored saved data. From an emulator perspective, this is the same as creating a file whenever you save in the game.