Some minor changes and playing about

This commit is contained in:
2026-04-16 14:40:05 +01:00
parent 92625498bf
commit 968141056b
9 changed files with 135 additions and 46 deletions

View File

@@ -35,12 +35,20 @@ namespace Core.Memory
public void CrapRAMData()
{
Random random = new Random();
for (int i = 0x4000; i < 0x5AFF; i++)
for (int i = 0x4000; i < 0xFFFF; i++)
{
_memory[i] = (byte)random.Next(0x00, 0xFF);
}
}
public void CleanRAMData()
{
for (int i = 0x4000; i < 0xFFFF; i++)
{
_memory[i] = 0x00;
}
}
// Load the ROM file
public void LoadRom(byte[] romData)
{