mirror of
https://github.com/mnaberez/py65.git
synced 2024-11-18 15:06:35 +00:00
Fixed opCMPR to use register_value instead of accumulator.
This commit is contained in:
parent
5dd6e9f95a
commit
5ea9dc9a70
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user