예제 #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}]"));
 }