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. 4510 Versions: +----------------+-----------------------+---------+---------+----------+ | Addressing Mode| Assembly Language Form| OP CODE |No. Bytes|No. Cycles| +----------------+-----------------------+---------+---------+----------+ | (Indirect,X) | EOR ($FF,X) | $41 | 2 | 5r | | ZeroPage | EOR $FF | $45 | 2 | 3r | | Immediate | EOR #$FF | $49 | 2 | 2 | | Absolute | EOR $FFFF | $4D | 3 | 4r | | (Indirect),Y | EOR ($FF),Y | $51 | 2 | 5pr | | (Indirect),Z | EOR ($FF),Z | $52 | 2 | 5pr | | [Indirect 32] | EOR [$FF],Z | $EA $52 | 2 | 7ipr | | ZeroPage,X | EOR $FF,X | $55 | 2 | 3p | | Absolute,Y | EOR $FFFF,Y | $59 | 3 | 4pr | | Absolute,X | EOR $FFFF,X | $5D | 3 | 4pr | +----------------+-----------------------+---------+---------+----------+ i Add 1 if clock speed is at 40 MHz p Add 1 if page boundary is crossed r Add 1 if clock speed is at 40 MHz 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 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 | +----------------+-----------------------+---------+---------+----------+