1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-07-09 13:29:47 +00:00

Rerenamed 0x3a and 0x1a to DEC A, with correct addressing mode (acc)

Signed-off-by: Mike Naberezny <mike@naberezny.com>
This commit is contained in:
Oscar Lindberg 2009-04-13 06:28:27 +08:00 committed by Mike Naberezny
parent 2efc5ef48f
commit e01f2c35d5

View File

@ -232,7 +232,7 @@ class MPU(mpu6502.MPU):
self.opTRB(self.ZeroPageAddr)
self.pc += 1
@instruction(name="INA", mode="imp", cycles=2)
@instruction(name="INC", mode="acc", cycles=2)
def inst_0x1a(self):
tbyte = self.a
self.flags &= ~(self.ZERO + self.NEGATIVE)
@ -248,7 +248,7 @@ class MPU(mpu6502.MPU):
self.opTRB(self.AbsoluteAddr)
self.pc += 2
@instruction(name="DEA", mode="imp", cycles=2)
@instruction(name="DEC", mode="acc", cycles=2)
def inst_0x3a(self):
tbyte = self.a
self.flags &= ~(self.ZERO + self.NEGATIVE)