767aa140862eb02f31e1706ea1567459b022fa64
TH0/TL0 torn-read protection didn't cover the case where the hardware counter already wrapped but Timer0_Isr hasn't run yet to bump timer0_ovf_count, making the timestamp appear to jump backward by one overflow period (~32.768ms). Read TF0 under a brief EA guard and treat a pending-but-unserviced overflow as ovf+1 without clearing it.
Description
No description provided
Languages
C
99.1%
Assembly
0.9%