mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-02 03:29:26 +00:00
Fixed CMP fail on Rob Finch's test suite. Closes #8.
This commit is contained in:
parent
a0fb849524
commit
584c76e6e8
@ -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".
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user