1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-07-03 05:29:27 +00:00

Fixed opCMPR to use register_value instead of accumulator.

This commit is contained in:
Mike Naberezny 2009-08-20 13:35:56 -07:00
parent 5dd6e9f95a
commit 5ea9dc9a70

View File

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