1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-30 22:29:56 +00:00

Avoid a spurious initial interrupt.

This commit is contained in:
Thomas Harte 2023-11-23 22:15:20 -05:00
parent 44d602e0f6
commit 7e8020df59

View File

@ -65,11 +65,11 @@ class KeyboardController {
}
void run_for(Cycles cycles) {
if(reset_delay_ < 0) {
if(reset_delay_ <= 0) {
return;
}
reset_delay_ -= cycles.as<int>();
if(reset_delay_ < 0) {
if(reset_delay_ <= 0) {
post(0xaa);
}
}