mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-01-23 19:16:21 +00:00
Split Chip class into Device and Chip.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
10
src/Device.cpp
Normal file
10
src/Device.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user