mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-04 16:30:42 +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
|
self.flags |= self.CARRY + self.ZERO
|
||||||
elif register_value > tbyte:
|
elif register_value > tbyte:
|
||||||
self.flags |= self.CARRY
|
self.flags |= self.CARRY
|
||||||
self.flags |= (self.a - tbyte) & self.NEGATIVE
|
self.flags |= (register_value - tbyte) & self.NEGATIVE
|
||||||
|
|
||||||
def opSBC(self, x):
|
def opSBC(self, x):
|
||||||
data = self.ByteAt(x())
|
data = self.ByteAt(x())
|
||||||
|
Loading…
Reference in New Issue
Block a user