Essgee.Unity/Assets/Plugins/Essgee/Emulation/Cartridges/ICartridge.cs

27 lines
490 B
C#
Raw Normal View History

2025-01-02 17:55:16 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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);
}
}