newemuloop: add diagnostic code for timer calculation
This commit is contained in:
parent
3e9dd9d6c0
commit
ffa4adfc47
|
@ -1312,8 +1312,8 @@ static INLINE u16 read_timer(int proc, int timerIndex)
|
||||||
s32 units = diff / (1<<MMU.timerMODE[proc][timerIndex]);
|
s32 units = diff / (1<<MMU.timerMODE[proc][timerIndex]);
|
||||||
|
|
||||||
s32 ret = 65535 - units;
|
s32 ret = 65535 - units;
|
||||||
assert(ret>=0);
|
if(ret<0) printf("NEW EMULOOP BAD NEWS PLEASE REPORT: TIME READ RETURN < 0: %d\n", ret);
|
||||||
if(ret<0) printf("NEW EMULOOP BAD NEWS PLEASE REPORT: TIME READ RETURN < 0\n");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue