better CDL for RAM based FDS system (writes to the RAM discards the logged bits to allow to log different loaded files separately)

This commit is contained in:
g0me3 2021-05-27 20:32:26 +02:00
parent 7bd1d6c2e8
commit b10b6254c3
1 changed files with 5 additions and 4 deletions

View File

@ -500,17 +500,18 @@ void LogCDData(uint8 *opcode, uint16 A, int size) {
datacount++;
if (!(cdloggerdata[j] & 1))undefinedcount--;
}
} /* else {
} else {
if (cdloggerdata[j] & 1) {
codecount--;
cdloggerdata[j] &= 0xFE;
if (!(cdloggerdata[j] & 2))undefinedcount--;
}
if (cdloggerdata[j] & 2) {
datacount--;
if (!(cdloggerdata[j] & 1))undefinedcount--;
cdloggerdata[j] &= 0xFD;
if (!(cdloggerdata[j] & 1)) undefinedcount--;
}
cdloggerdata[j] = 0;
} */
}
}
}