Fixed SRAM issue.

This commit is contained in:
n-a-c-h
2004-01-13 17:55:23 +00:00
parent 46522a3f6b
commit 4459682a02
2 changed files with 7 additions and 3 deletions

View File

@@ -841,7 +841,7 @@ void clearmem()
clearmem2();
}
void clearmem2()
void clearSPCRAM()
{
/*
SPC RAM is filled with alternating 0x00 and 0xFF for 0x20 bytes.
@@ -862,8 +862,12 @@ void clearmem2()
memset(spcRam+i, 0, 0x20);
memset(spcRam+i+0x20, 0xFF, 0x20);
}
}
void clearmem2()
{
memset(sram, 0xFF, 16384);
clearSPCRAM;
}