Sort out some exception and member initialisation rules.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-08-11 21:19:19 +01:00
parent b640da1910
commit 70c70af969
30 changed files with 157 additions and 123 deletions

View File

@@ -11,14 +11,13 @@ void EightBit::Processor::reset() {
raise(INT());
raise(NMI());
raise(RESET());
PC().word = 0;
PC() = 0;
}
int EightBit::Processor::run(const int limit) {
int current = 0;
while (LIKELY(powered()) && current < limit) {
while (LIKELY(powered()) && current < limit)
current += singleStep();
}
return current;
}