commodore64: only initialize RAM array on instantiation, memory already cleared in HardReset

This commit is contained in:
saxxonpike 2012-11-27 21:03:01 +00:00
parent e44c6cfa55
commit 46e13a6a57
1 changed files with 1 additions and 2 deletions

View File

@ -22,13 +22,12 @@ namespace BizHawk.Emulation.Computers.Commodore64.MOS
public Chip4864()
{
ram = new byte[0x10000];
HardReset();
}
public void HardReset()
{
ram = new byte[0x10000];
// stripe the ram
for (int i = 0; i < 10000; i++)
ram[i] = ((i & 0x40) != 0) ? (byte)0xFF : (byte)0x00;