PIT now reloads the timer count when hardware triggered strobe completes - no longer causes the emulator to hang.
This commit is contained in:
parent
959be30bd7
commit
8ee5c763bd
1 changed files with 2 additions and 0 deletions
|
|
@ -252,6 +252,8 @@ static void pit_over(int t)
|
||||||
pit_set_out(t, 1);
|
pit_set_out(t, 1);
|
||||||
}
|
}
|
||||||
pit.thit[t] = 1;
|
pit.thit[t] = 1;
|
||||||
|
pit.count[t] += 0xffff;
|
||||||
|
pit.c[t] += (int)((0xffff << TIMER_SHIFT) * PITCONST);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pit.running[t] = pit.enabled[t] && pit.using_timer[t];
|
pit.running[t] = pit.enabled[t] && pit.using_timer[t];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue