Add the concept of a clocked chip

This commit is contained in:
Adrian Conlon
2019-01-10 22:23:51 +00:00
parent 71daf6aa38
commit 9755a5fcd2
8 changed files with 44 additions and 20 deletions

View File

@@ -118,7 +118,9 @@ void Board::updateAciaPins(const EightBit::Chip::PinLevel rw) {
bool Board::accessAcia() {
ACIA().raise(ACIA().E());
const bool accessed = ACIA().tick();
const bool activated = ACIA().activated();
if (activated)
ACIA().step();
ACIA().lower(ACIA().E());
return accessed;
return activated;
}