mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-15 01:16:39 +00:00
Whoops: The "Bus" class *really* isn't allowed to know the "endianness" of the attached processor!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -46,3 +46,9 @@ EightBit::register16_t EightBit::LittleEndianProcessor::popWord() {
|
||||
const auto high = pop();
|
||||
return register16_t(low, high);
|
||||
}
|
||||
|
||||
EightBit::register16_t EightBit::LittleEndianProcessor::peekWord(const register16_t address) {
|
||||
const auto low = BUS().peek(address.word);
|
||||
const auto high = BUS().peek(address.word + 1);
|
||||
return register16_t(low, high).word;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user