diff --git a/py65/devices/mpu6502.py b/py65/devices/mpu6502.py index c5d3a74..23b343c 100644 --- a/py65/devices/mpu6502.py +++ b/py65/devices/mpu6502.py @@ -299,9 +299,9 @@ class MPU: self.FlagsNZ(self.a) def opADC(self, x): - return self._opADC(x, flags_use_adjusted_result=False) + return self._opADC(x, decimal_flags_use_adjusted_result=False) - def _opADC(self, x, flags_use_adjusted_result): + def _opADC(self, x, decimal_flags_use_adjusted_result): data = self.ByteAt(x()) if self.p & self.DECIMAL: @@ -333,7 +333,7 @@ class MPU: self.p &= ~(self.CARRY | self.OVERFLOW | self.NEGATIVE | self.ZERO) - if flags_use_adjusted_result: # 65C02 and 65816 + if decimal_flags_use_adjusted_result: # 65C02 and 65816 # Z and N use adjusted (i.e. decimal) result zerores = adjresult negativeres = adjresult diff --git a/py65/devices/mpu65c02.py b/py65/devices/mpu65c02.py index 5993f47..d0b309d 100644 --- a/py65/devices/mpu65c02.py +++ b/py65/devices/mpu65c02.py @@ -64,7 +64,7 @@ class MPU(mpu6502.MPU): self.memory[address] = m & ~self.a def opADC(self, x): - return self._opADC(x, flags_use_adjusted_result=True) + return self._opADC(x, decimal_flags_use_adjusted_result=True) def opSBC(self, x): return self._opSBC(x, decimal_flags_use_adjusted_result=True)