Have a stab at sorting out processor pin handling.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-08-25 12:09:26 +01:00
parent 17c46264e9
commit c105ee37bf
14 changed files with 110 additions and 100 deletions

View File

@@ -9,7 +9,6 @@ void EightBit::Processor::powerOn() {
raise(RESET());
raise(HALT());
raise(INT());
raise(NMI());
raise(POWER());
}
@@ -18,14 +17,14 @@ void EightBit::Processor::handleRESET() {
PC() = 0;
}
void EightBit::Processor::handleNMI() {
raise(NMI());
}
void EightBit::Processor::handleINT() {
raise(INT());
}
void EightBit::Processor::handleIRQ() {
raise(IRQ());
}
int EightBit::Processor::run(const int limit) {
int current = 0;
while (LIKELY(powered()) && current < limit)