Horrible mistake fixed (thanks Nach).
This commit is contained in:
@@ -59,8 +59,6 @@ extern signed short Op10Coefficient;
|
|||||||
|
|
||||||
void BackupCVFrame()
|
void BackupCVFrame()
|
||||||
{
|
{
|
||||||
|
|
||||||
unsigned int ramsizew, i;
|
|
||||||
unsigned char *curpos;
|
unsigned char *curpos;
|
||||||
|
|
||||||
curpos = StateBackup + (CBackupPos << 19) + 1024;
|
curpos = StateBackup + (CBackupPos << 19) + 1024;
|
||||||
@@ -127,13 +125,7 @@ void BackupCVFrame()
|
|||||||
|
|
||||||
if (SETAEnable) { memcpyinc (curpos, setaramdata, 256*16); }
|
if (SETAEnable) { memcpyinc (curpos, setaramdata, 256*16); }
|
||||||
|
|
||||||
ramsizew = ramsize >> 4;
|
memcpyinc (curpos, sram, ramsize);
|
||||||
|
|
||||||
for (i = ramsizew ; i>0 ; i--)
|
|
||||||
{
|
|
||||||
memcpyinc (curpos, sram, 1*16);
|
|
||||||
}
|
|
||||||
|
|
||||||
memcpyinc (curpos, &tempesi, 4);
|
memcpyinc (curpos, &tempesi, 4);
|
||||||
memcpyinc (curpos, &tempedi, 4);
|
memcpyinc (curpos, &tempedi, 4);
|
||||||
memcpyinc (curpos, &tempedx, 4);
|
memcpyinc (curpos, &tempedx, 4);
|
||||||
@@ -166,7 +158,6 @@ extern unsigned int PBackupPos;
|
|||||||
|
|
||||||
void RestoreCVFrame()
|
void RestoreCVFrame()
|
||||||
{
|
{
|
||||||
unsigned int ramsizew, i;
|
|
||||||
unsigned char *curpos;
|
unsigned char *curpos;
|
||||||
|
|
||||||
curpos = StateBackup + (PBackupPos << 19) + 1024;
|
curpos = StateBackup + (PBackupPos << 19) + 1024;
|
||||||
@@ -233,13 +224,7 @@ void RestoreCVFrame()
|
|||||||
|
|
||||||
if (SETAEnable) { memcpyrinc (curpos, setaramdata, 256*16); }
|
if (SETAEnable) { memcpyrinc (curpos, setaramdata, 256*16); }
|
||||||
|
|
||||||
ramsizew = ramsize >> 4;
|
memcpyrinc (curpos, sram, ramsize);
|
||||||
|
|
||||||
for (i = ramsizew ; i>0 ; i--)
|
|
||||||
{
|
|
||||||
memcpyrinc (curpos, sram, 1*16);
|
|
||||||
}
|
|
||||||
|
|
||||||
memcpyrinc (curpos, &tempesi, 4);
|
memcpyrinc (curpos, &tempesi, 4);
|
||||||
memcpyrinc (curpos, &tempedi, 4);
|
memcpyrinc (curpos, &tempedi, 4);
|
||||||
memcpyrinc (curpos, &tempedx, 4);
|
memcpyrinc (curpos, &tempedx, 4);
|
||||||
|
|||||||
Reference in New Issue
Block a user