forked from BluestormDNA/ProjectDMG
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement saving and loading of states
- Loading branch information
Showing
26 changed files
with
1,418 additions
and
770 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
namespace ProjectDMG.DMG.GamePak { | ||
using ProjectDMG.DMG.State.DataStructures.GamePak; | ||
|
||
namespace ProjectDMG.DMG.GamePak { | ||
interface IGamePak { | ||
byte ReadLoROM(ushort addr); | ||
byte ReadHiROM(ushort addr); | ||
void WriteROM(ushort addr, byte value); | ||
byte ReadERAM(ushort addr); | ||
void WriteERAM(ushort addr, byte value); | ||
void Init(byte[] ROM); | ||
void Init(byte[] ROM, GamePakSavedState savedState); | ||
GamePakSavedState GetSavedState(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.