mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-12 10:41:58 +00:00
Have a stab at sorting out processor pin handling.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user