EOR EOR "Exclusive-Or" memory with accumulator EOR
Operation: A EOR M -> A N V - B D I Z C
/ . . . . . / .
+----------------+-----------------------+---------+---------+----------+
| Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
+----------------+-----------------------+---------+---------+----------+
| Immediate | EOR #$FF | $49 | 2 | 2 |
| ZeroPage | EOR $FF | $45 | 2 | 3 |
| ZeroPage,X | EOR $FF,X | $55 | 2 | 4 |
| Absolute | EOR $FFFF | $4D | 3 | 4 |
| Absolute,X | EOR $FFFF,X | $5D | 3 | 4* |
| Absolute,Y | EOR $FFFF,Y | $59 | 3 | 4* |
| (Indirect,X) | EOR ($FF,X) | $41 | 2 | 6 |
| (Indirect),Y | EOR ($FF),Y | $51 | 2 | 5* |
+----------------+-----------------------+---------+---------+----------+
* Add 1 if page boundary is crossed.
For penalty cycles on the 65816, check the desired addressing mode.
65816 Extensions:
+----------------+-----------------------+---------+---------+----------+
| Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles|
+----------------+-----------------------+---------+---------+----------+
| AbsoluteLong | EOR $FFFFFF | $4F | 4 | 5 |
| AbsoluteLong,X | EOR $FFFFFF,X | $5F | 4 | 5 |
| (Indirect) | EOR ($FF) | $52 | 2 | 5 |
| [Indirect Long]| EOR [$FF] | $47 | 2 | 6 |
| [Ind.Long],Y | EOR [$FF],Y | $57 | 2 | 6 |
| Relative,S | EOR $FF,S | $43 | 2 | 4 |
| (Indirect,S),Y | EOR ($FF,S),Y | $53 | 2 | 7 |
+----------------+-----------------------+---------+---------+----------+
|