CSPspEmu.Core.Cpu.Emitter.CpuEmitterUtils._mtvc_impl C# (CSharp) Method

_mtvc_impl() public static method

public static _mtvc_impl ( CpuThreadState CpuThreadState, VfpuControlRegistersEnum VfpuControlRegister, uint Value ) : void
CpuThreadState CpuThreadState
VfpuControlRegister VfpuControlRegistersEnum
Value uint
return void
        public static void _mtvc_impl(CpuThreadState CpuThreadState, VfpuControlRegistersEnum VfpuControlRegister, uint Value)
        {
            Console.Error.WriteLine("Warning: _mtvc_impl");
            switch (VfpuControlRegister)
            {
                case VfpuControlRegistersEnum.VFPU_PFXS: CpuThreadState.PrefixSource.Value = Value; return;
                case VfpuControlRegistersEnum.VFPU_PFXT: CpuThreadState.PrefixTarget.Value = Value; return;
                case VfpuControlRegistersEnum.VFPU_PFXD: CpuThreadState.PrefixDestination.Value = Value; return;
                case VfpuControlRegistersEnum.VFPU_CC: CpuThreadState.VFR_CC_Value = Value; return;
                case VfpuControlRegistersEnum.VFPU_RCX0: new Random((int)Value); return;
                case VfpuControlRegistersEnum.VFPU_RCX1:
                case VfpuControlRegistersEnum.VFPU_RCX2:
                case VfpuControlRegistersEnum.VFPU_RCX3:
                case VfpuControlRegistersEnum.VFPU_RCX4:
                case VfpuControlRegistersEnum.VFPU_RCX5:
                case VfpuControlRegistersEnum.VFPU_RCX6:
                case VfpuControlRegistersEnum.VFPU_RCX7:
                    //(uint)MathFloat.ReinterpretFloatAsInt(1.0f) = Value;
                    return;
                default:
                    throw (new NotImplementedException("_mtvc_impl: " + VfpuControlRegister));
            }
        }