Some minor changes and playing about
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user