From ffa4adfc47367b9385720cf6405e975f69dce239 Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 16 Jul 2009 23:31:25 +0000 Subject: [PATCH] newemuloop: add diagnostic code for timer calculation --- desmume/src/MMU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/MMU.cpp b/desmume/src/MMU.cpp index 05adccc39..8a1df02f1 100644 --- a/desmume/src/MMU.cpp +++ b/desmume/src/MMU.cpp @@ -1312,8 +1312,8 @@ static INLINE u16 read_timer(int proc, int timerIndex) s32 units = diff / (1<=0); - if(ret<0) printf("NEW EMULOOP BAD NEWS PLEASE REPORT: TIME READ RETURN < 0\n"); + if(ret<0) printf("NEW EMULOOP BAD NEWS PLEASE REPORT: TIME READ RETURN < 0: %d\n", ret); + return ret; }