mirror of
https://github.com/mnaberez/py65.git
synced 2025-04-06 20:37:18 +00:00
Fixed bug in CMP immediate ($C9).
This commit is contained in:
parent
a198e7e41d
commit
de651a4053
@ -950,7 +950,7 @@ class MPU:
|
||||
self.flags &= ~(self.CARRY+self.ZERO+self.NEGATIVE)
|
||||
if self.a == tbyte:
|
||||
self.flags |= self.CARRY + self.ZERO
|
||||
elif a > tbyte:
|
||||
elif self.a > tbyte:
|
||||
self.flags |= self.CARRY
|
||||
else:
|
||||
self.flags |= self.NEGATIVE
|
||||
|
Loading…
x
Reference in New Issue
Block a user