Start big refactor of device/CPU pin usage (to allow pin events throughout).

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2019-01-14 02:10:17 +00:00
parent 9755a5fcd2
commit 92d23d82d6
36 changed files with 508 additions and 248 deletions
+5 -3
View File
@@ -1,10 +1,12 @@
#include "stdafx.h"
#include "Device.h"
void EightBit::Device::powerOn() {
void EightBit::Device::raisePOWER() {
raise(POWER());
RaisedPOWER.fire(EventArgs::empty());
}
void EightBit::Device::match(PinLevel& line, int value) {
value ? raise(line) : lower(line);
void EightBit::Device::lowerPOWER() {
lower(POWER());
LoweredPOWER.fire(EventArgs::empty());
}