This commit is contained in:
TiKevin83 2020-05-22 09:28:36 -04:00
parent 2eb321a495
commit 5a7c198d46
2 changed files with 4 additions and 2 deletions

View File

@ -291,11 +291,13 @@ bool LCD::vramReadable(unsigned long const cc) {
}
bool LCD::vramExactlyReadable(unsigned long const cc) {
bool vramAlreadyExactlyRead = vramHasBeenExactlyRead;
if (vramHasBeenExactlyRead) {
return false;
}
if ((cc + 2 + isDoubleSpeed() > m0TimeOfCurrentLine(cc)) && (cc + 2 + isDoubleSpeed() < m0TimeOfCurrentLine(cc) + 4)) {
vramHasBeenExactlyRead = true;
}
return !vramAlreadyExactlyRead && (cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc));
return cc + 2 + isDoubleSpeed() == m0TimeOfCurrentLine(cc);
}
bool LCD::vramWritable(unsigned long const cc) {

Binary file not shown.