Пример #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)));
        }
Пример #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]);
        }
Пример #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));
		}
Пример #4
0
 public static extern bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);
Пример #5
0
 public abstract bool Str([In][Out] Darm_T d, [Out] Darm_Str_T s, bool lowercase);