1
0
mirror of https://github.com/mnaberez/py65.git synced 2025-02-08 16:30:35 +00:00

Added zero page indirect CMP to 65C02

Signed-off-by: Mike Naberezny <mike@naberezny.com>
This commit is contained in:
Oscar Lindberg 2009-04-20 05:30:17 +08:00 committed by Mike Naberezny
parent c464569946
commit 667321381b

View File

@ -267,6 +267,11 @@ class MPU(mpu6502.MPU):
def inst_0xCB(self):
self.waiting = True
@instruction(name="CMP", mode='zpi', cycles=6) # Don't know cycles
def inst_0xD2(self):
self.opCPY(self.ZeroPageIndirectAddr)
self.pc += 1
@instruction(name="SBC", mode="zpi", cycles=5)
def inst_0xf2(self):
self.opSBC(self.ZeroPageIndirectAddr)