Low level processor simplifications.

This commit is contained in:
Adrian Conlon
2024-03-01 20:06:39 +00:00
parent 4e536ee7ed
commit f3c694303d
6 changed files with 28 additions and 14 deletions

View File

@@ -68,6 +68,16 @@ void EightBit::Processor::setBytePaged(const uint8_t page, const uint8_t offset,
memoryWrite(register16_t(offset, page), value);
}
EightBit::register16_t EightBit::Processor::getWordPaged(const uint8_t page, const uint8_t offset) {
BUS().ADDRESS() = { offset, page };
return getWordPaged();
}
void EightBit::Processor::setWordPaged(const uint8_t page, const uint8_t offset, const register16_t value) {
BUS().ADDRESS() = { offset, page };
setWordPaged(value);
}
uint8_t EightBit::Processor::fetchByte() {
return memoryRead(PC()++);
}