Ypsilon.Emulation.Processor.YCPU.EOR C# (CSharp) Method

EOR() private method

private EOR ( ushort operand ) : void
operand ushort
return void
        private void EOR(ushort operand)
        {
            try {
                ushort value;
                RegGeneral destination;
                BitPatternALU(operand, out value, out destination);
                int result = R[(int)destination] ^ value;
                R[(int)destination] = (ushort)(result & 0x0000FFFF);
                FL_N = (value & 0x8000) != 0;
                FL_Z = value == 0x0000;
                // C [Carry] Not effected.
                // V [Overflow] Not effected.
            }
            catch (SegFaultException e) {
                Interrupt_SegFault(e.SegmentType, operand, e.Address);
            }
        }