Skip to content

Commit 1021371

Browse files
committed
Ah that was why. Because Dyxn
1 parent 101eda6 commit 1021371

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/emulator/Cpu.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ void Cpu::cycle() {
5050
}
5151
this->instructions += this->speed;
5252
} else {
53+
uint32_t count = 0;
5354
for (int i = 0; i < this->speed && !this->drawn; i++) {
5455
runInstruction();
56+
count++;
5557
}
56-
this->instructions += this->speed;
58+
this->instructions += count;
5759
}
5860

5961
this->drawn = false;

0 commit comments

Comments
 (0)