From 5ea9dc9a70923c02388ff70e6e167372f034efbf Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Thu, 20 Aug 2009 13:35:56 -0700 Subject: [PATCH] Fixed opCMPR to use register_value instead of accumulator. --- src/py65/devices/mpu6502.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py65/devices/mpu6502.py b/src/py65/devices/mpu6502.py index 8f4674f..38c55f5 100644 --- a/src/py65/devices/mpu6502.py +++ b/src/py65/devices/mpu6502.py @@ -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())