Fixed Plus 3 Snapshot saving and loading

This commit is contained in:
2026-04-30 16:28:58 +01:00
parent bc2748250d
commit 7a4f34af65
2 changed files with 113 additions and 50 deletions

View File

@@ -18,6 +18,8 @@ namespace Core.Memory
private byte _port7FFD = 0;
private byte _port1FFD = 0;
private bool _pagingDisabled = false;
public byte Port7FFD => _port7FFD;
public int CurrentRamBankSlot3 => _currentRamBankSlot3;
public MemoryBus()
{
@@ -94,6 +96,11 @@ namespace Core.Memory
default: return -1; // -1 means it is pointing to a ROM chip!
}
}
public byte[] GetRamBank(int index)
{
return _ramBanks[index];
}
public byte Read(ushort address)
{
int slot = address >> 14; // Find the 16KB Slot (0, 1, 2, or 3)