Lot's of small niggles corrected across the EightBit libraries

This commit is contained in:
Adrian Conlon
2024-03-18 13:03:41 +00:00
parent 739ce39360
commit 8b6c4a205e
21 changed files with 44 additions and 66 deletions

View File

@@ -21,14 +21,14 @@ void EightBit::LittleEndianProcessor::setWord(const register16_t value) {
}
EightBit::register16_t EightBit::LittleEndianProcessor::getWordPaged() {
const auto low = getBytePaged();
const auto low = memoryRead();
++BUS().ADDRESS().low;
const auto high = memoryRead();
return { low, high };
}
void EightBit::LittleEndianProcessor::setWordPaged(register16_t value) {
setBytePaged(value.low);
memoryWrite(value.low);
++BUS().ADDRESS().low;
memoryWrite(value.high);
}