CSPspEmu.Core.Cpu.VFpu.VfpuRegisterInfo.VfpuRegisterInfo C# (CSharp) Method

VfpuRegisterInfo() public method

public VfpuRegisterInfo ( int Size, char Type, int Matrix, int Column, int Row ) : System
Size int
Type char
Matrix int
Column int
Row int
return System
        public VfpuRegisterInfo(int Size, char Type, int Matrix, int Column, int Row)
        {
            this.Size = Size;
            this.Type = Type;
            this.Matrix = Matrix;
            this.Column = Column;
            this.Row = Row;

            //Console.Error.WriteLine("{0}", this.Name);

            CheckInvalid("Size", Size < 1 || Size > 4);
            CheckInvalid("Matrix", Matrix < 0 || Matrix >= 8);
            CheckInvalid("Row", Row < 0 || Row >= 4);
            CheckInvalid("Column", Column < 0 || Column >= 4);
            CheckInvalid("Type", Type != 'S' && Type != 'R' && Type != 'C' && Type != 'M' && Type != 'E');
            CheckInvalid("Type+Size", Type == 'S' && Size != 1);
            CheckInvalid("Type+Size", Type != 'S' && Size == 1);
        }