Don't raise irq 0 when programming a new timer instantatanously. Take in account that the hardware requires some time to be setup as well.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2669
This commit is contained in:
parent
7a842811f0
commit
06297a72ae
1 changed files with 5 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: timer.cpp,v 1.38 2006-05-19 10:34:02 qbix79 Exp $ */
|
||||
/* $Id: timer.cpp,v 1.39 2006-07-10 09:27:37 qbix79 Exp $ */
|
||||
|
||||
#include <math.h>
|
||||
#include "dosbox.h"
|
||||
|
@ -295,8 +295,11 @@ static void write_p43(Bitu /*port*/,Bitu val,Bitu /*iolen*/) {
|
|||
|
||||
if (latch == 0) {
|
||||
PIC_RemoveEvents(PIT0_Event);
|
||||
if (!counter_output(0) && mode)
|
||||
if (!counter_output(0) && mode) {
|
||||
PIC_ActivateIRQ(0);
|
||||
//Don't raise instantaniously. (Origamo)
|
||||
if(CPU_Cycles < 25) CPU_Cycles = 25;
|
||||
}
|
||||
if(!mode)
|
||||
PIC_DeActivateIRQ(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue