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

LOD() private method

private LOD ( ushort operand ) : void
operand ushort
return void
        private void LOD(ushort operand)
        {
            ushort value;
            RegGeneral destination;
            try {
                BitPatternALU(operand, out value, out destination);
                R[(int)destination] = value;
                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);
            }
        }