public override void Compile(Instruction i, AsmBuilder ab, List <string> Offsets, MethodDefinition md) { ab.Pop("eax"); //value a ab.Pop("ebx"); //value b ab.Cmp("eax", "ebx"); ab.Jmpe(Utils.SafeName(md.FullName) + i.ToString().Split(':')[0] + "_1CEQ"); ab.Push("0"); ab.Jmp(Utils.SafeName(md.FullName) + i.ToString().Split(':')[0] + "_0CEQ"); ab.Label(Utils.SafeName(md.FullName) + i.ToString().Split(':')[0] + "_1CEQ"); ab.Push("1"); ab.Label(Utils.SafeName(md.FullName) + i.ToString().Split(':')[0] + "_0CEQ"); }
public override void Compile(Instruction i, AsmBuilder ab, List <string> Offsets, MethodDefinition md) { ab.Pop("eax"); //flag ab.Cmp("eax", "1"); ab.Jmpe(Utils.SafeName(md.FullName) + i.Operand.ToString().Split(':')[0]); }