Inheritance: IInjectInitialize
コード例 #1
0
ファイル: MethodCacheInfo.cs プロジェクト: soywiz/cspspemu
 public MethodCacheInfo(MethodCache MethodCache, Action<CpuThreadState> DelegateGeneratorForPC, uint PC)
 {
     this.MethodCache = MethodCache;
     this.FunctionDelegate = DelegateGeneratorForPC;
     this.StaticField = ILInstanceHolder.TAlloc<Action<CpuThreadState>>(DelegateGeneratorForPC);
     this.PC = PC;
 }
コード例 #2
0
 public MethodCacheInfo(MethodCache methodCache, Action <CpuThreadState> delegateGeneratorForPc, uint pc)
 {
     MethodCache       = methodCache;
     _functionDelegate = delegateGeneratorForPc;
     StaticField       = IlInstanceHolder.TaAlloc(delegateGeneratorForPc);
     Pc = pc;
 }
コード例 #3
0
ファイル: MethodCache.cs プロジェクト: kwanboy/cspspemu
        public MethodCompilerThread(CpuProcessor cpuProcessor, MethodCache methodCache)
        {
            _cpuProcessor = cpuProcessor;
            _methodCache  = methodCache;
            var thread = new Thread(Main)
            {
                Name         = "MethodCompilerThread",
                IsBackground = true
            };

            thread.Start();
        }
コード例 #4
0
ファイル: MethodCache.cs プロジェクト: soywiz/cspspemu
 public MethodCompilerThread(CpuProcessor CpuProcessor, MethodCache MethodCache)
 {
     this.CpuProcessor = CpuProcessor;
     this.MethodCache = MethodCache;
     this.Thread = new Thread(Main)
     {
         IsBackground = true
     };
     this.Thread.Start();
 }
コード例 #5
0
ファイル: CpuThreadState.cs プロジェクト: shin527/cspspemu
		/// <summary>
		/// 
		/// </summary>
		/// <param name="Processor"></param>
		public CpuThreadState(CpuProcessor Processor)
		{
			this.CpuProcessor = Processor;
			this.MethodCache = Processor.MethodCache;
			//this.Memory = Processor.Memory;

			GPR = new GprList() { CpuThreadState = this };
			FPR = new FprList() { CpuThreadState = this };
			C0R = new C0rList() { CpuThreadState = this };
			FPR_I = new FprListInteger() { CpuThreadState = this };
			Vfpr = new VfprList() { CpuThreadState = this };

			for (int n = 0; n < 32; n++)
			{
				GPR[n] = 0;
				FPR[n] = 0.0f;
			}
		}
コード例 #6
0
ファイル: CpuThreadState.cs プロジェクト: soywiz/cspspemu
        /// <summary>
        /// 
        /// </summary>
        /// <param name="Processor"></param>
        public CpuThreadState(CpuProcessor Processor)
        {
            this.CpuProcessor = Processor;
            this.MethodCache = Processor.MethodCache;
            //this.Memory = Processor.Memory;

            GPR = new GprList() { CpuThreadState = this };
            FPR = new FprList() { CpuThreadState = this };
            C0R = new C0rList() { CpuThreadState = this };
            FPR_I = new FprListInteger() { CpuThreadState = this };
            Vfpr = new VfprList() { CpuThreadState = this };

            for (int n = 0; n < 32; n++)
            {
                GPR[n] = 0;
                FPR[n] = 0.0f;
            }

            VFR_CC_7 = VFR_CC_6 = VFR_CC_5 = VFR_CC_4 = VFR_CC_3 = VFR_CC_2 = VFR_CC_1 = VFR_CC_0 = true;

            for (int n = 0; n < 128; n++)
            {
                Vfpr[n] = 0.0f;
            }
        }