1
0
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:
Mike Naberezny 2008-11-17 05:33:53 +00:00
parent a198e7e41d
commit de651a4053

View File

@ -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