Reworking the memory management & fixing a bug in the memory viewer goto

This commit is contained in:
Zoe Roux
2021-02-03 23:43:07 +01:00
parent 0b28719f41
commit 874c21b0fd
29 changed files with 295 additions and 307 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ namespace ComSquare::CPU
case 0x100 ... 0x180:
return this->_dmaChannels[(addr - 0x100) >> 8u].read(addr & 0xF);
default:
throw InvalidAddress("CPU Internal Registers read", addr + this->getStart());
throw InvalidAddress("CPU Internal Registers read", addr + this->_start);
}
}
@@ -203,7 +203,7 @@ namespace ComSquare::CPU
this->_dmaChannels[(addr - 0x100) >> 8u].write(addr & 0xF, data);
break;
default:
throw InvalidAddress("CPU Internal Registers write", addr + this->getStart());
throw InvalidAddress("CPU Internal Registers write", addr + this->_start);
}
}