Apply the concept of powered components to the "board"

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-11-11 16:48:44 +00:00
parent f29c571226
commit fdbb28828f
22 changed files with 171 additions and 94 deletions

View File

@@ -8,6 +8,12 @@
#include <stdexcept>
#include <cassert>
void EightBit::Bus::powerOn() {
initialise();
}
void EightBit::Bus::powerOff() {}
uint8_t EightBit::Bus::read() {
ReadingByte.fire(EventArgs::empty());
const auto returned = DATA() = reference();