mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-15 16:16:36 +00:00
Some more rationalisation of processor execution/stepping strategies.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user