mirror of
https://github.com/mnaberez/py65.git
synced 2026-04-21 14:16:40 +00:00
Added BIT abx instruction (0x3c) to 65C02
Signed-off-by: Mike Naberezny <mike@naberezny.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user