mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-20 15:17:50 +00:00
Better support the IIe's aux slot when it's empty or has the 80-col(1KiB) card. - any h/w using this alternate CPU emulation, (ie. aux=empty or 80-col(1KiB)), then the 'mem' cache is completely bypassed. Debugger: change all the direct 'mem' accesses to go via ReadByteFromMemory(). TestCPU6502: test the alt CPU emulation code too.
This commit is contained in:
@@ -1038,10 +1038,10 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
ReadFile(ptr->hFile, mem+address, length, &bytesread, NULL);
|
||||
int loop = 192;
|
||||
while (loop--)
|
||||
*(memdirty+loop) = 0xFF;
|
||||
ReadFile(ptr->hFile, MemGetMainPtr(address), length, &bytesread, NULL);
|
||||
int page = 192;
|
||||
while (page--)
|
||||
*(memdirty+page) = 0xFF;
|
||||
|
||||
regs.pc = address;
|
||||
return true;
|
||||
@@ -1092,11 +1092,11 @@ public:
|
||||
}
|
||||
|
||||
SetFilePointer(pImageInfo->hFile,128,NULL,FILE_BEGIN);
|
||||
ReadFile(pImageInfo->hFile, mem+address, length, &bytesread, NULL);
|
||||
ReadFile(pImageInfo->hFile, MemGetMainPtr(address), length, &bytesread, NULL);
|
||||
|
||||
int loop = 192;
|
||||
while (loop--)
|
||||
*(memdirty+loop) = 0xFF;
|
||||
int page = 192;
|
||||
while (page--)
|
||||
*(memdirty+page) = 0xFF;
|
||||
|
||||
regs.pc = address;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user