mirror of
https://github.com/mnaberez/py65.git
synced 2024-10-31 22:06:12 +00:00
Rename to decimal_flags_use_adjusted_results
This commit is contained in:
parent
5b28c007d9
commit
d6ccff26ad
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user