mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-19 07:31:34 +00:00
Improve test for ORA. (offe)
This commit is contained in:
parent
af11a3722a
commit
1f3c93b093
@ -268,6 +268,8 @@ class MPUTests(unittest.TestCase, Common6502Tests):
|
|||||||
mpu = self._make_mpu()
|
mpu = self._make_mpu()
|
||||||
mpu.flags &= ~(mpu.ZERO)
|
mpu.flags &= ~(mpu.ZERO)
|
||||||
mpu.a = 0x00
|
mpu.a = 0x00
|
||||||
|
mpu.y = 0x12 # These should not affect the ORA
|
||||||
|
mpu.x = 0x34
|
||||||
self._write(mpu.memory, 0x0000, (0x12, 0x10)) #=> ORA ($0010)
|
self._write(mpu.memory, 0x0000, (0x12, 0x10)) #=> ORA ($0010)
|
||||||
self._write(mpu.memory, 0x0010, (0xCD, 0xAB)) #=> Vector to $ABCD
|
self._write(mpu.memory, 0x0010, (0xCD, 0xAB)) #=> Vector to $ABCD
|
||||||
mpu.memory[0xABCD] = 0x00
|
mpu.memory[0xABCD] = 0x00
|
||||||
|
Loading…
x
Reference in New Issue
Block a user