mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-01-23 04:16:02 +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:
@@ -1,12 +1,6 @@
|
||||
#include "stdafx.h"
|
||||
#include "Bus.h"
|
||||
|
||||
uint16_t EightBit::Bus::peekWord(const uint16_t address) {
|
||||
const auto low = peek(address);
|
||||
const auto high = peek(address + 1);
|
||||
return register16_t(low, high).word;
|
||||
}
|
||||
|
||||
uint8_t EightBit::Bus::read() {
|
||||
ReadingByte.fire(EventArgs::empty());
|
||||
DATA() = reference();
|
||||
|
||||
Reference in New Issue
Block a user