From 10245ea1023d4819f7a365d14ae2b8e7cf98865e Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Mon, 27 Feb 2017 00:25:06 +0100 Subject: [PATCH] Tentatively remove the legacy kludge in RIOT timer handling. --- src/emucore/M6532.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/emucore/M6532.cxx b/src/emucore/M6532.cxx index 6f8d43f36..d41377305 100644 --- a/src/emucore/M6532.cxx +++ b/src/emucore/M6532.cxx @@ -173,11 +173,7 @@ uInt8 M6532::peek(uInt16 addr) // Get number of clocks since timer was set Int32 timer = timerClocks(); - // Note that this constant comes from z26, and corresponds to - // 256 intervals of T1024T (ie, the maximum that the timer should hold) - // I'm not sure why this is required, but quite a few ROMs fail - // if we just check >= 0. - if(!(timer & 0x40000)) + if(timer >= 0) { // Return at 'divide by TIMxT' interval rate return (timer >> myIntervalShift) & 0xff;