fixed ARM timers (#fixes 872)

This commit is contained in:
Thomas Jentzsch 2022-02-08 22:35:59 +01:00
parent be90abb487
commit 6832465ad1
1 changed files with 2 additions and 2 deletions

View File

@ -213,13 +213,13 @@ void Thumbulator::updateTimer(uInt32 cycles)
if(T0TCR & 1) // bit 0 controls timer on/off if(T0TCR & 1) // bit 0 controls timer on/off
{ {
T0TC += static_cast<uInt32>(cycles * timing_factor); T0TC += static_cast<uInt32>(cycles * timing_factor);
tim0Total = 0; tim0Total = tim0Start;
} }
#endif #endif
if(T1TCR & 1) // bit 0 controls timer on/off if(T1TCR & 1) // bit 0 controls timer on/off
{ {
T1TC += static_cast<uInt32>(cycles * timing_factor); T1TC += static_cast<uInt32>(cycles * timing_factor);
tim1Total = 0; tim1Total = tim1Start;
} }
} }