mirror of
https://github.com/mnaberez/py65.git
synced 2024-09-06 10:54:32 +00:00
Fixed broken 65C02 instruction ORA (ZP).
This commit is contained in:
parent
a8e57c04b6
commit
49fdcdfa9e
@ -46,7 +46,7 @@ class MPU(NMOS6502):
|
||||
|
||||
@instruction(name="ORA", mode="zpi", cycles=5)
|
||||
def inst_0x12(self):
|
||||
self.opORA(self.IndirectXAddr)
|
||||
self.opORA(self.ZeroPageIndirectAddr)
|
||||
self.pc += 1
|
||||
|
||||
@instruction(name="AND", mode="zpi", cycles=5)
|
||||
|
@ -264,7 +264,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
|
||||
|
||||
# ORA Zero Page, Indirect
|
||||
|
||||
def test_ora_zp_indirect_x_zeroes_or_zeros_sets_z_flag(self):
|
||||
def test_ora_zp_indirect_zeroes_or_zeros_sets_z_flag(self):
|
||||
mpu = self._make_mpu()
|
||||
mpu.flags &= ~(mpu.ZERO)
|
||||
mpu.a = 0x00
|
||||
@ -277,7 +277,7 @@ class MPUTests(unittest.TestCase, Common6502Tests):
|
||||
self.assertEquals(0x00, mpu.a)
|
||||
self.assertEquals(mpu.ZERO, mpu.flags & mpu.ZERO)
|
||||
|
||||
def test_ora_zp_indirect_x_turns_bits_on_sets_n_flag(self):
|
||||
def test_ora_zp_indirect_turns_bits_on_sets_n_flag(self):
|
||||
mpu = self._make_mpu()
|
||||
mpu.flags &= ~(mpu.NEGATIVE)
|
||||
mpu.a = 0x03
|
||||
|
Loading…
Reference in New Issue
Block a user