Correct speed and dont reset when stopped

main
Astoria 7 months ago
parent 789d41d92f
commit 9302d35daa

@ -45,12 +45,12 @@ public class CpuEntity extends Peripheral implements CpuControl {
be.notTicked = false;
}
if(be.state == CpuState.RUNNING) {
for (int i = 0; i < 1000; i++)
for (int i = 0; i < 500; i++)
be.step();
} else{
if (be.state == CpuState.RESET && be.resetTimer > 0){
be.resetTimer--;
} else {
} else if(be.state == CpuState.RESET) {
be.core = new Emulator(be.getBus().getRedBus());
}
}

Loading…
Cancel
Save