Some more rationalisation of processor execution/stepping strategies.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-08-30 23:17:34 +01:00
parent 5fe3d458df
commit e70686c5de
11 changed files with 150 additions and 127 deletions

View File

@@ -15,3 +15,15 @@ void EightBit::Processor::reset() {
void EightBit::Processor::initialise() {
reset();
}
int EightBit::Processor::run(int limit) {
int current = 0;
do {
current += singleStep();
} while (current < limit);
return current;
}
int EightBit::Processor::singleStep() {
return step();
}