Support IIe aux slot: 80-col(1KiB) card via generic read ptrs (#1341, PR #1391)

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:
TomCh
2025-04-03 13:10:02 -07:00
committed by GitHub
parent 629e1344a2
commit 839c493b67
31 changed files with 1073 additions and 589 deletions
+8 -8
View File
@@ -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;