From e6bb277f82f1f6965bfc21ce67cf1b69faaa6996 Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 14 Apr 2008 01:39:59 +0000 Subject: [PATCH] Oops, the timer was wrong in the I2C code. It still isn't working though. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1472 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/MT24LC256.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/MT24LC256.cxx b/stella/src/emucore/MT24LC256.cxx index aa4f06bce..b56cbf2c1 100644 --- a/stella/src/emucore/MT24LC256.cxx +++ b/stella/src/emucore/MT24LC256.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: MT24LC256.cxx,v 1.2 2008-04-13 23:43:14 stephena Exp $ +// $Id: MT24LC256.cxx,v 1.3 2008-04-14 01:39:59 stephena Exp $ //============================================================================ #include @@ -323,7 +323,7 @@ bool MT24LC256::jpee_timercheck(int mode) { uInt32 elapsed = mySystem.cycles() - myCyclesWhenTimerSet; cerr << " --> elapsed: " << elapsed << endl; - return elapsed < (uInt32)(5000.0 / 838.0); + return elapsed < (uInt32)(5000000.0 / 838.0); } }