GetRegister() public method

public GetRegister ( int i ) : RegisterStorage
i int
return RegisterStorage
Beispiel #1
0
 public PowerPcCallingConvention(PowerPcArchitecture arch)
 {
     this.arch  = arch;
     this.iregs = new[] { "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10" }
     .Select(r => arch.GetRegister(r))
     .ToArray();
     this.fregs = new[] { "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8" }
     .Select(r => arch.GetRegister(r))
     .ToArray();
 }
        public override Storage GetReturnRegister(Argument_v1 sArg, int bitSize)
        {
            var prim = sArg.Type as PrimitiveType_v1;

            if (prim != null)
            {
                if (prim.Domain == Domain.Real)
                {
                    return(arch.GetRegister("f1"));
                }
            }
            return(arch.GetRegister("r3"));
        }