CSPspEmu.Core.Cpu.Assembler.MipsAssembler.ParseAndUpdateVfprDestinationPrefix C# (CSharp) Method

ParseAndUpdateVfprDestinationPrefix() public static method

public static ParseAndUpdateVfprDestinationPrefix ( int Index, string RegisterName, VfpuDestinationPrefix &VfpuPrefix ) : void
Index int
RegisterName string
VfpuPrefix VfpuDestinationPrefix
return void
        public static void ParseAndUpdateVfprDestinationPrefix(int Index, string RegisterName, ref VfpuDestinationPrefix VfpuPrefix)
        {
            switch (RegisterName)
            {
                case "m":
                case "M": VfpuPrefix.DestinationMask(Index, true); break;
                case "0:1": VfpuPrefix.DestinationMask(Index, false); VfpuPrefix.DestinationSaturation(Index, 1); break;
                case "-1:1": VfpuPrefix.DestinationMask(Index, false); VfpuPrefix.DestinationSaturation(Index, 3); break;
                default: throw (new NotImplementedException(String.Format("Invalid RegisterName {0}", RegisterName)));
            }
        }