21 lines
442 B
C#
21 lines
442 B
C#
|
namespace Essgee.Emulation.Cartridges
|
|||
|
{
|
|||
|
public interface ICartridge
|
|||
|
{
|
|||
|
void LoadRom(byte[] data);
|
|||
|
void LoadRam(byte[] data);
|
|||
|
|
|||
|
byte[] GetRomData();
|
|||
|
byte[] GetRamData();
|
|||
|
bool IsRamSaveNeeded();
|
|||
|
|
|||
|
ushort GetLowerBound();
|
|||
|
ushort GetUpperBound();
|
|||
|
|
|||
|
void Step(int clockCyclesInStep);
|
|||
|
|
|||
|
byte Read(ushort address);
|
|||
|
void Write(ushort address, byte value);
|
|||
|
}
|
|||
|
}
|