Refactor the processor class to give us a "Chip" class that gives up pin levels and power.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-09-23 13:10:58 +01:00
parent 91349eafa4
commit 754fc8e6a3
6 changed files with 95 additions and 63 deletions

View File

@@ -6,10 +6,10 @@ EightBit::Processor::Processor(Bus& bus)
}
void EightBit::Processor::powerOn() {
Chip::powerOn();
raise(RESET());
raise(HALT());
raise(INT());
raise(POWER());
}
void EightBit::Processor::handleRESET() {