public static string DisassembleStuff(uint addr, uint opcode) { var d = new Darm_T(); var s = new Darm_Str_T(); if (!Disassemble(d, (ushort)opcode, (ushort)(opcode >> 16), addr)) { return(null); } if (Str(d, s, false)) { return(null); } return(Encoding.ASCII.GetString(s.total, 0, Array.IndexOf(s.total, (byte)0))); }
public static string DisassembleStuff(uint addr, uint opcode) { var d = new Darm_T(); var s = new Darm_Str_T(); if (!Disassemble(d, (ushort)opcode, (ushort)(opcode >> 16), addr)) { return(null); } if (Str(d, s, false)) { return(null); } string[] ret = Encoding.ASCII.GetString(s.total, 0, Array.IndexOf(s.total, (byte)0)) .ToString() .Split(new string[] { " " }, 2, StringSplitOptions.None); return(ret[0].PadRight(8) + ret[1]); }
public static string DisassembleStuff(uint addr, uint opcode) { var d = new Darm_T(); var s = new Darm_Str_T(); if (!Disassemble(d, (ushort)opcode, (ushort)(opcode >> 16), addr)) return null; if (Str(d, s, false)) return null; return Encoding.ASCII.GetString(s.total, 0, Array.IndexOf(s.total, (byte)0)); }
public static extern bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);
public abstract bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);