Split Chip class into Device and Chip.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-01-10 20:44:16 +00:00
parent 68030610d8
commit 71daf6aa38
6 changed files with 55 additions and 29 deletions

10
src/Device.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include "stdafx.h"
#include "Device.h"
void EightBit::Device::powerOn() {
raise(POWER());
}
void EightBit::Device::match(PinLevel& line, int value) {
value ? raise(line) : lower(line);
}