public static void Main(string[] args) { try { Rasm2 e = new Rasm2("-"); Application.Run(e); e.Kill(); } catch (Exception e) { MessageBox.Show(e.ToString()); } }
public static void Main(string[] args) { try { Rasm2 e = new Rasm2(args[0]); Console.WriteLine("r2 version: "+ e.GetVersion()); Console.WriteLine("--> " + e.GetInfo()); Console.WriteLine("--> " + e.Disasm().ToString()); do { Console.Write("> "); var line = Console.ReadLine(); if (line == "q") { break; } Console.WriteLine(e.Cmd(line)); } while (true); e.Kill(); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public static void Main(string[] args) { try { Rasm2 e = new Rasm2(args[0]); Console.WriteLine("r2 version: " + e.GetVersion()); Console.WriteLine("--> " + e.GetInfo()); Console.WriteLine("--> " + e.Disasm().ToString()); do { Console.Write("> "); var line = Console.ReadLine(); if (line == "q") { break; } Console.WriteLine(e.Cmd(line)); } while (true); e.Kill(); } catch (Exception e) { Console.WriteLine(e.ToString()); } }
public static void Main(string[] args) { try { Rasm2 e = new Rasm2("-"); Application.Run (e); e.Kill(); } catch (Exception e) { MessageBox.Show(e.ToString()); } }