1 parent 101eda6 commit 1021371Copy full SHA for 1021371
1 file changed
src/emulator/Cpu.cpp
@@ -50,10 +50,12 @@ void Cpu::cycle() {
50
}
51
this->instructions += this->speed;
52
} else {
53
+ uint32_t count = 0;
54
for (int i = 0; i < this->speed && !this->drawn; i++) {
55
runInstruction();
56
+ count++;
57
- this->instructions += this->speed;
58
+ this->instructions += count;
59
60
61
this->drawn = false;
0 commit comments