1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-06 20:29:34 +00:00

Fixed CMP fail on Rob Finch's test suite. Closes #8.

This commit is contained in:
Mike Naberezny 2009-08-16 22:53:00 -07:00
parent a0fb849524
commit 584c76e6e8
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,9 @@ Next Release
- The processor status register is now initialized to 0 on reset.
Previously, its unused bit (bit 5) was set to 1 on reset.
- Applied patch from Ed Spittles to change the CMP algorithm so that
it no longer fails Rob Finch's test suite. Closes #8.
0.6 (2009-08-11)
- Added monitor shortcut "a" for "assemble".

View File

@ -356,8 +356,7 @@ class MPU:
self.flags |= self.CARRY + self.ZERO
elif register_value > tbyte:
self.flags |= self.CARRY
else:
self.flags |= self.NEGATIVE
self.flags |= (self.a - tbyte) & self.NEGATIVE
def opSBC(self, x):
data = self.ByteAt(x())