mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-01-26 09:16:05 +00:00
Remove get/getWord and set/setWord from memory class. Just use address and data lines on the memory.
Signed-off-by: Adrian.Conlon <adrian.conlon@arup.com>
This commit is contained in:
@@ -25,18 +25,6 @@ uint16_t EightBit::Memory::peekWord(uint16_t address) const {
|
||||
return returned.word;
|
||||
}
|
||||
|
||||
EightBit::register16_t EightBit::Memory::getWord(uint16_t address) {
|
||||
register16_t returned;
|
||||
returned.low = get(address);
|
||||
returned.high = get(address + 1);
|
||||
return returned;
|
||||
}
|
||||
|
||||
void EightBit::Memory::setWord(uint16_t address, register16_t value) {
|
||||
set(address, value.low);
|
||||
set(address + 1, value.high);
|
||||
}
|
||||
|
||||
void EightBit::Memory::clear() {
|
||||
m_bus.fill(0);
|
||||
m_locked.fill(false);
|
||||
|
||||
Reference in New Issue
Block a user