Fixed 'mystery constant' in M6532 in two other places.

This commit is contained in:
Stephen Anthony 2017-02-26 20:29:18 -03:30
parent 10245ea102
commit 2a2797cbaf
1 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ uInt8 M6532::intim() const
// Get number of clocks since timer was set
Int32 timer = timerClocks();
if(!(timer & 0x40000))
if(timer >= 0)
return (timer >> myIntervalShift) & 0xff;
else
return timer & 0xff;
@ -426,7 +426,7 @@ Int32 M6532::intimClocks() const
// Get number of clocks since timer was set
Int32 timer = timerClocks();
if(!(timer & 0x40000))
if(timer >= 0)
return timerClocks() & ((1 << myIntervalShift) - 1);
else
return timer & 0xff;