Esempio n. 1
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);
            }
            return(Encoding.ASCII.GetString(s.total, 0, Array.IndexOf(s.total, (byte)0)));
        }
Esempio n. 2
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]);
        }
Esempio n. 3
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;
			return Encoding.ASCII.GetString(s.total, 0, Array.IndexOf(s.total, (byte)0));
		}
Esempio n. 4
0
 public static extern bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);
Esempio n. 5
0
 public abstract bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);