示例#1
0
        public void G(DoubleArgCmd cmd, AsmArg lhs, double rhs)
        {
            var rhsDoubleVal = rhs.ToString(CultureInfo.InvariantCulture);
            var dot          = rhsDoubleVal.Contains('.') ? "" : ".";

            _out.WriteLine($"{cmd.ToString().ToLowerInvariant()} {lhs.Val}, {rhsDoubleVal}{dot}");
        }
示例#2
0
 //single
 public void G(SingleArgCmd cmd, AsmArg arg)
 {
     _out.WriteLine($"{cmd.ToString().ToLowerInvariant()} {arg.Val}");
 }
示例#3
0
 public void G(DoubleArgCmd cmd, AsmArg lhs, string rhs)
 {
     _out.WriteLine($"{cmd.ToString().ToLowerInvariant()} {lhs.Val}, {rhs}");
 }
示例#4
0
 public static AsmArg Byte(AsmArg arg)
 {
     return(new AsmArg($"byte {arg.Val}"));
 }
示例#5
0
 public static AsmArg QWord(AsmArg arg)
 {
     return(new AsmArg($"qword {arg.Val}"));
 }
示例#6
0
 public static AsmArg Der(AsmArg arg)
 {
     return(new AsmArg($"[{arg.Val}]"));
 }