1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-19 06:31:08 +00:00

Fixed bad merge with Ed's ADC overflow patch.

This commit is contained in:
Mike Naberezny 2009-08-16 21:44:10 -07:00
parent 28936341bb
commit 7b8c56107a

View File

@ -308,7 +308,7 @@ class MPU:
self.flags |= self.OVERFLOW self.flags |= self.OVERFLOW
data = result data = result
if data > 255: if data > 255:
self.flags|=self.OVERFLOW+self.CARRY self.flags |= self.CARRY
data &=255 data &=255
if data == 0: if data == 0:
self.flags |= self.ZERO self.flags |= self.ZERO