1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-10-15 10:24:03 +00:00

Added BIT abx instruction (0x3c) to 65C02

Signed-off-by: Mike Naberezny <mike@naberezny.com>
This commit is contained in:
offe 2009-04-23 18:11:09 +02:00 committed by Mike Naberezny
parent 667321381b
commit b792eec839

View File

@ -99,6 +99,11 @@ class MPU(mpu6502.MPU):
self.opRMB(self.ZeroPageAddr, 0xF7)
self.pc += 1
@instruction(name="BIT", mode="abx", cycles=4)
def inst_0x3c(self):
self.opBIT(self.AbsoluteXAddr)
self.pc += 2
@instruction(name="RMB4", mode="zpg", cycles=5)
def inst_0x47(self):
self.opRMB(self.ZeroPageAddr, 0xEF)