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

CMP() private method

private CMP ( ushort operand ) : void
operand ushort
return void
        private void CMP(ushort operand)
        {
            ushort value;
            RegGeneral destination;
            try {
                BitPatternALU(operand, out value, out destination);
                int register = R[(int)destination];
                FL_N = (short)register >= (short)value;
                FL_Z = register == value;
                FL_C = register >= value;
                // V [Overflow] Not effected.
            }
            catch (SegFaultException e) {
                Interrupt_SegFault(e.SegmentType, operand, e.Address);
            }
        }